Vulnerabilities · 2012 · Php
CVE-2012-1172
Php vulnerability
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.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/rfc1867.c?r1=321664&r2=321663&pathrev · Patch
- isisblogs.poly.edu/2011/08/11/php-not-properly-checking-params/ · Exploit
- bugs.php.net/bug.php?id=48597 · Exploit
- bugs.php.net/bug.php?id=54374 · Exploit
- nealpoole.com/blog/2011/10/directory-traversal-via-php-multi-file-uploads/ · Exploit
- students.mimuw.edu.pl/~ai292615/php_multipleupload_overwrite.pdf · Exploit
- lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
- lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html
- nvd.nist.gov/vuln/detail/CVE-2012-1172
- cve.org/CVERecord?id=CVE-2012-1172
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.