CVE-2012-1823

unknown KEV
Published 2022-03-25 ยท Modified 2022-03-25
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
2.5

Description

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.

CISA KEV

Vendor
PHP
Product
PHP
Due date
2022-04-15

Predictions

Exploit likelihood
99%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-29316 remote php
noptrix ยท 2013-10-31

Apache + PHP < 5.3.12 / < 5.4.2 - Remote Code Execution + Scanner

Source code queued for fetch โ€” refresh in a moment.
EDB-18834 remote php verified
Metasploit ยท 2012-05-04

PHP 5.3.12/5.4.2 - CGI Argument Injection (Metasploit)

Source code queued for fetch โ€” refresh in a moment.
EDB-18836 remote php verified
rayh4c ยท 2012-05-05

PHP < 5.3.12 / < 5.4.2 - CGI Argument Injection

Source code queued for fetch โ€” refresh in a moment.
EDB-29290 remote php verified
kingcope ยท 2013-10-29

Apache + PHP < 5.3.12 / < 5.4.2 - cgi-bin Remote Code Execution

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

PHP CGI Argument Injection
Source fetch failed: fetch_error โ€” view the original via the link above.

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.