php: $_FILES array indexes corruption
Published May 24, 2012
5.8
MEDIUMCVSS 2.0
EPSS 6.19%
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.
Affected products
No data.
- ≤ 5.3.10
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.1.0
- 5.1.1
- 5.1.2
- 5.1.3
- 5.1.4
- 5.1.5
- 5.1.6
- 5.2.0
- 5.2.1
- 5.2.2
- 5.2.3
- 5.2.4
- 5.2.5
- 5.2.6
- 5.2.7
- 5.2.8
- 5.2.9
- 5.2.10
- 5.2.11
- 5.2.12
- 5.2.13
- 5.2.14
- 5.2.15
- 5.2.16
- 5.2.17
- 5.3.0
- 5.3.1
- 5.3.2
- 5.3.3
- 5.3.4
- 5.3.5
- 5.3.6
- 5.3.7
- 5.3.8
- 5.3.9
No data.
Red Hat Enterprise Linux 5
php-0:5.1.6-39.el5_8
Fixed · RHSA-2012:1045
Red Hat Enterprise Linux 5
php53-0:5.3.3-13.el5_8
Fixed · RHSA-2012:1047
Red Hat Enterprise Linux 6
php-0:5.3.3-14.el6_3
Fixed · RHSA-2012:1046
Red Hat Enterprise Linux 4
php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php-0:5.1.6-39.el5_8 | Fixed | RHSA-2012:1045 |
| Red Hat Enterprise Linux 5 | php53-0:5.3.3-13.el5_8 | Fixed | RHSA-2012:1047 |
| Red Hat Enterprise Linux 6 | php-0:5.3.3-14.el6_3 | Fixed | RHSA-2012:1046 |
| Red Hat Enterprise Linux 4 | php | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:N/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (42 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.19% (0.06195) | 93.29th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.37% (0.06365) | 92.74th | v5 (v2026.06.15) |
| Mar 4, 2026 | 11.85% (0.11850) | 93.59th | v4 (v2025.03.14) |
| Mar 1, 2026 | 5.49% (0.05494) | 90.10th | v4 (v2025.03.14) |
| Feb 4, 2026 | 11.85% (0.11850) | 93.54th | v4 (v2025.03.14) |
| Feb 1, 2026 | 5.49% (0.05494) | 90.04th | v4 (v2025.03.14) |
| Jan 4, 2026 | 11.85% (0.11850) | 93.49th | v4 (v2025.03.14) |
| Jan 1, 2026 | 5.49% (0.05494) | 90.00th | v4 (v2025.03.14) |
| Dec 28, 2025 | 11.85% (0.11850) | 93.49th | v4 (v2025.03.14) |
| Dec 27, 2025 | 18.17% (0.18173) | 94.99th | v4 (v2025.03.14) |
| Dec 4, 2025 | 11.85% (0.11850) | 93.45th | v4 (v2025.03.14) |
| Dec 1, 2025 | 5.49% (0.05494) | 89.91th | v4 (v2025.03.14) |
| Nov 4, 2025 | 11.85% (0.11850) | 93.42th | v4 (v2025.03.14) |
| Nov 1, 2025 | 5.49% (0.05494) | 89.82th | v4 (v2025.03.14) |
| Oct 28, 2025 | 11.85% (0.11850) | 93.41th | v4 (v2025.03.14) |
| Oct 27, 2025 | 18.17% (0.18173) | 94.92th | v4 (v2025.03.14) |
| Oct 4, 2025 | 11.85% (0.11850) | 93.46th | v4 (v2025.03.14) |
| Oct 1, 2025 | 5.49% (0.05494) | 89.85th | v4 (v2025.03.14) |
| Sep 5, 2025 | 18.17% (0.18173) | 94.95th | v4 (v2025.03.14) |
| Sep 1, 2025 | 5.28% (0.05278) | 89.69th | v4 (v2025.03.14) |
| Aug 7, 2025 | 18.17% (0.18173) | 94.91th | v4 (v2025.03.14) |
| Aug 1, 2025 | 5.28% (0.05278) | 89.69th | v4 (v2025.03.14) |
| Jul 30, 2025 | 18.17% (0.18173) | 94.92th | v4 (v2025.03.14) |
| Jul 4, 2025 | 13.65% (0.13651) | 93.92th | v4 (v2025.03.14) |
| Jul 1, 2025 | 6.42% (0.06418) | 90.63th | v4 (v2025.03.14) |
| Jun 5, 2025 | 13.65% (0.13651) | 93.86th | v4 (v2025.03.14) |
| Jun 1, 2025 | 6.42% (0.06418) | 90.58th | v4 (v2025.03.14) |
| May 4, 2025 | 13.65% (0.13651) | 93.83th | v4 (v2025.03.14) |
| May 1, 2025 | 6.42% (0.06418) | 90.55th | v4 (v2025.03.14) |
| Apr 6, 2025 | 13.65% (0.13651) | 93.65th | v4 (v2025.03.14) |
| Apr 5, 2025 | 6.42% (0.06418) | 90.17th | v4 (v2025.03.14) |
| Mar 30, 2025 | 13.65% (0.13651) | 93.64th | v4 (v2025.03.14) |
| Mar 29, 2025 | 16.04% (0.16043) | 91.35th | v4 (v2025.03.14) |
| Mar 19, 2025 | 13.65% (0.13651) | 93.41th | v4 (v2025.03.14) |
| Mar 17, 2025 | 9.47% (0.09467) | 92.24th | v4 (v2025.03.14) |
| Dec 12, 2024 | 2.48% (0.02484) | 90.48th | v3 (v2023.03.01) |
| Jun 12, 2024 | 2.48% (0.02484) | 90.11th | v3 (v2023.03.01) |
| Jun 17, 2023 | 3.48% (0.03479) | 90.17th | v3 (v2023.03.01) |
| Mar 7, 2023 | 4.41% (0.04409) | 91.09th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.36% (0.04358) | 88.02th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.36% (0.04358) | 86.83th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.36% (0.04358) | 70.59th | v2 (v2022.01.01) |
References (24)
- http://isisblogs.poly.edu/2011/08/11/php-not-properly-checking-params/ x_refsource_MISCExploit
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html vendor-advisoryx_refsource_APPLE
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080070.html vendor-advisoryx_refsource_FEDORA
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html vendor-advisoryx_refsource_SUSE
- http://marc.info/?l=bugtraq&m=134012830914727&w=2 vendor-advisoryx_refsource_HP
- http://openwall.com/lists/oss-security/2012/03/13/4 mailing-listx_refsource_MLIST
- http://support.apple.com/kb/HT5501 x_refsource_CONFIRM
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/rfc1867.c?r1=321664&r2=321663&pathrev=321664 x_refsource_CONFIRMPatch
- http://svn.php.net/viewvc?view=revision&revision=321664 x_refsource_CONFIRM
- http://www.debian.org/security/2012/dsa-2465 vendor-advisoryx_refsource_DEBIAN
- http://www.php.net/ChangeLog-5.php#5.4.0 x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2012-1172 Vendor Advisory
- https://bugs.php.net/bug.php?id=48597 x_refsource_MISCExploit
- https://bugs.php.net/bug.php?id=49683 x_refsource_MISC
- https://bugs.php.net/bug.php?id=54374 x_refsource_CONFIRMExploit
- https://bugs.php.net/bug.php?id=55500 x_refsource_CONFIRM
- https://bugzilla.redhat.com/show_bug.cgi?id=799187 Issue Tracking
- https://nealpoole.com/blog/2011/10/directory-traversal-via-php-multi-file-uploads/ x_refsource_MISCExploit
- https://nvd.nist.gov/vuln/detail/CVE-2012-1172
- https://students.mimuw.edu.pl/~ai292615/php_multipleupload_overwrite.pdf x_refsource_MISCExploit
- https://www.cve.org/CVERecord?id=CVE-2012-1172
Change history (0)
No recorded changes yet.