CVE-2026-63193: October Media Library Crop Handler Bypasses Vulnerability

MODERATE
Advisory Identifier: GHSA-mqwx-84vv-mp26
CVSS 5.5
CWE-434 CWE-79
Published
Advisory Summary

CVE-2026-63193 is a MODERATE (CVSS 5.5) media library crop handler bypasses vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting October libraries in the Packagist ecosystem. The issue involves media library crop handler bypasses upload extension allowlist. Remediation is available by upgrading affected packages to version 4.3.2.

CVE-2026-63193 at a Glance

CVE Identifier CVE-2026-63193
GHSA Identifier GHSA-mqwx-84vv-mp26
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product October
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-63193

To remediate this vulnerability, upgrade all affected October 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/october fixed: Latest secure release
Upgrade october/october to Latest secure release
october/october fixed: 4.3.2
Upgrade october/october to 4.3.2
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/october

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-63193, inspect your project dependencies for October:

inspect dependencies for october/october

Analyze the terminal output to locate any version of October in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.3.2), 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, 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

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

CVE-2026-63193 Affected October Versions

2 component(s)
Fixed Versions:
4.3.2
Product / Package Ecosystem Affected Versions Fixed Version
october/october
Packagist
≤ 3.7.13
october/october
Packagist
≥ 4.0.0
< 4.3.2
4.3.2

References

Frequently Asked Questions

What is CVE-2026-63193?
CVE-2026-63193 is a security vulnerability in October involving Media Library Crop Handler Bypasses Upload Extension Allowlist under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which October versions are affected?
Affected versions include releases prior to 4.3.2 across affected packages: october/october.
What version fixes CVE-2026-63193?
Upgrading to 4.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is october/october affected?
Yes, october/october is affected in releases prior to Latest secure release, 4.3.2. Upgrade your dependency to Latest secure release, 4.3.2 or later.
What is the CVSS score of CVE-2026-63193?
CVE-2026-63193 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-63193?
CVE-2026-63193 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-2026-63193?
Run the dependency tree command: 'inspect dependencies for october/october'. 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-mqwx-84vv-mp26",
  "modified" : "2026-11-19T20:46:36Z",
  "published" : "2026-11-19T20:46:36Z",
  "aliases" : [ "CVE-2026-63193" ],
  "summary" : "October: Media Library Crop Handler Bypasses Upload Extension Allowlist",
  "details" : "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.\n\n**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.\n\n### Impact\n- Bypass of the Media Library extension allowlist that the upload path enforces\n- 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\n- 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\n- Remote code execution on deployments that execute PHP inside the media folder (non-default)\n- Requires authenticated backend access with the `media.library.create` permission\n\n### Patches\nThe 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.\n\n### Workarounds\nIf upgrading immediately is not possible:\n- Restrict the `media.library.create` permission to fully trusted backend users only\n- Ensure the web server cannot execute PHP from the media storage directory (the shipped `.htaccess` and `nginx.conf` already enforce this)\n\n### References\n- Reported by nova-aryan",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "october/october"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.7.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "october/october"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.3.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.3.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/october/security/advisories/GHSA-mqwx-84vv-mp26"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63193"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/october/commit/118c3d08559e811c1bf69db7c5ed82a22bcf0bbc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/octobercms/october"
  }, {
    "type" : "WEB",
    "url" : "https://octobercms.com/changelog?json=3"
  }, {
    "type" : "WEB",
    "url" : "https://octobercms.com/changelog?json=4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T20:46:36Z",
    "nvd_published_at" : "2026-11-17T22:19:21Z"
  }
}