Actively exploited vulnerability / CVE-2012-1823
PHP running as CGI: an attacker can take control of the web server
This flaw in PHP, when it runs in CGI mode, lets a remote attacker run their own code on the server. That means they could steal data, change the website or use the server for further attacks. It is on the lists of vulnerabilities used in real attacks kept by both CISA (the US cybersecurity agency) and ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2012-1823 · EUVD-2012-1833
- On the CISA list (US)
- yes, since 25 March 2022
- Deadline given to US federal agencies
- 15 April 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 100.0% (FIRST's estimate for the next 30 days)
Does it concern you?
PHP is the programming language behind a large share of websites and web applications, such as WordPress sites and online shops. It concerns you if your company runs a website or web application on its own or a rented server.
Ask your hosting provider or whoever manages your website which PHP version the server uses and whether PHP runs in CGI mode. The version is usually also shown in the hosting control panel.
Affected products and versions
- PHP
What to do
Install the latest PHP update from the vendor, following its instructions. If someone else manages your server, ask them to confirm the update has been applied.
The official description
The text below is the description from the public database.
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.
Sources
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.