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
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Fuente: NVD
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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.
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.
Condiciones y alcance
Desglose de métricas
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
— |
Corregida | 5.4.3 | — | — |
5.4.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
http://marc.info/?l=bugtraq&m=134012830914727&w=2http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.htmlhttp://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041http://www.mandriva.com/security/advisories?name=MDVSA-2012:068http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0546.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0568.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0569.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0570.htmlhttp://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0547.htmlhttp://lists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlVer 13 referencias más
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041http://marc.info/?l=bugtraq&m=134012830914727&w=2http://www.debian.org/security/2012/dsa-2465http://www.securitytracker.com/id?1027022http://www.php.net/ChangeLog-5.php#5.4.2http://secunia.com/advisories/49014https://bugs.php.net/bug.php?id=61910http://www.kb.cert.org/vuls/id/673343http://support.apple.com/kb/HT5501http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/http://secunia.com/advisories/49065http://www.kb.cert.org/vuls/id/520827https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
