CVE-2011-2202 json
The rfc1867_post_handler function in main/rfc1867.c in PHP before 5.3.7 does not properly restrict filenames in multipart/form-data POST re…
published 2011-06-16 15 y ago modified 2026-06-16 4 mo ago also EUVD-2011-2192
- cvss
- 6.4
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 19.7%
- EPSS 19.7% chance of exploitation in 30 days, percentile 97%
- public exploits
- 1
- Exploit-DB
Summary
The rfc1867_post_handler function in main/rfc1867.c in PHP before 5.3.7 does not properly restrict filenames in multipart/form-data POST requests, which allows remote attackers to conduct absolute path traversal attacks, and possibly create or overwrite arbitrary files, via a crafted upload request, related to a "file path injection vulnerability."
Patch / fix
- php RHEL 4 4.3.9-3.35
- php-gd RHEL 4 4.3.9-3.35
- php-imap RHEL 4 4.3.9-3.35
- php-ldap RHEL 4 4.3.9-3.35
- php-odbc RHEL 4 4.3.9-3.35
- php-pear RHEL 4 4.3.9-3.35
- php-snmp RHEL 4 4.3.9-3.35
- php-mysql RHEL 4 4.3.9-3.35
red hat advisories RHSA-2012:0071RHSA-2012:0033RHSA-2011:1423
- php7 openSUSE Tumbleweed 7.0.14-1.4
- php5 openSUSE Tumbleweed 5.6.28-1.1
- php8 openSUSE Tumbleweed 8.0.11-1.1
opensuse advisories openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1openSUSE-SU-2024:11169-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-2011-2202 updated cvss 2.6
php: file path injection vulnerability in RFC1867 file upload filename
-
Red Hat Enterprise Linux (v. 5 server) php 5.1.6-27.el5_7.4, php53 5.3.3-1.el5_7.3, php-gd 5.1.6-27.el5_7.4, php-cli 5.1.6-27.el5_7.4, php-dba 5.1.6-27.el5_7.4, php-pdo 5.1.6-27.el5_7.4, +32 morefixed: vendor fix RHSA-2012:0033
-
Red Hat Enterprise Linux AS version 4 php 4.3.9-3.35, php-gd 4.3.9-3.35, php-imap 4.3.9-3.35, php-ldap 4.3.9-3.35, php-odbc 4.3.9-3.35, php-pear 4.3.9-3.35, +7 more Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.35, php-gd 4.3.9-3.35, php-imap 4.3.9-3.35, php-ldap 4.3.9-3.35, php-odbc 4.3.9-3.35, php-pear 4.3.9-3.35, +7 more Red Hat Enterprise Linux ES version 4 php 4.3.9-3.35, php-gd 4.3.9-3.35, php-imap 4.3.9-3.35, php-ldap 4.3.9-3.35, php-odbc 4.3.9-3.35, php-pear 4.3.9-3.35, +7 morefixed: vendor fix RHSA-2012:0071
-
Red Hat Enterprise Linux Server (v. 6) php 5.3.3-3.el6_1.3, php-gd 5.3.3-3.el6_1.3, php-cli 5.3.3-3.el6_1.3, php-dba 5.3.3-3.el6_1.3, php-pdo 5.3.3-3.el6_1.3, php-xml 5.3.3-3.el6_1.3, +19 more Red Hat Enterprise Linux Server Optional (v. 6) php 5.3.3-3.el6_1.3, php-gd 5.3.3-3.el6_1.3, php-cli 5.3.3-3.el6_1.3, php-dba 5.3.3-3.el6_1.3, php-pdo 5.3.3-3.el6_1.3, php-xml 5.3.3-3.el6_1.3, +19 morefixed: vendor fix RHSA-2011:1423
-
Red Hat Enterprise Linux WS version 4 php 4.3.9-3.35, php-gd 4.3.9-3.35, php-imap 4.3.9-3.35, php-ldap 4.3.9-3.35, php-odbc 4.3.9-3.35, php-pear 4.3.9-3.35, +7 morefixed: vendor fix RHSA-2012:0071
-
Red Hat RHEL Desktop Workstation (v. 5 client) php 5.1.6-27.el5_7.4, php53 5.3.3-1.el5_7.3, php-gd 5.1.6-27.el5_7.4, php-cli 5.1.6-27.el5_7.4, php-dba 5.1.6-27.el5_7.4, php-pdo 5.1.6-27.el5_7.4, +32 morefixed: vendor fix RHSA-2012:0033
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
Timeline
- First public exploit (EDB-35855)
- Published
Exploit prediction
19.74% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-35855 PHP 5.3.6 - Security Bypass remote, 2011-06-14
- pastebin.com http://pastebin.com/1edSuSVN referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
- Technology feeds
References
-
svn.php.net
/viewvc/php/php-src/branches/PHP_5_3/main/rfc1867.c?r1=312103&r2=312102&pathrev=312103
patch
-
svn.php.net
/viewvc?view=revision&revision=312103
patch
-
openwall.com
/lists/oss-security/2011/06/13/15
mailing-list, patch
-
openwall.com
/lists/oss-security/2011/06/12/5
mailing-list, patch
-
pastebin.com
/1edSuSVN
exploit
-
marc.info
/?l=bugtraq&m=133469208622507&w=2
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2011:165
vendor-advisory
-
debian.org
/security/2011/dsa-2266
vendor-advisory
-
lists.apple.com
/archives/security-announce/2012/Feb/msg00000.html
vendor-advisory
-
redhat.com
/support/errata/RHSA-2011-1423.html
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2012-0071.html
vendor-advisory
-
secunia.com
/advisories/44874
third-party-advisory, vendor-advisory
-
securityfocus.com
/bid/48259
vdb-entry
- support.apple.com /kb/HT5130
-
securityfocus.com
/bid/49241
vdb-entry
-
securitytracker.com
/id?1025659
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/67999
vdb-entry
- svn.php.net /viewvc/php/php-src/branches/PHP_5_3/NEWS?view=markup&pathrev=312103
- bugs.php.net /bug.php?id=54939
- php.net /ChangeLog-5.php#5.3.7
- php.net /archive/2011.php#id2011-08-18-1
Sources
- CVE List CVE-2011-2202
- NVD CVE-2011-2202
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.