MEDIUM · CVSS 3.1 5.5 EPSS 0.6% · 48th percentile CWE-434CWE-79

CVE-2026-63193: October: Media Library Crop Handler Bypasses Upload Extension Allowlist

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-mqwx-84vv-mp26

Summary

The October CMS Media Library crop handler fails to validate file extensions, allowing authenticated backend users to upload files with restricted extensions. Administrators should upgrade to v3.7.18 or v4.3.3 immediately to prevent potential stored XSS or remote code execution.

Who is affected

This flaw allows an attacker with 'media.library.create' permissions to bypass extension allowlists by using the crop handler to save files with arbitrary extensions. While default configurations block PHP execution in media folders, this can lead to stored XSS via .html or .svg files; on misconfigured servers, it may lead to remote code execution.

Exploitability

The vulnerability is rated as medium severity with a CVSS 3.1 score of 5.5, requiring high-privileged authenticated backend access to exploit. It is not currently listed in CISA's Known Exploited Vulnerabilities catalog, and the EPSS score of 0.006 indicates a low probability of exploitation.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Packagist october/october >= 0, <= 3.7.13 not published -
Packagist october/october >= 4.0.0, < 4.3.2 4.3.2 composer require "october/october:>=4.3.2"

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredHigh
User interactionNone
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone

FAQ

Is remote code execution always possible with this vulnerability?

No. RCE is only possible if the web server is non-standardly configured to execute PHP files within the media storage directory.

Does this bypass the SVG sanitizer?

Yes. Because the crop handler skips the standard upload path which performs the 'Html::cleanVector' check, malicious SVG content can be written without sanitization.

What is the primary defense-in-depth change?

The core 'MediaLibrary::put' and 'MediaLibrary::putFile' methods now validate destination extensions to ensure all future write paths inherit the required security checks.

Original advisory description
The Media Library upload handler validates the destination filename against an extension allowlist (`default_extensions`), rejecting types such as `php`, `phtml`, `html`, and `htm`. The image crop handler (`MediaManager::onCropImage` / `cropImage`) did not perform this check. The destination filename was taken from user input, the extension was extracted from it, and the staged bytes were written to the public media folder under that attacker-chosen extension. Combined with the fact that upload accepts any file contents under an allowlisted extension (a PHP payload disguised as `.jpg`), and that the zero-dimension crop branch performs a byte-for-byte `File::copy` rather than re-encoding the pixels, an authenticated backend user with the `media.library.create` permission could write a file with arbitrary extension and arbitrary contents into the public media folder. **Scope of impact depends on web server configuration.** On a default October CMS install (using the shipped Apache `.htaccess` or `nginx.conf`), PHP execution from the media folder is blocked, so the realistic outcome is stored XSS via `.html` or `.svg` files served from the application origin. On a server that is configured to execute PHP inside the media directory (a non-default but real-world misconfiguration), the same bug becomes remote code execution. ### Impact - Bypass of the Media Library extension allowlist that the upload path enforces - Stored XSS on default installs: attacker can write `.html` or `.svg` files served from the application origin, executing script in the browser of any backend user or visitor who opens the file - SVG sanitizer bypass: the `Html::cleanVector` step only runs on the upload path, so uploading malicious SVG content as a `.jpg` and then cropping it to `.svg` skips the sanitizer entirely - Remote code execution on deployments that execute PHP inside the media folder (non-default) - Requires authenticated backend access with the `media.library.create` permission ### Patches The vulnerability has been patched in v3.7.18 and v4.3.3. The crop handler now applies the same extension allowlist check as the upload handler before staging the output file. As defense in depth, the central `MediaLibrary::put` and `MediaLibrary::putFile` write methods now validate the destination extension as well, so any future write path that goes through the library inherits the check. All users are encouraged to upgrade to the latest patched version. ### Workarounds If upgrading immediately is not possible: - Restrict the `media.library.create` permission to fully trusted backend users only - Ensure the web server cannot execute PHP from the media storage directory (the shipped `.htaccess` and `nginx.conf` already enforce this) ### References - Reported by nova-aryan

References

Source records: GHSA-mqwx-84vv-mp26 (OSV.dev) · EPSS by FIRST, 2026-11-21.