CVE-2024-51991 October CMS Allows Unprotected SVG Rename in Media Manager

Low 1.1 Published Updated

Authenticated administrators can bypass SVG sanitization by renaming files, potentially leading to code execution or security bypass in October CMS.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-51991?

CVE-2024-51991 is a low-severity vulnerability in Octobercms October, published on 5 May 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

October is a Content Management System (CMS) and web platform. A vulnerability in versions prior to 3.7.5 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. This issue has been patched in v3.7.5.

Weakness: CWE-434

Which versions are affected by CVE-2024-51991?

4 open source packages ship an affected version, including october/october and october/system. It affects 1 product.

PackageAffectedFixed in
october/october PackagistAll versions3.7.5
october/october PackagistAll versions3.7.5
october/system PackagistAll versions3.7.5
october/system PackagistAll versions3.7.5

Products include Octobercms October.

How do I fix CVE-2024-51991?

Upgrade october/october to 3.7.5 or later.

Is CVE-2024-51991 being exploited?

There is no known exploitation of CVE-2024-51991 in the wild and no public exploit code.

All Octobercms October vulnerabilities

Sources

Also known as GHSA-96hh-8hx5-cpw7.

Is CVE-2024-51991 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free