CVE-2024-51991: October/system October CMS Allows Unprotected SVG Vulnerability

LOW
Advisory Identifier: GHSA-96hh-8hx5-cpw7
CWE-434
Published
Advisory Summary

CVE-2024-51991 is a LOW october cms allows unprotected svg vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting October/system libraries in the Packagist ecosystem. The issue involves october cms allows unprotected svg rename in media manager. Remediation is available by upgrading affected packages to version 3.7.5.

CVE-2024-51991 at a Glance

CVE Identifier CVE-2024-51991
GHSA Identifier GHSA-96hh-8hx5-cpw7
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product October/system
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2024-51991

To remediate this vulnerability, upgrade all affected October/system dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

october/system fixed: 3.7.5
Upgrade october/system to 3.7.5
october/october fixed: 3.7.5
Upgrade october/october to 3.7.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for october/system

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-51991, inspect your project dependencies for October/system:

inspect dependencies for october/system

Analyze the terminal output to locate any version of October/system in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In October/system, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact This advisory affects authenticated administrators with sites that have the `media.clean_vectors` configuration enabled. This configuration will sanitize SVG files uploaded using the media manager. This vulnerability allows an authenticated user to bypass this protection by uploading it with a permitted extension (for example, .jpg or .png) and later modifying it to the .svg extension. This vulnerability assumes a trusted user will attack another trusted user and cannot be actively exploited without access to the administration panel and interaction from the other user. ### Patches This issue has been patched in v3.7.5. ### References Credits to: - [Cyber-Wo0dy](https://github.com/Cyber-Wo0dy) ### For more information If you have any questions or comments about this advisory: * Email us at [hello@octobercms.com](mailto:hello@octobercms.com)

CVE-2024-51991 Affected October/system Versions

2 component(s)
Fixed Versions:
3.7.5
Product / Package Ecosystem Affected Versions Fixed Version
october/system
Packagist
< 3.7.5
3.7.5
october/october
Packagist
< 3.7.5
3.7.5

References

Frequently Asked Questions

What is CVE-2024-51991?
CVE-2024-51991 is a security vulnerability in October/system involving October CMS Allows Unprotected SVG Rename in Media Manager under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which October/system versions are affected?
Affected versions include releases prior to 3.7.5 across affected packages: october/system, october/october.
What version fixes CVE-2024-51991?
Upgrading to 3.7.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is october/system affected?
Yes, october/system is affected in releases prior to 3.7.5. Upgrade your dependency to 3.7.5 or later.
Is october/october affected?
Yes, october/october is affected in releases prior to 3.7.5. Upgrade your dependency to 3.7.5 or later.
What CWE is associated with CVE-2024-51991?
CVE-2024-51991 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Packagist dependencies for CVE-2024-51991?
Run the dependency tree command: 'inspect dependencies for october/system'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-96hh-8hx5-cpw7",
  "modified" : "2025-05-05T22:03:57Z",
  "published" : "2025-05-05T14:55:41Z",
  "aliases" : [ "CVE-2024-51991" ],
  "summary" : "October CMS Allows Unprotected SVG Rename in Media Manager",
  "details" : "### Impact\n\nThis advisory affects authenticated administrators with sites that have the `media.clean_vectors` configuration enabled. This configuration will sanitize SVG files uploaded using the media manager. This vulnerability allows an authenticated user to bypass this protection by uploading it with a permitted extension (for example, .jpg or .png) and later modifying it to the .svg extension.\n\nThis vulnerability assumes a trusted user will attack another trusted user and cannot be actively exploited without access to the administration panel and interaction from the other user.\n\n### Patches\n\nThis issue has been patched in v3.7.5.\n\n### References\n\nCredits to:\n- [Cyber-Wo0dy](https://github.com/Cyber-Wo0dy)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [hello@octobercms.com](mailto:hello@octobercms.com)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "october/system"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.7.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "october/october"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.7.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/october/security/advisories/GHSA-96hh-8hx5-cpw7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-51991"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/octobercms/october"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-05T14:55:41Z",
    "nvd_published_at" : "2025-05-05T17:18:44Z"
  }
}