php php CVE-2012-1823 vulnerability in PHP and Other Products
Published on May 11, 2012

product logo product logo product logo product logo product logo product logo product logo product logo
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.

NVD

Known Exploited Vulnerability

This PHP-CGI Query String Parameter Vulnerability is part of CISA's list of Known Exploited Vulnerabilities. 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.

The following remediation steps are recommended / required by April 15, 2022: Apply updates per vendor instructions.

Vulnerability Analysis

CVE-2012-1823 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. It has the highest possible exploitability rating (3.9). The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.

What is a Command Injection Vulnerability?

The software constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

CVE-2012-1823 has been classified to as a Command Injection vulnerability or weakness.


Products Associated with CVE-2012-1823

You can be notified by stack.watch whenever vulnerabilities like CVE-2012-1823 are published in these products:

PHP
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

What versions are vulnerable to CVE-2012-1823?