llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · october/october

GHSA-MQWX-84VV-MP26

October: Media Library Crop Handler Bypasses Upload Extension Allowlist

Parche disponible
Descargar PNG JSON
CVSS 3.1
5.5
Media
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión4.3.2
Exposición10 hDesde la divulgación, 19 nov 2026, 3:46 p. m.
Detección1 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
Fuente: GitHub Security Advisories +2
10:47 a. m.
03:46 p. m.
04:00 p. m.
02:14 a. m.
10:47 a. m.
02:39 p. m.
06:30 p. m.
10:22 p. m.
02:14 a. m.
FechaFaseEventoDetalle
Monitoreo Detectada Ingresó al índice
Divulgación Publicada GHSA-MQWX-84VV-MP26 divulgada · CVSS 5.5 (GitHub)
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: GitHub Security Advisories Registro visto por primera vez en GitHub Security Advisories
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

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

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
october/october≤ 3.7.13
october/october≥ 4.0.0 < 4.3.2
3.7.13
4.0.0
4.3.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistoctober/october
Corregida 4.3.2 — —
Versiones corregidas4.3.2
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-63193
Otrahttps://github.com/octobercms/october/security/advisories/GHSA-mqwx-84vv-mp26
Otrahttps://github.com/octobercms/october/commit/118c3d08559e811c1bf69db7c5ed82a22bcf0bbc
Otrahttps://github.com/octobercms/october
Otrahttps://octobercms.com/changelog?json=3
Otrahttps://octobercms.com/changelog?json=4

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.