Skip to main content
← All vulnerabilities
CVE-2012-1823

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 que

Published
Last modified
published
Listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. Added to CISA KEV

    CISA has evidence of exploitation in the wild

  3. CISA remediation deadline

    Due date for US federal agencies to patch

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

References 23

marc.info

lists.opensuse.org

securitytracker.com

h20000.www2.hp.com

mandriva.com

rhn.redhat.com

php.net

secunia.com

bugs.php.net

kb.cert.org

lists.apple.com

support.apple.com

eindbazen.net

debian.org