llamaCVEVulnerability Intelligence
/
PHP

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

Crítica · CVSS alto en tecnología listada, EPSS ≥ 10 %Afecta la configuración por defectoParche disponiblerace condition
Descargar PNG JSON
CVSS 4.0
9.2
Crítica
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
ExplotaciónPosible PoCSSVC de CISA-ADP decía «ninguna» · ajustado por exploit detectado
Exploits públicos31 fuente
Parche4 versiones8.2.36 · 8.3.37 · 8.4.28 · 8.5.13
Exposición2 dDesde la divulgación, 19 nov 2026, 9:43 a. m.
EPSS ≥ 10 %20 nov 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión SSVC · ajustadaAtender
Priorizar en el próximo ciclo de cambios
Posible PoC pública sin verificar, automatizable e impacto técnico total. Decisión recalculada: la evaluación SSVC original indicaba explotación «ninguna». Hay versiones corregidas disponibles.
Esto me da escalofríos… y tengo abrigo natural.Que tu backlog no se convierta en tu incidente.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Umbral EPSS
Remediación
Monitoreo
Detectada
Fuente: NIST NVD
Fuente: ENISA EUVD
Fuente: PoC-in-GitHub
Verificada
09:43 a. m.
10:25 a. m.
12:19 p. m.
07:00 p. m.
11:56 p. m.
09:17 a. m.
10:26 a. m.
04:08 p. m.
09:43 a. m.
11:19 p. m.
12:55 p. m.
02:32 a. m.
04:08 p. m.
FechaFaseEventoDetalle
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
Resumen
Resumen generado por IA · CC-BY 4.0 · 19 nov 2026

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.

¿Qué significa?A session file written by PHP's files handler can end up only partly overwritten. If an attacker can influence session data, interrupt the write at a useful point, and the application has a suitable deserialization gadget chain, injected objects can lead to code execution with the PHP worker's privileges. Session data can also be corrupted.
¿Quién está afectado?The affected releases are PHP 8.2.35 and earlier (including older branches), 8.3.0 to 8.3.36, 8.4.0 to 8.4.27, and 8.5.0 to 8.5.12, when using the files session save handler, which is PHP's default. Run `php -v` to see the version and check the session.save_handler setting in php.ini or the output of `php -i`.
¿Qué hacer?Upgrade to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13, or a later release in the same branch.
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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
PHP using the files session save handler (the default)“This affects the files session save handler, which is PHP's default.”
02
Attacker can influence session data and interrupt a write at a useful point“It requires attacker influence over the session data, an interruption at a useful point in the write, and an application with a suitable deserialization gadget chain.”
03
Application contains a suitable deserialization gadget chain for code execution“A suitable object gadget chain in the application can turn this into remote code execution.”
¿Quién debe revisar?Teams running PHP before 8.2.36, 8.3.37, 8.4.28 or 8.5.13 with the default files session handler, especially apps with unserialize gadget chains or session upload progress.
No protegeDisabling upload progress does not fix apps that store attacker-controlled data in sessions.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
9.1/ 10Muy alto
Vector 7.1 (fácil) · +2.0 por posible PoC.
Versiones

Rangos afectados

Afectada Corregida
PHP< 8.2.36
PHP≥ 8.3.0 < 8.3.37
PHP≥ 8.4.0 < 8.4.28
PHP≥ 8.5.0 < 8.5.13
8.2.36
8.3.0
8.3.37
8.4.0
8.4.28
8.5.0
8.5.13
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
PHP
Corregida 8.2.36, 8.3.37, 8.4.28, 8.5.13 — —
Versiones corregidas8.2.368.3.378.4.288.5.13
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
—
0
Nuclei
—
0
PoC en GitHub
ashrafzaryouh/CVE-2026-126714 · evenomn/cve-2026-126714-phpAfterShell · tani2shell/phpaftershell-lab
3
Ver los 3 repositorios de GitHub
ashrafzaryouh/CVE-2026-126714
evenomn/cve-2026-126714-phpAfterShell
tani2shell/phpaftershell-lab

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.

Registro
EscenarioGENERALphp
Referencias
Fabricantehttps://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp
Exploithttps://github.com/ashrafzaryouh/CVE-2026-126714
Exploithttps://github.com/evenomn/cve-2026-126714-phpAfterShell
Exploithttps://github.com/tani2shell/phpaftershell-lab
Otrahttps://github.com/semgrep/detection-scripts/pull/14
Otrahttps://depthfirst.com/phpAfterShell
Otrahttps://bugzilla.suse.com/show_bug.cgi?id=1290690
Otrahttps://ubuntu.com/security/CVE-2026-126714

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