CVE-2014-9427 in the critical feed json
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…
published 11y ago modified 4mo ago also EUVD-2014-9248
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 18.3%
- EPSS 18.3% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.6
ubuntu advisories UBUNTU-CVE-2014-9427
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php54 RHEL 2 SOFTWARE_COLLECTIONS 2.0-1.el6
- php54 RHEL 2 SOFTWARE_COLLECTIONS 2.0-1.el7
- php54-php RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
- php54-php RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7
- php54-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
- php54-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7
- php54-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el6
- php54-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.4.40-1.el7
red hat advisories RHSA-2015:1066RHSA-2015:1053
- php5 SLE Software Development Kit 12, SLE Module for Web and Scripting 12 5.5.14-11.3
suse advisories SUSE-SU-2015:0365-1
- php7 openSUSE Tumbleweed 7.0.14-1.4
- php5 openSUSE Tumbleweed 5.6.28-1.1
- php8 openSUSE Tumbleweed 8.0.11-1.1
opensuse advisories openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1openSUSE-SU-2024:11169-1
Is CVE-2014-9427 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2014-9427 updated cvss 2.1
php: out of bounds read when parsing a crafted .php file
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat OpenShift Enterprise 2 phpaffected: no fix planned “Will not fix”
-
Red Hat Software Collections php54-php, php55-php, php54-php-gd, php55-php-gd, php54-php-cli, php54-php-dba, +44 moreaffected: no fix available
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php54 2.0-1.el6, php55 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-2.el6, php54-runtime 2.0-1.el6, php55-runtime 2.0-1.el6, +51 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php54 2.0-1.el7, php55 2.0-1.el7, php54-php 5.4.40-1.el7, php55-php 5.5.21-2.el7, php54-runtime 2.0-1.el7, php55-runtime 2.0-1.el7, +47 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php54 2.0-1.el6, php55 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-2.el6, php54-runtime 2.0-1.el6, php55-runtime 2.0-1.el6, +51 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php54 2.0-1.el6, php55 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-2.el6, php54-runtime 2.0-1.el6, php55-runtime 2.0-1.el6, +51 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php54 2.0-1.el6, php55 2.0-1.el6, php54-php 5.4.40-1.el6, php55-php 5.5.21-2.el6, php54-runtime 2.0-1.el6, php55-runtime 2.0-1.el6, +51 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php54 2.0-1.el7, php55 2.0-1.el7, php54-php 5.4.40-1.el7, php55-php 5.5.21-2.el7, php54-runtime 2.0-1.el7, php55-runtime 2.0-1.el7, +47 morefixed: vendor fix RHSA-2015:1066
-
Red Hat Software Collections rh-php56-php, rh-php56-php-gd, rh-php56-php-cli, rh-php56-php-dba, rh-php56-php-dbg, rh-php56-php-fpm, +22 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
18.28% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugs.php.net https://bugs.php.net/bug.php?id=68618 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- Technology feeds
References
-
bugs.php.net
/bug.php?id=68618
exploit
-
mandriva.com
/security/advisories?name=MDVSA-2015:032
vendor-advisory
-
marc.info
/?l=bugtraq&m=144050155601375&w=2
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2015-02/msg00029.html
vendor-advisory
-
lists.apple.com
/archives/security-announce/2015/Sep/msg00008.html
vendor-advisory
-
marc.info
/?l=bugtraq&m=143748090628601&w=2
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2015-02/msg00079.html
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1053.html
vendor-advisory
-
security.gentoo.org
/glsa/201503-03
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1066.html
vendor-advisory
-
openwall.com
/lists/oss-security/2015/01/03/4
mailing-list
- oracle.com /technetwork/topics/security/linuxbulletinjan2016-2867209.html
-
openwall.com
/lists/oss-security/2014/12/31/6
mailing-list
- git.php.net /?p=php-src.git%3Ba=commit%3Bh=f9ad3086693fce680fbe246e4a45aa92edd2ac35
-
securityfocus.com
/bid/71833
vdb-entry
- support.apple.com /HT205267
-
openwall.com
/lists/oss-security/2015/01/01/1
mailing-list
- advisories.mageia.org /MGASA-2015-0040.html
Sources
- CVE List CVE-2014-9427
- NVD CVE-2014-9427
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.