Description · from the CVE record

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

ProductAffectedFixed inSource
n/an/a–CNA

Scores by source

CISA ADP9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: active · Automatable: yes · Technical impact: total

References

advisorymarc.info/?l=bugtraq&m=134012830914727&w=2advisorylists.opensuse.org/opensuse-security-announce/2012-05/msg00011.htmlrefsecuritytracker.com/id?1027022advisoryh20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041advisorymandriva.com/security/advisories?name=MDVSA-2012:068advisorylists.opensuse.org/opensuse-security-announce/2012-05/msg00002.htmladvisoryrhn.redhat.com/errata/RHSA-2012-0546.htmladvisoryrhn.redhat.com/errata/RHSA-2012-0568.htmladvisoryrhn.redhat.com/errata/RHSA-2012-0569.htmlrefphp.net/ChangeLog-5.php#5.4.2writeupsecunia.com/advisories/49014advisoryrhn.redhat.com/errata/RHSA-2012-0570.htmladvisorylists.opensuse.org/opensuse-security-announce/2012-05/msg00007.htmlrefbugs.php.net/bug.php?id=61910writeupkb.cert.org/vuls/id/673343advisoryrhn.redhat.com/errata/RHSA-2012-0547.htmladvisorylists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlrefsupport.apple.com/kb/HT5501refeindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823writeupsecunia.com/advisories/49065writeupkb.cert.org/vuls/id/520827refbugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1advisorydebian.org/security/2012/dsa-2465writeupsecunia.com/advisories/49085refphp.net/archive/2012.php#id2012-05-03-1writeupsecunia.com/advisories/49087refopenwall.com/lists/oss-security/2024/06/07/1advisorylists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4Badvisorylists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PKreflists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4Brefcisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-1823kevcisa.gov/known-exploited-vulnerabilities-catalog