CVE-2012-1172

PHP < 5.4.0 - Denial of Service and Directory Traversal via Invalid Square Bracket in File Upload Name

Title source: llm
STIX 2.1

Description

The 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.

References (20)

Core 20
Core References
Various Sources x_refsource_misc
https://bugs.php.net/bug.php?id=49683
Mailing List vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=134012830914727&w=2
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080070.html
Exploit x_refsource_confirm
https://bugs.php.net/bug.php?id=54374
Various Sources x_refsource_confirm
http://svn.php.net/viewvc?view=revision&revision=321664
Mailing List mailing-list x_refsource_mlist
http://openwall.com/lists/oss-security/2012/03/13/4
Exploit x_refsource_misc
https://bugs.php.net/bug.php?id=48597
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
Vendor Advisory x_refsource_confirm
http://support.apple.com/kb/HT5501
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-5.php#5.4.0
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2012/dsa-2465
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html
Various Sources x_refsource_confirm
https://bugs.php.net/bug.php?id=55500

Scores

EPSS 0.1185
EPSS Percentile 93.8%

Details

CWE
CWE-20
Status published
Products (42)
php/php 5.0.0 (8 CPE variants)
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
... and 32 more
Published May 24, 2012
Tracked Since Feb 18, 2026