llamaCVEVulnerability Intelligence
/
n/a

CVE-2012-1823

PHP remote code execution via CGI query string handling

An attacker can send a crafted request with options in the query string to run arbitrary code on the server.

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 25 mar 2022
Exploits públicos0Explotada, pero sin código público enlazado
Parche1 versión5.4.3
Exposición5.307 dDesde la divulgación, 11 may 2012, 5:00 a. 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 abr 2022.
¿Escuchas eso? Es tu SIEM llorando.Te lo digo con cariño: tu servidor está en peligro.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
CISA KEV
Umbral EPSS
Remediación
Plazo KEV
Monitoreo
Detectada
11 may 12
25 mar 22
15 abr 22
4 nov 25
22 oct 26
21 nov 26
11 may 12
29 dic 15
16 ago 19
4 abr 23
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2012-1823 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
Resumen
Resumen generado por IA · CC-BY 4.0

The PHP interpreter when run as a CGI program (php-cgi) is affected, along with any web server setup that uses it to handle requests. An attacker who sends a specially crafted request with command-line options in the query string could run arbitrary code on the server.

Affects PHP before 5.3.12 and 5.4.x before 5.4.2 when PHP runs as a CGI script (php-cgi), where the query string is passed as command-line arguments. CVSS rates it critical. Fixed in 5.4.3.

¿Qué significa?When PHP runs as a CGI script, php-cgi receives the query string as command-line arguments, and the code does not handle them properly. An attacker could use this to obtain sensitive information, cause a denial of service, or execute arbitrary code with the privileges of the web server.
¿Quién está afectado?The advisory names PHP before 5.3.12 and 5.4.x before 5.4.2 when configured as a CGI script (php-cgi). To check a setup, look at the PHP version it reports and whether PHP is served through the CGI binary rather than an embedded module.
¿Qué hacer?Upgrade to PHP 5.4.3, the version the advisory reports as fixing the issue.
Descripción original del registro

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
PHP is used in a CGI-based setup (php-cgi receives the query string as command-line arguments)“When PHP is used in a CGI-based setup”
MitigaciónApache mod_rewrite RewriteCond and RewriteRule that reject query strings starting with a dash and lacking an equals sign
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.
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
—
Corregida 5.4.3 — —
Versiones corregidas5.4.3
Explotación

Arsenal público

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

Referencias
Advisoryhttp://marc.info/?l=bugtraq&m=134012830914727&w=2
Advisoryhttp://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
Advisoryhttp://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
Advisoryhttp://www.mandriva.com/security/advisories?name=MDVSA-2012:068
Advisoryhttp://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
Advisoryhttp://rhn.redhat.com/errata/RHSA-2012-0546.html
Advisoryhttp://rhn.redhat.com/errata/RHSA-2012-0568.html
Advisoryhttp://rhn.redhat.com/errata/RHSA-2012-0569.html
Advisoryhttp://rhn.redhat.com/errata/RHSA-2012-0570.html
Advisoryhttp://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
Advisoryhttp://rhn.redhat.com/errata/RHSA-2012-0547.html
Advisoryhttp://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
Ver 13 referencias más
Advisoryhttp://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
Advisoryhttp://marc.info/?l=bugtraq&m=134012830914727&w=2
Advisoryhttp://www.debian.org/security/2012/dsa-2465
Otrahttp://www.securitytracker.com/id?1027022
Otrahttp://www.php.net/ChangeLog-5.php#5.4.2
Otrahttp://secunia.com/advisories/49014
Otrahttps://bugs.php.net/bug.php?id=61910
Otrahttp://www.kb.cert.org/vuls/id/673343
Otrahttp://support.apple.com/kb/HT5501
Otrahttp://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
Otrahttp://secunia.com/advisories/49065
Otrahttp://www.kb.cert.org/vuls/id/520827
Otrahttps://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1

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