CVE-2026-126714
PHP remote code execution via partially written session files
Remote attackers who can influence session data may inject objects and run code if a gadget chain is present.
Texto original en inglés · Ver en español
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-126714 divulgada · CVSS 9.2 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Explotación | Umbral EPSS | La probabilidad de explotación supera el 10 % | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Monitoreo | Fuente: PoC-in-GitHub | Registro visto por primera vez en PoC-in-GitHub | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
PHP's default file-based session handler can leave a session file with a mix of new and old data if a write is interrupted, so an attacker who can influence session data may inject objects and, if the application contains a suitable gadget chain, run code on the server. The attacker can reach this remotely without logging in, though the attack depends on interrupting a write at the right moment.
PHP before 8.2.36, 8.3.37, 8.4.28 or 8.5.13 using the default files session handler, if the application has a suitable gadget chain. Fixed in those versions.
Descripción original del registro (php)
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one, and bytes of an ordinary string can later be unserialized as objects. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
PHP |
Corregida | 8.2.36, 8.3.37, 8.4.28, 8.5.13 | — | — |
8.2.368.3.378.4.288.5.13Arsenal público
Ver los 3 repositorios de GitHub
Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.
https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cphttps://github.com/ashrafzaryouh/CVE-2026-126714https://github.com/evenomn/cve-2026-126714-phpAfterShellhttps://github.com/tani2shell/phpaftershell-labhttps://github.com/semgrep/detection-scripts/pull/14https://depthfirst.com/phpAfterShellhttps://bugzilla.suse.com/show_bug.cgi?id=1290690https://ubuntu.com/security/CVE-2026-126714Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
