CVE-2012-1172

Summary

CVECVE-2012-1172
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2012-05-24 00:55:02 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionThe file-upload implementation in rfc1867.c in PHP before 5.4.0 does not properly handle invalid [ (open square bracket) characters in name values, which makes it easier for remote attackers to cause a denial of service (malformed $_FILES indexes) or conduct directory traversal attacks during multi-file uploads by leveraging a script that lacks its own filename restrictions.

Risk And Classification

Primary CVSS: v2.0 5.8 from [email protected]

AV:N/AC:M/Au:N/C:N/I:P/A:P

Problem Types: CWE-20 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
Partial

AV:N/AC:M/Au:N/C:N/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php 5.0.0 All All All
Application Php Php 5.0.0 beta1 All All
Application Php Php 5.0.0 beta2 All All
Application Php Php 5.0.0 beta3 All All
Application Php Php 5.0.0 beta4 All All
Application Php Php 5.0.0 rc1 All All
Application Php Php 5.0.0 rc2 All All
Application Php Php 5.0.0 rc3 All All
Application Php Php 5.0.1 All All All
Application Php Php 5.0.2 All All All
Application Php Php 5.0.3 All All All
Application Php Php 5.0.4 All All All
Application Php Php 5.0.5 All All All
Application Php Php 5.1.0 All All All
Application Php Php 5.1.1 All All All
Application Php Php 5.1.2 All All All
Application Php Php 5.1.3 All All All
Application Php Php 5.1.4 All All All
Application Php Php 5.1.5 All All All
Application Php Php 5.1.6 All All All
Application Php Php 5.2.0 All All All
Application Php Php 5.2.1 All All All
Application Php Php 5.2.10 All All All
Application Php Php 5.2.11 All All All
Application Php Php 5.2.12 All All All
Application Php Php 5.2.13 All All All
Application Php Php 5.2.14 All All All
Application Php Php 5.2.15 All All All
Application Php Php 5.2.16 All All All
Application Php Php 5.2.17 All All All
Application Php Php 5.2.2 All All All
Application Php Php 5.2.3 All All All
Application Php Php 5.2.4 All All All
Application Php Php 5.2.5 All All All
Application Php Php 5.2.6 All All All
Application Php Php 5.2.7 All All All
Application Php Php 5.2.8 All All All
Application Php Php 5.2.9 All All All
Application Php Php 5.3.0 All All All
Application Php Php 5.3.1 All All All
Application Php Php 5.3.2 All All All
Application Php Php 5.3.3 All All All
Application Php Php 5.3.4 All All All
Application Php Php 5.3.5 All All All
Application Php Php 5.3.6 All All All
Application Php Php 5.3.7 All All All
Application Php Php 5.3.8 All All All
Application Php Php 5.3.9 All All All
Application Php Php All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
PHP: Revision 321664 af854a3a-2127-422b-91ae-364da2661108 svn.php.net
PHP :: Bug #48597 :: Unclosed array keys break space escaping in $_GET/POST/REQUEST af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Exploit
[SECURITY] Fedora 16 Update: php-5.3.11-1.fc16 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
Debian -- Security Information -- DSA-2465-1 php5 af854a3a-2127-422b-91ae-364da2661108 www.debian.org
[SECURITY] Fedora 17 Update: php-5.4.1-1.fc17 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
[SECURITY] Fedora 15 Update: php-5.3.11-1.fc15 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
oss-security - Re: CVE request for PHP 5.3.x Corrupted $_FILES indices lead to security concern af854a3a-2127-422b-91ae-364da2661108 openwall.com
PHP :: You must be logged in af854a3a-2127-422b-91ae-364da2661108 bugs.php.net
About the security content of OS X Mountain Lion v10.8.2, OS X Lion v10.7.5 and Security Update 2012-004 af854a3a-2127-422b-91ae-364da2661108 support.apple.com
[security-announce] SUSE-SU-2012:0604-1: critical: Security update for P af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org
students.mimuw.edu.pl/~ai292615/php_multipleupload_overwrite.pdf af854a3a-2127-422b-91ae-364da2661108 students.mimuw.edu.pl Exploit
Directory Traversal via PHP Multi-File Uploads » Neal Poole af854a3a-2127-422b-91ae-364da2661108 nealpoole.com Exploit
PHP not properly checking Params | NYU Poly ISIS Lab af854a3a-2127-422b-91ae-364da2661108 isisblogs.poly.edu Exploit
'[security bulletin] HPSBUX02791 SSRT100856 rev.1 - HP-UX Apache Web Server running PHP, Remote Execu' - MARC af854a3a-2127-422b-91ae-364da2661108 marc.info
PHP :: Bug #49683 :: $_FILES overwrite af854a3a-2127-422b-91ae-364da2661108 bugs.php.net
PHP: PHP 5 ChangeLog af854a3a-2127-422b-91ae-364da2661108 www.php.net
[security-announce] SUSE-SU-2012:0598-1: critical: Security update for P af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org
PHP :: Bug #54374 :: Insufficient validating of upload name leading to corrupted $_FILES indices af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Exploit
PHP: Diff of /php/php-src/branches/PHP_5_4/main/rfc1867.c af854a3a-2127-422b-91ae-364da2661108 svn.php.net Patch
APPLE-SA-2012-09-19-2 OS X Mountain Lion v10.8.2, OS X Lion v10.7.5 and Security Update 2012-004 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report