Back
CVE-2012-1172
The file-upload implementation in rfc1867.c in PHP before 5.4.0 does not properly handle invalid [ (open square bracket) characters in…
Medium5.8EPSS 6.2%
- Published
- Updated
- Reserved
- 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium5.8 | AV:N/AC:M/Au:N/C:N/I:P/A:P |
- EPSS (exploitation in 30 days)
- 6.2% · top 6.5% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.8.
Weakness
Affected products
n/a
- affected n/a
References (20)
- SSRT100856 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/rfc1867.c?r1=321664&r2=321663&pathrev=321664 (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2012-6869 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://bugs.php.net/bug.php?id=54374 (opens in a new tab)x_refsource_CONFIRMx_transferred
- SUSE-SU-2012:0604 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- https://bugs.php.net/bug.php?id=49683 (opens in a new tab)x_refsource_MISCx_transferred
- https://nealpoole.com/blog/2011/10/directory-traversal-via-php-multi-file-uploads/ (opens in a new tab)x_refsource_MISCx_transferred
- http://svn.php.net/viewvc?view=revision&revision=321664 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20120313 Re: CVE request for PHP 5.3.x Corrupted $_FILES indices lead to security concern (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://bugs.php.net/bug.php?id=48597 (opens in a new tab)x_refsource_MISCx_transferred
- SUSE-SU-2012:0598 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- http://isisblogs.poly.edu/2011/08/11/php-not-properly-checking-params/ (opens in a new tab)x_refsource_MISCx_transferred
- APPLE-SA-2012-09-19-2 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- http://support.apple.com/kb/HT5501 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://students.mimuw.edu.pl/~ai292615/php_multipleupload_overwrite.pdf (opens in a new tab)x_refsource_MISCx_transferred
- http://www.php.net/ChangeLog-5.php#5.4.0 (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2012-6907 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- DSA-2465 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- FEDORA-2012-6911 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://bugs.php.net/bug.php?id=55500 (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .