llamaCVEVulnerability Intelligence
/
PHPUnit/PHPUnit

CVE-2017-9841

PHPUnit/PHPUnit remote code execution in eval-stdin.php

Remote attackers can run arbitrary PHP code on a server if its vendor folder is publicly accessible.

Texto original en inglés · Ver en español

CISA KEV · explotación activaCrítica · en CISA KEV, EPSS ≥ 10 %Parche disponible
Descargar PNG JSON
CVSS 3.1
9.8
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Fuente: NVD
ExplotaciónActivaEn CISA KEV desde 15 feb 2022
Exploits públicos0Explotada, pero sin código público enlazado
Parche3 versiones4.8.28 · 5.6.3 · 5.7.15-r1
Exposición3.433 dDesde la divulgación, 27 jun 2017, 12:00 p. m.
EPSS ≥ 10 %22 oct 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión estimadaActuar
Parchear de inmediato
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): explotación activa (CISA KEV), automatizable e impacto técnico total. Plazo KEV: 15 ago 2022.
Esto ya lo están explotando mientras haces scroll.Si esperas al lunes, el lunes te espera a ti.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
CISA KEV
Umbral EPSS
Remediación
Plazo KEV
Monitoreo
Detectada
Verificada
27 jun 17
15 feb 22
15 ago 22
21 oct 25
22 oct 26
12 nov 26
21 nov 26
27 jun 17
3 nov 19
10 mar 22
16 jul 24
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2017-9841 divulgada · CVSS 9.8 (NVD)
Explotación CISA KEV Agregada al catálogo de vulnerabilidades explotadas
Remediación Plazo KEV Fecha límite de remediación para agencias federales (EE. UU.)
Divulgación Modificada Última actualización del registro
Explotación Umbral EPSS La probabilidad de explotación supera el 10 %
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0

PHPUnit, a widely used testing framework for PHP, is affected by this vulnerability. An attacker can remotely run arbitrary PHP code on a server if its vendor folder is publicly accessible, potentially giving them full control of the affected system.

¿Qué significa?The eval-stdin.php file in PHPUnit can let a remote attacker run arbitrary PHP code sent via HTTP POST data. The same flaw could also cause a Denial of Service condition.
¿Quién está afectado?PHPUnit versions from 4.8.19 up to 4.8.28 and from 5.0.10 up to 5.6.3 are listed as affected. The setup of concern is PHPUnit installed in a production environment via Composer, with its files in a web-accessible directory. To check, run phpunit --version or look up phpunit/phpunit in composer.lock, and check whether the vendor directory is served by the web server.
Descripción original del registro

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a "<?php " substring, as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
PHPUnit is installed in a production environment via composer“When PHPUnit is installed in a production environment via composer and”
02
PHPUnit files are in a web accessible directory“these modules are in a web accessible directory”
MitigaciónRemove PHPUnit from the production environment, update PHPUnit, manually apply the patch, or disable direct access to the composer packages by placing .htaccess file to /vendor folder.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · NVD
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
phpunit/phpunit≥ 4.8.19 < 4.8.28
phpunit/phpunit≥ 5.0.10 < 5.6.3
4.8.19
4.8.28
5.0.10
5.6.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
phpunit/phpunit
Corregida 4.8.28, 5.6.3 — —
Versiones corregidas4.8.285.6.35.7.15-r1
Explotación

Arsenal público

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

Referencias
Fabricantehttps://security.gentoo.org/glsa/201711-15
Otrahttp://www.securityfocus.com/bid/101798
Otrahttp://www.securitytracker.com/id/1039812
Otrahttps://www.oracle.com/security-alerts/cpuoct2021.html
Otrahttps://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
Otrahttps://github.com/sebastianbergmann/phpunit/pull/1956
Otrahttp://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/

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