Skip to content
OpenAdvisories
Unscored CVE-2012-1172 EUVD-2012-1202GHSA-jpm9-86g2-j2gx

The file-upload implementation in rfc1867.c in PHP before 5.4.0 does not properly handle invalid [ (open square bracket) characters in name…

Published May 24, 2012 · Updated Aug 6, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 6.0 php5 5.3.3-7+squeeze9 DSA-2465-1
ReleasePackageFixed inAdvisory
RHEL 6 php +25 5.3.3-14.el6_3 RHSA-2012:1046
RHEL 5 php +18 5.1.6-39.el5_8 RHSA-2012:1045
RHEL 5 php53 +20 5.3.3-13.el5_8 RHSA-2012:1047

Advisories 4

References