php: move_uploaded_file() NUL byte injection in file name
Published Mar 30, 2015
5.0
MEDIUMCVSS 2.0
EPSS 8.59%
Description
The move_uploaded_file implementation in ext/standard/basic_functions.c in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 truncates a pathname upon encountering a \x00 character, which allows remote attackers to bypass intended extension restrictions and create files with unexpected names via a crafted second argument. NOTE: this vulnerability exists because of an incomplete fix for CVE-2006-7243.
Affected products
No data.
Configuration 1
- 7.0
- 7.0
- 7.1
- 7.0
- 7.1
- 7.0
Configuration 2
Configuration 3
- ≤ 5.4.38
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.1
- 5.5.2
- 5.5.3
- 5.5.4
- 5.5.5
- 5.5.6
- 5.5.7
- 5.5.8
- 5.5.9
- 5.5.10
- 5.5.11
- 5.5.12
- 5.5.13
- 5.5.14
- 5.5.15
- 5.5.16
- 5.5.17
- 5.5.18
- 5.5.19
- 5.5.20
- 5.5.21
- 5.5.22
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.1
- 5.6.2
- 5.6.3
- 5.6.4
- 5.6.5
- 5.6.6
No data.
Red Hat Enterprise Linux 7
php-0:5.4.16-36.ael7b_1
Fixed · RHSA-2015:1135
Red Hat Software Collections for Red Hat Enterprise Linux 6
php54-0:2.0-1.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6
php54-php-0:5.4.40-1.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6
php54-php-pecl-zendopcache-0:7.0.4-3.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6
php55-0:2.0-1.el6
Fixed · RHSA-2015:1053
Red Hat Software Collections for Red Hat Enterprise Linux 6
php55-php-0:5.5.21-2.el6
Fixed · RHSA-2015:1053
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php54-0:2.0-1.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php54-php-0:5.4.40-1.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php54-php-pecl-zendopcache-0:7.0.4-3.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php55-0:2.0-1.el6
Fixed · RHSA-2015:1053
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php55-php-0:5.5.21-2.el6
Fixed · RHSA-2015:1053
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php54-0:2.0-1.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php54-php-0:5.4.40-1.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php54-php-pecl-zendopcache-0:7.0.4-3.el6
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php55-0:2.0-1.el6
Fixed · RHSA-2015:1053
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php55-php-0:5.5.21-2.el6
Fixed · RHSA-2015:1053
Red Hat Software Collections for Red Hat Enterprise Linux 7
php54-0:2.0-1.el7
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 7
php54-php-0:5.4.40-1.el7
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 7
php54-php-pecl-zendopcache-0:7.0.4-3.el7
Fixed · RHSA-2015:1066
Red Hat Software Collections for Red Hat Enterprise Linux 7
php55-0:2.0-1.el7
Fixed · RHSA-2015:1053
Red Hat Software Collections for Red Hat Enterprise Linux 7
php55-php-0:5.5.21-2.el7
Fixed · RHSA-2015:1053
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
php
Not affected
Red Hat Software Collections
php54-php
Affected
Red Hat Software Collections
php55-php
Affected
Red Hat Software Collections
rh-php56-php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | php-0:5.4.16-36.ael7b_1 | Fixed | RHSA-2015:1135 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php54-0:2.0-1.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php54-php-0:5.4.40-1.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php54-php-pecl-zendopcache-0:7.0.4-3.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php55-0:2.0-1.el6 | Fixed | RHSA-2015:1053 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php55-php-0:5.5.21-2.el6 | Fixed | RHSA-2015:1053 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php54-0:2.0-1.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php54-php-0:5.4.40-1.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php54-php-pecl-zendopcache-0:7.0.4-3.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php55-0:2.0-1.el6 | Fixed | RHSA-2015:1053 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php55-php-0:5.5.21-2.el6 | Fixed | RHSA-2015:1053 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php54-0:2.0-1.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php54-php-0:5.4.40-1.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php54-php-pecl-zendopcache-0:7.0.4-3.el6 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php55-0:2.0-1.el6 | Fixed | RHSA-2015:1053 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php55-php-0:5.5.21-2.el6 | Fixed | RHSA-2015:1053 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php54-0:2.0-1.el7 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php54-php-0:5.4.40-1.el7 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php54-php-pecl-zendopcache-0:7.0.4-3.el7 | Fixed | RHSA-2015:1066 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php55-0:2.0-1.el7 | Fixed | RHSA-2015:1053 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php55-php-0:5.5.21-2.el7 | Fixed | RHSA-2015:1053 |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
| Red Hat Software Collections | php54-php | Affected | n/a |
| Red Hat Software Collections | php55-php | Affected | n/a |
| Red Hat Software Collections | rh-php56-php | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue does not affect the current php and php53 packages in Red Hat Enterprise Linux 5 and 6, as it was previously corrected as part of the fix for CVE-2006-7243.
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:L/Au:N/C:N/I:P/A:N
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 2, 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 (47 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 8.59% (0.08592) | 94.93th | v5 (v2026.06.15) |
| Jun 15, 2026 | 8.65% (0.08653) | 94.41th | v5 (v2026.06.15) |
| May 24, 2026 | 5.55% (0.05553) | 90.38th | v4 (v2025.03.14) |
| Mar 4, 2026 | 7.24% (0.07236) | 91.46th | v4 (v2025.03.14) |
| Mar 1, 2026 | 5.21% (0.05210) | 89.79th | v4 (v2025.03.14) |
| Feb 4, 2026 | 7.24% (0.07236) | 91.40th | v4 (v2025.03.14) |
| Feb 1, 2026 | 5.21% (0.05210) | 89.72th | v4 (v2025.03.14) |
| Jan 4, 2026 | 7.24% (0.07236) | 91.33th | v4 (v2025.03.14) |
| Jan 1, 2026 | 5.21% (0.05210) | 89.68th | v4 (v2025.03.14) |
| Dec 28, 2025 | 7.24% (0.07236) | 91.31th | v4 (v2025.03.14) |
| Dec 27, 2025 | 5.81% (0.05814) | 90.27th | v4 (v2025.03.14) |
| Dec 4, 2025 | 7.24% (0.07236) | 91.27th | v4 (v2025.03.14) |
| Dec 1, 2025 | 5.21% (0.05210) | 89.59th | v4 (v2025.03.14) |
| Nov 4, 2025 | 7.24% (0.07236) | 91.21th | v4 (v2025.03.14) |
| Nov 1, 2025 | 5.21% (0.05210) | 89.50th | v4 (v2025.03.14) |
| Oct 28, 2025 | 7.24% (0.07236) | 91.20th | v4 (v2025.03.14) |
| Oct 27, 2025 | 5.81% (0.05814) | 90.14th | v4 (v2025.03.14) |
| Oct 4, 2025 | 7.24% (0.07236) | 91.25th | v4 (v2025.03.14) |
| Sep 11, 2025 | 5.81% (0.05814) | 90.17th | v4 (v2025.03.14) |
| Sep 4, 2025 | 4.57% (0.04571) | 88.79th | v4 (v2025.03.14) |
| Sep 1, 2025 | 1.97% (0.01972) | 82.90th | v4 (v2025.03.14) |
| Aug 21, 2025 | 4.57% (0.04571) | 88.77th | v4 (v2025.03.14) |
| Aug 4, 2025 | 5.60% (0.05598) | 89.96th | v4 (v2025.03.14) |
| Aug 1, 2025 | 2.44% (0.02435) | 84.63th | v4 (v2025.03.14) |
| Jul 30, 2025 | 5.60% (0.05598) | 89.94th | v4 (v2025.03.14) |
| Jul 5, 2025 | 6.97% (0.06971) | 90.99th | v4 (v2025.03.14) |
| Jul 1, 2025 | 3.76% (0.03756) | 87.60th | v4 (v2025.03.14) |
| Jun 4, 2025 | 6.97% (0.06971) | 90.94th | v4 (v2025.03.14) |
| Jun 1, 2025 | 3.76% (0.03756) | 87.52th | v4 (v2025.03.14) |
| May 30, 2025 | 6.97% (0.06971) | 90.93th | v4 (v2025.03.14) |
| May 4, 2025 | 8.63% (0.08632) | 91.94th | v4 (v2025.03.14) |
| May 1, 2025 | 7.01% (0.07014) | 91.00th | v4 (v2025.03.14) |
| Apr 17, 2025 | 9.65% (0.09649) | 92.42th | v4 (v2025.03.14) |
| Apr 16, 2025 | 7.01% (0.07014) | 90.93th | v4 (v2025.03.14) |
| Apr 13, 2025 | 9.65% (0.09649) | 92.17th | v4 (v2025.03.14) |
| Apr 12, 2025 | 7.01% (0.07014) | 90.66th | v4 (v2025.03.14) |
| Mar 30, 2025 | 8.42% (0.08420) | 91.50th | v4 (v2025.03.14) |
| Mar 29, 2025 | 22.89% (0.22893) | 93.37th | v4 (v2025.03.14) |
| Mar 22, 2025 | 8.42% (0.08420) | 91.61th | v4 (v2025.03.14) |
| Mar 21, 2025 | 6.09% (0.06091) | 89.94th | v4 (v2025.03.14) |
| Mar 17, 2025 | 8.42% (0.08420) | 91.69th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.80% (0.00797) | 82.33th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.77% (0.00774) | 80.72th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.77% (0.00774) | 78.51th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.78% (0.03779) | 85.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.78% (0.03779) | 84.01th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.78% (0.03779) | 67.21th | v2 (v2022.01.01) |
References (22)
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=1291d6bbee93b6109eb07e8f7916ff1b7fcc13e1 x_refsource_CONFIRM
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html vendor-advisoryx_refsource_APPLE
- http://lists.opensuse.org/opensuse-security-announce/2015-05/msg00005.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2015-04/msg00015.html vendor-advisoryx_refsource_SUSE
- http://marc.info/?l=bugtraq&m=143748090628601&w=2 vendor-advisoryx_refsource_HP
- http://marc.info/?l=bugtraq&m=144050155601375&w=2 vendor-advisoryx_refsource_HP
- http://php.net/ChangeLog-5.php x_refsource_CONFIRM
- http://rhn.redhat.com/errata/RHSA-2015-1053.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1066.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1135.html vendor-advisoryx_refsource_REDHAT
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html x_refsource_CONFIRM
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html x_refsource_CONFIRM
- http://www.securityfocus.com/bid/73434 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id/1032484 vdb-entryx_refsource_SECTRACK
- http://www.ubuntu.com/usn/USN-2572-1 vendor-advisoryx_refsource_UBUNTU
- https://access.redhat.com/security/cve/CVE-2015-2348 Vendor Advisory
- https://bugs.php.net/bug.php?id=69207 x_refsource_CONFIRMExploit
- https://bugzilla.redhat.com/show_bug.cgi?id=1207682 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2015-2348
- https://security.gentoo.org/glsa/201606-10 vendor-advisoryx_refsource_GENTOO
- https://support.apple.com/HT205267 x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2015-2348
Change history (0)
No recorded changes yet.