Skip to content
Medium 5.5

October: Media Library Crop Handler Bypasses Upload Extension Allowlist

CVE-2026-63193 First seen on SecPulse

Affected packages

PackageAffected → Fixed
octobercmsoctober —
Packagistoctober/october
≥ 4.0.0, < 4.3.2→ 4.3.2
composeroctober/october
< 4.3.2→ 4.3.2
Original description The description as published by the source.

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 `.…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details