{"vuln_id":"GHSA-mqwx-84vv-mp26","aliases":["CVE-2026-63193"],"description":"October: Media Library Crop Handler Bypasses Upload Extension Allowlist","published_at":"2026-11-19T20:46:36Z","modified_at":"2026-11-19T21:00:03.980283Z","first_seen_at":"2026-11-21T19:15:19.481990Z","severity":"medium","severity_source":"ghsa","cvss_score":5.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","cwe":["CWE-79","CWE-434"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-mqwx-84vv-mp26"},"matched_alias":null,"items":[{"id":11094,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-mqwx-84vv-mp26: October: Media Library Crop Handler Bypasses Upload Extension Allowlist","summary":"October: Media Library Crop Handler Bypasses Upload Extension Allowlist\n\nThe 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\n\nAffected: Packagist:october/october\n\nFixed in: 4.3.2\n\nReferences:\nhttps://github.com/octobercms/october/security/advisories/GHSA-mqwx-84vv-mp26\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-63193\nhttps://github.com/octobercms/october/commit/118c3d08559e811c1bf69db7c5ed82a22bcf0bbc\nhttps://github.com/octobercms/october\nhttps://octobercms.com/changelog?json=3\nhttps://octobercms.com/changelog?json=4","url":"https://osv.dev/vulnerability/GHSA-mqwx-84vv-mp26","published_at":"2026-11-19T20:46:36Z","updated_at":"2026-11-19T21:00:03.980283Z","fetched_at":"2026-11-21T19:15:55.946425Z","severity":"medium","cvss_score":5.5,"epss":0.0056,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"october/october","vuln_id":"CVE-2026-63193","vuln_ids":["CVE-2026-63193","GHSA-MQWX-84VV-MP26"],"tags":["osv","packagist","fix-available"],"cluster_id":2220,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11094","html":"https://vulnwatch.ve1ve2.com/item/11094"}},{"id":2395,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-mqwx-84vv-mp26 / CVE-2026-63193: October: Media Library Crop Handler Bypasses Upload Extension Allowlist","summary":"October: Media Library Crop Handler Bypasses Upload Extension Allowlist\n\nThe 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\n\nAffected packages: composer:october/october\nPatched: october/october 4.3.2","url":"https://github.com/advisories/GHSA-mqwx-84vv-mp26","published_at":"2026-11-19T20:46:36Z","updated_at":"2026-11-19T20:46:36Z","fetched_at":"2026-11-21T19:15:18.416804Z","severity":"medium","cvss_score":5.5,"epss":0.0056,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"october/october","vuln_id":"CVE-2026-63193","vuln_ids":["CVE-2026-63193","GHSA-MQWX-84VV-MP26"],"tags":["ghsa","composer","CWE-79","CWE-434"],"cluster_id":2220,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2395","html":"https://vulnwatch.ve1ve2.com/item/2395"}},{"id":7458,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-63193: October System provides the system module for October Content Management System. Prior to 3.7.18 and 4.3.2, the Media Library MediaManager::onCropImage and cro…","summary":"October System provides the system module for October Content Management System. Prior to 3.7.18 and 4.3.2, the Media Library MediaManager::onCropImage and cropImage path accepts a user-controlled destination filename without applying the default_extensions allowlist enforced by the normal upload path. An authenticated backend user with media.library.create permission can upload arbitrary bytes under an allowed extension and use the zero-dimension crop branch, which performs a byte-for-byte File::copy, to write those bytes into the public media folder under an attacker-selected extension. Default server configurations block PHP execution in that folder, but HTML or SVG output can produce stored cross-site scripting in the application origin; non-default servers that execute PHP in the media directory can expose remote code execution. This vulnerability is fixed in 3.7.18 and 4.3.2.\n\nReferences:\nhttps://github.com/octobercms/october/commit/118c3d08559e811c1bf69db7c5ed82a22bcf0bbc\nhttps://github.com/octobercms/october/security/advisories/GHSA-mqwx-84vv-mp26\nhttps://octobercms.com/changelog?json=3\nhttps://octobercms.com/changelog?json=4","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63193","published_at":"2026-11-17T22:19:21.080000Z","updated_at":"2026-11-21T03:17:03.900000Z","fetched_at":"2026-11-21T19:15:31.483358Z","severity":"medium","cvss_score":5.5,"epss":0.0056,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-63193","vuln_ids":["CVE-2026-63193","GHSA-MQWX-84VV-MP26"],"tags":["CWE-79","CWE-434"],"cluster_id":2221,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/7458","html":"https://vulnwatch.ve1ve2.com/item/7458"}}]}