CVE-2012-1823
published critical CVSS 3.1 · 9.8php: command line arguments injection when run in CGI mode (VU#520827)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | certcc |
| Debian | squeeze | php5 | Advisory build | 5.3.3-7+squeeze9 | DSA-2465-1 |
| Oracle Linux | 6 | phpi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Red Hat Enterprise Linux | RHEL-5 | phpi386 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Oracle Linux | 6 | phpx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-bcmathi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-bcmathx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-clii686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 6 | php-clix86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-commoni686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-commonx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-dbai686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-dbax86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-develi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-develx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-embeddedi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-embeddedx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-enchanti686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-enchantx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-gdi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-gdx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-imapi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-imapx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-intli686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-intlx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-ldapi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-ldapx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-mbstringi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-mbstringx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-mysqli686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-mysqlx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-odbci686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-odbcx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-pdoi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-pdox86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-pgsqli686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-pgsqlx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-processi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-processx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-pspelli686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-pspellx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-recodei686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-recodex86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-snmpi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-snmpx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-soapi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-soapx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-tidyi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-tidyx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-xmli686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-xmlx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-xmlrpci686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-xmlrpcx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-ztsi686 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Oracle Linux | 6 | php-ztsx86_64 | Advisory build | 0:5.3.3-3.el6_2.8 | ELSA-2012-0546 |
| Red Hat Enterprise Linux | RHEL-5 | phpi386 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phpi386 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | phpia64 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phpia64 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phpia64 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | phpppc | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phpppc | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | phps390x | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phps390x | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | phpsrc | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phpsrc | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phpsrc | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | phpx86_64 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phpx86_64 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | phpx86_64 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathi386 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathi386 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathi386 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathia64 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathia64 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathia64 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathppc | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathppc | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmaths390x | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmaths390x | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathx86_64 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathx86_64 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-bcmathx86_64 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-clii386 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-clii386 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-clii386 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-cliia64 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-cliia64 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-cliia64 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-clippc | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-clippc | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-clis390x | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-clis390x | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-clix86_64 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-clix86_64 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-clix86_64 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-commoni386 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-commoni386 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-commoni386 | Advisory build | 5.1.6-34.el5_8 | RHSA-2012:0546 |
| Red Hat Enterprise Linux | RHEL-5 | php-commonia64 | Advisory build | 5.1.6-23.3.el5_3 | RHSA-2012:0568 |
| Red Hat Enterprise Linux | RHEL-5 | php-commonia64 | Advisory build | 5.1.6-27.el5_6.4 | RHSA-2012:0568 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | certcc · cna |
Weaknesses
2- n/a
- CWE-77 CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
31- http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
- HPSBMU02786 http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
- APPLE-SA-2012-09-19-2 http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
- openSUSE-SU-2012:0590 http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
- SUSE-SU-2012:0598 http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
- SUSE-SU-2012:0604 http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
- SSRT100856 http://marc.info/?l=bugtraq&m=134012830914727&w=2
- RHSA-2012:0546 http://rhn.redhat.com/errata/RHSA-2012-0546.html
- RHSA-2012:0547 http://rhn.redhat.com/errata/RHSA-2012-0547.html
- RHSA-2012:0568 http://rhn.redhat.com/errata/RHSA-2012-0568.html
- RHSA-2012:0569 http://rhn.redhat.com/errata/RHSA-2012-0569.html
- RHSA-2012:0570 http://rhn.redhat.com/errata/RHSA-2012-0570.html
- 49014 http://secunia.com/advisories/49014
- 49065 http://secunia.com/advisories/49065
- 49085 http://secunia.com/advisories/49085
- 49087 http://secunia.com/advisories/49087
- http://support.apple.com/kb/HT5501
- DSA-2465 http://www.debian.org/security/2012/dsa-2465
- VU#520827 http://www.kb.cert.org/vuls/id/520827
- VU#673343 http://www.kb.cert.org/vuls/id/673343
- MDVSA-2012:068 http://www.mandriva.com/security/advisories?name=MDVSA-2012:068
- [oss-security] 20240606 PHP security releases 8.3.8, 8.2.20, and 8.1.29 http://www.openwall.com/lists/oss-security/2024/06/07/1
- http://www.php.net/ChangeLog-5.php#5.4.2
- http://www.php.net/archive/2012.php#id2012-05-03-1
- 1027022 http://www.securitytracker.com/id?1027022
- https://bugs.php.net/bug.php?id=61910
- https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1
- FEDORA-2024-49aba7b305 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
- FEDORA-2024-52c23ef1ec https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-1823
Provider assertions
3certcc · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 316259da66b0a52d02b582dd457489a4656966e0f61452c3ebcbde1f1eb5bb20
- Ingested
- 23 Sep 2026, 07:39:15 UTC
- Source record
- Official CVE record