CVE-2012-2335 in the critical feed json
php-wrapper.fcgi does not properly handle command-line arguments, which allows remote attackers to bypass a protection mechanism in PHP 5.3…
published 2012-05-11 14 y ago modified 2026-06-16 4 mo ago also EUVD-2012-2328
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 33.7%
- EPSS 33.7% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known
Summary
php-wrapper.fcgi does not properly handle command-line arguments, which allows remote attackers to bypass a protection mechanism in PHP 5.3.12 and 5.4.2 and execute arbitrary code by leveraging improper interaction between the PHP sapi/cgi/cgi_main.c component and a query string beginning with a +- sequence.
Patch / fix
- php7 openSUSE Tumbleweed 7.0.14-1.4
- php5 openSUSE Tumbleweed 5.6.28-1.1
opensuse advisories openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-2335 updated cvss 5.1
php: incomplete CVE-2012-1823 fix - insecure wrapper
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 moreaffected: no fix available
-
Red Hat Enterprise Linux 4 phpnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
33.67% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
- Technology feeds
References
-
lists.opensuse.org
/opensuse-security-announce/2012-06/msg00004.html
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2012-07/msg00003.html
vendor-advisory
-
h20564.www2.hp.com
/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
vendor-advisory
-
bugs.php.net
/bug.php?id=61910
vendor-advisory
-
secunia.com
/advisories/49014
third-party-advisory
- git.php.net /?p=php-src.git%3Ba=blob%3Bf=sapi/cgi/cgi_main.c%3Bh=a7ac26f0#l1569
- eindbazen.net /2012/05/php-cgi-advisory-cve-2012-1823/
-
kb.cert.org
/vuls/id/520827
third-party-advisory, us-government-resource
- php.net /archive/2012.php#id2012-05-06-1
-
exchange.xforce.ibmcloud.com
/vulnerabilities/75652
vdb-entry
Sources
- CVE List CVE-2012-2335
- NVD CVE-2012-2335
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.