PHP-CGI Query String Parameter Vulnerability
Publish date: July 21, 2015
Severity: HIGH
CVE Identifier: CVE-2012-1823
Advisory Date: JUL 21, 2015
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.
TREND MICRO PROTECTION INFORMATION
Apply associated Trend Micro DPI Rules.
SOLUTION
Trend Micro Deep Security DPI Rule Number: 1004998
Trend Micro Deep Security DPI Rule Name: 1004998 - PHP-CGI Query String Parameter Vulnerability
AFFECTED SOFTWARE AND VERSION
- php php 5.0.0
- php php 5.0.1
- php php 5.0.2
- php php 5.0.3
- php php 5.0.4
- php php 5.0.5
- php php 5.1.0
- php php 5.1.1
- php php 5.1.2
- php php 5.1.3
- php php 5.1.4
- php php 5.1.5
- php php 5.1.6
- php php 5.2.0
- php php 5.2.1
- php php 5.2.10
- php php 5.2.11
- php php 5.2.12
- php php 5.2.13
- php php 5.2.14
- php php 5.2.15
- php php 5.2.16
- php php 5.2.17
- php php 5.2.2
- php php 5.2.3
- php php 5.2.4
- php php 5.2.5
- php php 5.2.6
- php php 5.2.7
- php php 5.2.8
- php php 5.2.9
- php php 5.3.0
- php php 5.3.1
- php php 5.3.10
- php php 5.3.11
- php php 5.3.2
- php php 5.3.3
- php php 5.3.4
- php php 5.3.5
- php php 5.3.6
- php php 5.3.7
- php php 5.3.8
- php php 5.3.9
- php php 5.4.0
- php php 5.4.1
Featured Stories
Beware of MCP Hardcoded Credentials: A Perfect Target for Threat ActorsPoor secret management in MCP servers can lead to serious consequences, including data breaches and supply chain attacks. This article examines the reality of these unsecure configurations and offers practical recommendations that minimize the chances of exposure.Read more
Lessons in Resilience from the Race to Patch SharePoint VulnerabilitiesIn this article, Trend Micro discusses how the fast-moving attacks using CVE-2025-53770 and CVE-2025-53771 have underscored the essential role of virtual patching and reliable intelligence in protecting organizations against evolving threats.Read more
Unveiling AI Agent Vulnerabilities Part V: Securing LLM ServicesTo conclude our series on agentic AI, this article examines emerging vulnerabilities that threaten AI agents, focusing on providing proactive security recommendations on areas such as code execution, data exfiltration, and database access.Read more
Unveiling AI Agent Vulnerabilities Part IV: Database Access VulnerabilitiesHow can attackers exploit weaknesses in database-enabled AI agents? This research explores how SQL generation vulnerabilities, stored prompt injection, and vector store poisoning can be weaponized by attackers for fraudulent activities.Read more