Arbitrary Command Injection Affecting php package, versions <0:5.1.6-23.3.el5_3


Severity

Recommended
critical

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

Exploit Maturity
Attacked
EPSS
94.39% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL10-PHP-9864251
  • published28 Apr 2025
  • disclosed3 May 2012

Introduced: 3 May 2012

CVE-2012-1823  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade RHEL:10 php to version 0:5.1.6-23.3.el5_3 or higher.
This issue was patched in RHSA-2012:0568.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php package and not the php package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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.

References

CVSS Base Scores

version 3.1