php: gd extension NUL byte injection in file names
Published Aug 23, 2014
6.4
MEDIUMCVSS 2.0
EPSS 16.93%
Description
gd_ctx.c in the GD component in PHP 5.4.x before 5.4.32 and 5.5.x before 5.5.16 does not ensure that pathnames lack %00 sequences, which might allow remote attackers to overwrite arbitrary files via crafted input to an application that calls the (1) imagegd, (2) imagegd2, (3) imagegif, (4) imagejpeg, (5) imagepng, (6) imagewbmp, or (7) imagewebp function.
Affected products
No data.
- 5.4.0
- 5.4.0
- 5.4.0
- 5.4.0
- 5.4.1
- 5.4.2
- 5.4.3
- 5.4.4
- 5.4.5
- 5.4.6
- 5.4.7
- 5.4.8
- 5.4.9
- 5.4.10
- 5.4.11
- 5.4.12
- 5.4.12
- 5.4.12
- 5.4.13
- 5.4.13
- 5.4.14
- 5.4.14
- 5.4.15
- 5.4.15
- 5.4.16
- 5.4.17
- 5.4.18
- 5.4.19
- 5.4.20
- 5.4.21
- 5.4.22
- 5.4.23
- 5.4.24
- 5.4.25
- 5.4.26
- 5.4.27
- 5.4.28
- 5.4.29
- 5.4.30
- 5.4.31
- 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
No data.
Red Hat Enterprise Linux 7
php-0:5.4.16-23.el7_0.1
Fixed · RHSA-2014:1327
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6
php54-php-0:5.4.16-22.el6
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6
php55-php-0:5.5.6-13.el6
Fixed · RHSA-2014:1766
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS
php54-php-0:5.4.16-22.el6
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS
php55-php-0:5.5.6-13.el6
Fixed · RHSA-2014:1766
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.5 EUS
php54-php-0:5.4.16-22.el6
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.5 EUS
php55-php-0:5.5.6-13.el6
Fixed · RHSA-2014:1766
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.6 EUS
php54-php-0:5.4.16-22.el6
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.6 EUS
php55-php-0:5.5.6-13.el6
Fixed · RHSA-2014:1766
Red Hat Software Collections 1 for Red Hat Enterprise Linux 7
php54-php-0:5.4.16-22.el7
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 7
php55-php-0:5.5.6-13.el7
Fixed · RHSA-2014:1766
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | php-0:5.4.16-23.el7_0.1 | Fixed | RHSA-2014:1327 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6 | php54-php-0:5.4.16-22.el6 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6 | php55-php-0:5.5.6-13.el6 | Fixed | RHSA-2014:1766 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS | php54-php-0:5.4.16-22.el6 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS | php55-php-0:5.5.6-13.el6 | Fixed | RHSA-2014:1766 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.5 EUS | php54-php-0:5.4.16-22.el6 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.5 EUS | php55-php-0:5.5.6-13.el6 | Fixed | RHSA-2014:1766 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.6 EUS | php54-php-0:5.4.16-22.el6 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.6 EUS | php55-php-0:5.5.6-13.el6 | Fixed | RHSA-2014:1766 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 7 | php54-php-0:5.4.16-22.el7 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 7 | php55-php-0:5.5.6-13.el7 | Fixed | RHSA-2014:1766 |
| 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 |
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: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 (40 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 16.93% (0.16934) | 96.97th | v5 (v2026.06.15) |
| Jun 15, 2026 | 16.93% (0.16934) | 96.66th | v5 (v2026.06.15) |
| Mar 4, 2026 | 8.34% (0.08338) | 92.13th | v4 (v2025.03.14) |
| Mar 1, 2026 | 4.10% (0.04102) | 88.43th | v4 (v2025.03.14) |
| Feb 4, 2026 | 8.34% (0.08338) | 92.07th | v4 (v2025.03.14) |
| Feb 1, 2026 | 4.10% (0.04102) | 88.37th | v4 (v2025.03.14) |
| Jan 4, 2026 | 8.34% (0.08338) | 92.00th | v4 (v2025.03.14) |
| Jan 1, 2026 | 4.10% (0.04102) | 88.32th | v4 (v2025.03.14) |
| Dec 28, 2025 | 8.34% (0.08338) | 91.98th | v4 (v2025.03.14) |
| Dec 27, 2025 | 4.05% (0.04052) | 88.21th | v4 (v2025.03.14) |
| Dec 4, 2025 | 8.34% (0.08338) | 91.93th | v4 (v2025.03.14) |
| Dec 1, 2025 | 4.10% (0.04102) | 88.23th | v4 (v2025.03.14) |
| Nov 4, 2025 | 8.34% (0.08338) | 91.88th | v4 (v2025.03.14) |
| Nov 1, 2025 | 4.10% (0.04102) | 88.15th | v4 (v2025.03.14) |
| Oct 28, 2025 | 8.34% (0.08338) | 91.88th | v4 (v2025.03.14) |
| Oct 27, 2025 | 4.05% (0.04052) | 88.05th | v4 (v2025.03.14) |
| Oct 4, 2025 | 8.34% (0.08338) | 91.93th | v4 (v2025.03.14) |
| Sep 4, 2025 | 4.05% (0.04052) | 88.08th | v4 (v2025.03.14) |
| Sep 1, 2025 | 2.34% (0.02342) | 84.34th | v4 (v2025.03.14) |
| Aug 4, 2025 | 4.05% (0.04052) | 88.08th | v4 (v2025.03.14) |
| Aug 1, 2025 | 2.34% (0.02342) | 84.32th | v4 (v2025.03.14) |
| Jul 30, 2025 | 4.05% (0.04052) | 88.07th | v4 (v2025.03.14) |
| Jul 7, 2025 | 8.34% (0.08338) | 91.84th | v4 (v2025.03.14) |
| Jul 4, 2025 | 11.73% (0.11726) | 93.37th | v4 (v2025.03.14) |
| Jul 1, 2025 | 3.94% (0.03940) | 87.89th | v4 (v2025.03.14) |
| Jun 4, 2025 | 11.73% (0.11726) | 93.31th | v4 (v2025.03.14) |
| Jun 1, 2025 | 3.94% (0.03940) | 87.82th | v4 (v2025.03.14) |
| May 4, 2025 | 11.73% (0.11726) | 93.27th | v4 (v2025.03.14) |
| May 1, 2025 | 5.26% (0.05256) | 89.48th | v4 (v2025.03.14) |
| Apr 12, 2025 | 11.73% (0.11726) | 93.07th | v4 (v2025.03.14) |
| Mar 30, 2025 | 8.34% (0.08338) | 91.46th | v4 (v2025.03.14) |
| Mar 29, 2025 | 18.76% (0.18762) | 92.24th | v4 (v2025.03.14) |
| Mar 17, 2025 | 8.34% (0.08338) | 91.66th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.54% (0.00544) | 78.14th | v3 (v2023.03.01) |
| Apr 4, 2024 | 0.54% (0.00544) | 77.00th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.53% (0.00535) | 76.48th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.53% (0.00535) | 73.61th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.97% (0.01974) | 78.97th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.97% (0.01974) | 77.12th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.97% (0.01974) | 56.20th | v2 (v2022.01.01) |
References (13)
- http://lists.apple.com/archives/security-announce/2015/Apr/msg00001.html vendor-advisoryx_refsource_APPLE
- http://lists.opensuse.org/opensuse-updates/2014-09/msg00024.html vendor-advisoryx_refsource_SUSE
- http://php.net/ChangeLog-5.php x_refsource_CONFIRM
- http://rhn.redhat.com/errata/RHSA-2014-1327.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2014-1765.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2014-1766.html vendor-advisoryx_refsource_REDHAT
- http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2014-5120 Vendor Advisory
- https://bugs.php.net/bug.php?id=67730 x_refsource_CONFIRMVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1132793 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2014-5120
- https://support.apple.com/HT204659 x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2014-5120
| Link | Providers | Tags |
|---|---|---|
| http://lists.apple.com/archives/security-announce/2015/Apr/msg00001.html | vendor-advisoryx_refsource_APPLE | |
| http://lists.opensuse.org/opensuse-updates/2014-09/msg00024.html | vendor-advisoryx_refsource_SUSE | |
| http://php.net/ChangeLog-5.php | x_refsource_CONFIRM | |
| http://rhn.redhat.com/errata/RHSA-2014-1327.html | vendor-advisoryx_refsource_REDHAT | |
| http://rhn.redhat.com/errata/RHSA-2014-1765.html | vendor-advisoryx_refsource_REDHAT | |
| http://rhn.redhat.com/errata/RHSA-2014-1766.html | vendor-advisoryx_refsource_REDHAT | |
| http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html | x_refsource_CONFIRM | |
| https://access.redhat.com/security/cve/CVE-2014-5120 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=67730 | x_refsource_CONFIRMVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1132793 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2014-5120 | ||
| https://support.apple.com/HT204659 | x_refsource_CONFIRM | |
| https://www.cve.org/CVERecord?id=CVE-2014-5120 |
Change history (0)
No recorded changes yet.