{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2012-1823","published":"2012-05-11T10:15:48.043000Z","last_modified":"2026-06-16T23:40:22.147000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","primary":false},"auth":false,"cwes":["CWE-77"],"cpes":[{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_end_excluding":"5.3.12"},{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"5.4.0","version_end_excluding":"5.4.2"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"39"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"40"},{"criteria":"cpe:2.3:o:debian:debian_linux:6.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"6.0"},{"criteria":"cpe:2.3:o:hp:hp-ux:b.11.23:*:*:*:*:*:*:*","part":"o","vendor":"hp","product":"hp-ux","version":"b.11.23"},{"criteria":"cpe:2.3:o:hp:hp-ux:b.11.31:*:*:*:*:*:*:*","part":"o","vendor":"hp","product":"hp-ux","version":"b.11.31"},{"criteria":"cpe:2.3:o:opensuse:opensuse:11.4:*:*:*:*:*:*:*","part":"o","vendor":"opensuse","product":"opensuse","version":"11.4"},{"criteria":"cpe:2.3:o:opensuse:opensuse:12.1:*:*:*:*:*:*:*","part":"o","vendor":"opensuse","product":"opensuse","version":"12.1"},{"criteria":"cpe:2.3:o:suse:linux_enterprise_server:10:sp4:*:*:-:*:*:*","part":"o","vendor":"suse","product":"linux_enterprise_server","version":"10"},{"criteria":"cpe:2.3:o:suse:linux_enterprise_server:11:sp2:*:*:*:-:*:*","part":"o","vendor":"suse","product":"linux_enterprise_server","version":"11"},{"criteria":"cpe:2.3:o:suse:linux_enterprise_server:11:sp2:*:*:*:vmware:*:*","part":"o","vendor":"suse","product":"linux_enterprise_server","version":"11"},{"criteria":"cpe:2.3:o:suse:linux_enterprise_software_development_kit:10:sp4:*:*:*:*:*:*","part":"o","vendor":"suse","product":"linux_enterprise_software_development_kit","version":"10"},{"criteria":"cpe:2.3:o:suse:linux_enterprise_software_development_kit:11:sp2:*:*:*:*:*:*","part":"o","vendor":"suse","product":"linux_enterprise_software_development_kit","version":"11"},{"criteria":"cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*","part":"o","vendor":"apple","product":"mac_os_x","version_start_including":"10.6.8","version_end_excluding":"10.7.5"},{"criteria":"cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*","part":"o","vendor":"apple","product":"mac_os_x","version_start_including":"10.8.0","version_end_excluding":"10.8.2"},{"criteria":"cpe:2.3:a:redhat:application_stack:2.0:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"application_stack","version":"2.0"},{"criteria":"cpe:2.3:a:redhat:gluster_storage_server_for_on-premise:2.0:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"gluster_storage_server_for_on-premise","version":"2.0"},{"criteria":"cpe:2.3:a:redhat:storage:2.0:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"storage","version":"2.0"},{"criteria":"cpe:2.3:a:redhat:storage_for_public_cloud:2.0:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"storage_for_public_cloud","version":"2.0"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_desktop","version":"6.0"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_eus:5.6:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_eus","version":"5.6"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_eus:6.1:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_eus","version":"6.1"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_eus:6.2:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_eus","version":"6.2"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_server:5.0:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_server","version":"5.0"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_server","version":"6.0"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_server_aus:5.3:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_server_aus","version":"5.3"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_server_aus:5.6:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_server_aus","version":"5.6"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_workstation:5.0:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_workstation","version":"5.0"},{"criteria":"cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*","part":"o","vendor":"redhat","product":"enterprise_linux_workstation","version":"6.0"}],"cpes_truncated":false,"vendors":["php","fedoraproject","debian","hp","opensuse","suse","apple","redhat"],"products":["php/php","fedoraproject/fedora","debian/debian_linux","hp/hp-ux","opensuse/opensuse","suse/linux_enterprise_server","suse/linux_enterprise_software_development_kit","apple/mac_os_x","redhat/application_stack","redhat/gluster_storage_server_for_on-premise","redhat/storage","redhat/storage_for_public_cloud","redhat/enterprise_linux_desktop","redhat/enterprise_linux_eus","redhat/enterprise_linux_server","redhat/enterprise_linux_server_aus","redhat/enterprise_linux_workstation"],"ssvc":{"exploitation":"active","automatable":"yes","technical_impact":"total"},"kev":{"date_added":"2022-03-25","due_date":"2022-04-15","ransomware":false,"forensic_triage":false,"cwes":["CWE-20"]},"epss":{"score":0.99999,"percentile":0.99995,"date":"2026-11-27","model_version":"v2026.06.15"},"cat":"web","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":84,"links":{"html_es":"/es/cve/CVE-2012-1823/","html_en":"/en/cve/CVE-2012-1823/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-1823","cve_org":"https://www.cve.org/CVERecord?id=CVE-2012-1823"},"untrusted":{"vendor_name":"PHP","product_name":"PHP","desc_en":"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.","affected":[],"kev":{"vendor":"PHP","product":"PHP","name":"PHP-CGI Query String Parameter Vulnerability","desc":"sapi/cgi/cgi_main.c in PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code.","action":"Apply updates per vendor instructions.","notes":"https://nvd.nist.gov/vuln/detail/CVE-2012-1823"},"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"5a55ea64f274c0d5315a86efa153f9da","generated":"2026-11-26T20:10:58.684656Z","es":{"untrusted_title":"Ejecución remota de código en PHP-CGI por manejo incorrecto de cadenas de consu…","untrusted_summary":"PHP versiones anteriores a 5.3.12 y 5.4.x anteriores a 5.4.2, cuando se configura como CGI, no maneja correctamente cadenas de consulta sin el carácter \"=\", permitiendo a atacantes remotos ejecutar código arbitrario. CISA confirmó esta vulnerabilidad como explotada activamente."},"en":{"untrusted_title":"Remote Code Execution in PHP-CGI via Improper Query String Handling","untrusted_summary":"PHP versions before 5.3.12 and 5.4.x before 5.4.2, when configured as CGI, do not properly handle query strings lacking an equals sign, allowing remote attackers to execute arbitrary code. CISA confirmed this vulnerability as actively exploited."},"remediation":{"status":"fix","fixed_versions":["5.3.12","5.4.2"],"untrusted_action_es":"Actualiza PHP a versión 5.3.12 o posterior, o 5.4.2 o posterior según tu rama. Aplica el parche disponible en el repositorio oficial de PHP.","untrusted_action_en":"Update PHP to version 5.3.12 or later, or 5.4.2 or later depending on your branch. Apply the patch available in the official PHP repository.","vendor_url":"http://www.php.net/ChangeLog-5.php#5.4.2"},"reviewed":false},"references":[{"url":"http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/","tags":["Broken Link","Exploit"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041","tags":["Broken Link"]},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://marc.info/?l=bugtraq&m=134012830914727&w=2","tags":["Mailing List"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0546.html","tags":["Third Party Advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0547.html","tags":["Third Party Advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0568.html","tags":["Third Party Advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0569.html","tags":["Third Party Advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0570.html","tags":["Third Party Advisory"]},{"url":"http://secunia.com/advisories/49014","tags":["Broken Link"]},{"url":"http://secunia.com/advisories/49065","tags":["Broken Link"]},{"url":"http://secunia.com/advisories/49085","tags":["Broken Link"]},{"url":"http://secunia.com/advisories/49087","tags":["Broken Link"]},{"url":"http://support.apple.com/kb/HT5501","tags":["Third Party Advisory"]},{"url":"http://www.debian.org/security/2012/dsa-2465","tags":["Third Party Advisory"]},{"url":"http://www.kb.cert.org/vuls/id/520827","tags":["Exploit","Third Party Advisory","US Government Resource"]},{"url":"http://www.kb.cert.org/vuls/id/673343","tags":["Third Party Advisory","US Government Resource"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:068","tags":["Broken Link"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":["Mailing List"]},{"url":"http://www.php.net/ChangeLog-5.php#5.4.2","tags":["Exploit","Patch","Release Notes"]},{"url":"http://www.php.net/archive/2012.php#id2012-05-03-1","tags":["Release Notes"]},{"url":"http://www.securitytracker.com/id?1027022","tags":["Broken Link","Third Party Advisory","VDB Entry"]},{"url":"https://bugs.php.net/bug.php?id=61910","tags":["Exploit","Patch"]},{"url":"https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1","tags":["Patch"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["Mailing List","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":["Mailing List","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["Mailing List","Release Notes"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-1823","tags":["US Government Resource"]}]}}