php: out of bounds read when parsing a crafted .php file
Published Jan 3, 2015
7.5
HIGHCVSS 2.0
EPSS 18.28%
Description
sapi/cgi/cgi_main.c in the CGI component in PHP through 5.4.36, 5.5.x through 5.5.20, and 5.6.x through 5.6.4, when mmap is used to read a .php file, does not properly consider the mapping's length during processing of an invalid file that begins with a # character and lacks a newline character, which causes an out-of-bounds read and might (1) allow remote attackers to obtain sensitive information from php-cgi process memory by leveraging the ability to upload a .php file or (2) trigger unexpected code execution if a valid PHP script is present in memory locations adjacent to the mapping.
Affected products
No data.
- 1.0
- 2.0
- 2.0b10
- 3.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.6
- 3.0.7
- 3.0.8
- 3.0.9
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.13
- 3.0.14
- 3.0.15
- 3.0.16
- 3.0.17
- 3.0.18
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 4.3.0
- 4.3.1
- 4.3.2
- 4.3.3
- 4.3.4
- 4.3.5
- 4.3.6
- 4.3.7
- 4.3.8
- 4.3.9
- 4.3.10
- 4.3.11
- 4.4.0
- 4.4.1
- 4.4.2
- 4.4.3
- 4.4.4
- 4.4.5
- 4.4.6
- 4.4.7
- 4.4.8
- 4.4.9
- 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
- 5.3.10
- 5.3.11
- 5.3.12
- 5.3.13
- 5.3.14
- 5.3.15
- 5.3.16
- 5.3.17
- 5.3.18
- 5.3.19
- 5.3.20
- 5.3.21
- 5.3.22
- 5.3.23
- 5.3.24
- 5.3.25
- 5.3.26
- 5.3.27
- 5.3.28
- 5.4.0
- 5.4.1
- 5.4.2
- 5.4.3
- 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.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.34
- 5.4.35
- 5.4.36
- 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.18
- 5.5.19
- 5.5.20
- 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.2
- 5.6.3
- 5.6.4
No data.
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
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat OpenShift Enterprise 2
php
Will not fix
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 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 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | php | Will not fix | n/a |
| Red Hat OpenShift Enterprise 2 | php | Will not fix | 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 flaw requires that a user is able to upload arbitrary PHP code on the system, be a local user able to execute arbitrary PHP code, or have the ability to modify existing PHP code on the system. It also requires that the modified/arbitrary PHP code is executed with the php-cgi program, and the net result is that php-cgi crashes, effectively resulting in a self-denial of service. Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
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:P/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 3, 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 3, 2026 | 18.28% (0.18280) | 97.14th | v5 (v2026.06.15) |
| Sep 8, 2026 | 18.28% (0.18280) | 97.03th | v5 (v2026.06.15) |
| Jun 15, 2026 | 16.89% (0.16890) | 96.65th | v5 (v2026.06.15) |
| May 24, 2026 | 3.00% (0.02997) | 86.73th | v4 (v2025.03.14) |
| Mar 4, 2026 | 4.87% (0.04871) | 89.36th | v4 (v2025.03.14) |
| Mar 1, 2026 | 8.02% (0.08020) | 91.99th | v4 (v2025.03.14) |
| Feb 4, 2026 | 4.87% (0.04871) | 89.29th | v4 (v2025.03.14) |
| Feb 1, 2026 | 8.02% (0.08020) | 91.93th | v4 (v2025.03.14) |
| Jan 4, 2026 | 4.87% (0.04871) | 89.22th | v4 (v2025.03.14) |
| Jan 1, 2026 | 8.02% (0.08020) | 91.88th | v4 (v2025.03.14) |
| Dec 28, 2025 | 4.87% (0.04871) | 89.21th | v4 (v2025.03.14) |
| Dec 27, 2025 | 2.57% (0.02573) | 85.19th | v4 (v2025.03.14) |
| Dec 4, 2025 | 4.87% (0.04871) | 89.15th | v4 (v2025.03.14) |
| Dec 1, 2025 | 8.02% (0.08020) | 91.81th | v4 (v2025.03.14) |
| Nov 4, 2025 | 4.87% (0.04871) | 89.06th | v4 (v2025.03.14) |
| Nov 1, 2025 | 8.02% (0.08020) | 91.75th | v4 (v2025.03.14) |
| Oct 28, 2025 | 4.87% (0.04871) | 89.05th | v4 (v2025.03.14) |
| Oct 27, 2025 | 2.57% (0.02573) | 85.03th | v4 (v2025.03.14) |
| Oct 4, 2025 | 4.87% (0.04871) | 89.09th | v4 (v2025.03.14) |
| Oct 1, 2025 | 8.02% (0.08020) | 91.81th | v4 (v2025.03.14) |
| Aug 4, 2025 | 2.22% (0.02219) | 83.82th | v4 (v2025.03.14) |
| Aug 1, 2025 | 3.37% (0.03374) | 86.99th | v4 (v2025.03.14) |
| Jul 30, 2025 | 2.22% (0.02219) | 83.82th | v4 (v2025.03.14) |
| Jul 4, 2025 | 4.22% (0.04219) | 88.27th | v4 (v2025.03.14) |
| Jul 1, 2025 | 6.99% (0.06986) | 91.03th | v4 (v2025.03.14) |
| Jun 4, 2025 | 4.22% (0.04219) | 88.19th | v4 (v2025.03.14) |
| Jun 1, 2025 | 6.99% (0.06986) | 90.98th | v4 (v2025.03.14) |
| May 4, 2025 | 3.57% (0.03571) | 87.08th | v4 (v2025.03.14) |
| May 1, 2025 | 4.72% (0.04720) | 88.81th | v4 (v2025.03.14) |
| Apr 12, 2025 | 3.57% (0.03571) | 86.69th | v4 (v2025.03.14) |
| Mar 30, 2025 | 5.13% (0.05131) | 88.87th | v4 (v2025.03.14) |
| Mar 29, 2025 | 6.80% (0.06799) | 85.14th | v4 (v2025.03.14) |
| Mar 17, 2025 | 5.13% (0.05131) | 89.11th | v4 (v2025.03.14) |
| Jan 1, 2025 | 13.40% (0.13403) | 95.58th | v3 (v2023.03.01) |
| Jun 29, 2024 | 11.02% (0.11023) | 95.18th | v3 (v2023.03.01) |
| Dec 10, 2023 | 10.96% (0.10959) | 94.55th | v3 (v2023.03.01) |
| Oct 23, 2023 | 11.09% (0.11089) | 94.50th | v3 (v2023.03.01) |
| Sep 9, 2023 | 8.15% (0.08147) | 93.53th | v3 (v2023.03.01) |
| Mar 7, 2023 | 7.97% (0.07967) | 93.22th | v3 (v2023.03.01) |
| Mar 6, 2023 | 12.25% (0.12248) | 95.30th | v2 (v2022.01.01) |
| Apr 1, 2022 | 12.25% (0.12248) | 94.93th | v2 (v2022.01.01) |
| Feb 4, 2022 | 12.25% (0.12248) | 89.34th | v2 (v2022.01.01) |
References (22)
- http://advisories.mageia.org/MGASA-2015-0040.html x_refsource_CONFIRM
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=f9ad3086693fce680fbe246e4a45aa92edd2ac35 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-02/msg00029.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2015-02/msg00079.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://openwall.com/lists/oss-security/2014/12/31/6 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2015/01/01/1 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2015/01/03/4 mailing-listx_refsource_MLIST
- 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://www.mandriva.com/security/advisories?name=MDVSA-2015:032 vendor-advisoryx_refsource_MANDRIVA
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html x_refsource_CONFIRM
- http://www.securityfocus.com/bid/71833 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2014-9427 Vendor Advisory
- https://bugs.php.net/bug.php?id=68618 x_refsource_CONFIRMExploit
- https://bugzilla.redhat.com/show_bug.cgi?id=1178736 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2014-9427
- https://security.gentoo.org/glsa/201503-03 vendor-advisoryx_refsource_GENTOO
- https://support.apple.com/HT205267 x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2014-9427
Change history (0)
No recorded changes yet.