PHP-CGI query-string argument injection
Under the CGI SAPI, a query string with no = character is delivered to php-cgi as command-line arguments, so URL-supplied options like -d reach PHP's option parser and turn into remote code execution.
- Product
- PHP (php-cgi, sapi/cgi)
- Vendor
- The PHP Group
- Affected
- < 5.3.12; 5.4.0 through 5.4.1 (php-cgi / CGI SAPI)
- Fixed in
- 5.3.12 and 5.4.2
- Weakness
- CWE-77
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 11 May 2012
Classified as
References
Related CVEs
- CVE-2024-3400critical 10.02024
PAN-OS GlobalProtect file-create to root command injection
An unauthenticated session cookie is used as a filename with no validation, so an attacker plants a root-owned file whose name carries shell metacharacters; an hourly telemetry job then embeds that filename in a shell command and executes it as root.
- CVE-2023-1389high 8.82023
TP-Link Archer locale command injection
An unauthenticated locale API places the country parameter inside a command string that firmware executes with popen as root.
- CVE-2016-3714high 8.42016
ImageTragick: command injection via image delegate
An image library hands unsupported formats to external helper programs, building each helper command from a template. Attacker-controlled tokens are substituted in with no shell-escaping and run through system(), so a crafted image executes commands.
- CVE-2019-11043high 8.72019
PHP-FPM PATH_INFO pointer underflow
A malformed FastCGI path can make PATH_INFO shorter than the script-path adjustment, moving a derived pointer before its buffer and enabling an out-of-bounds write.