CVE-2014-9427

PHP <5.4.36, 5.5.x<5.5.20, 5.6.x<5.6.4 - Info Disclosure

Title source: llm
STIX 2.1

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.

References (18)

Core 18
Core References
Exploit x_refsource_confirm
https://bugs.php.net/bug.php?id=68618
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2015:032
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
Mailing List mailing-list x_refsource_mlist
http://openwall.com/lists/oss-security/2015/01/03/4
Mailing List vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=143748090628601&w=2
Mailing List mailing-list x_refsource_mlist
http://openwall.com/lists/oss-security/2014/12/31/6
Mailing List vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-updates/2015-02/msg00079.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/71833
Vendor Advisory x_refsource_confirm
https://support.apple.com/HT205267
Mailing List mailing-list x_refsource_mlist
http://openwall.com/lists/oss-security/2015/01/01/1
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2015-1053.html
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201503-03
Third Party Advisory x_refsource_confirm
http://advisories.mageia.org/MGASA-2015-0040.html
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2015-1066.html
Mailing List vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=144050155601375&w=2

Scores

EPSS 0.0300
EPSS Percentile 86.7%

Details

CWE
CWE-119
Status published
Products (46)
php/php 1.0
php/php 2.0
php/php 2.0b10
php/php 3.0
php/php 3.0.1
php/php 3.0.2
php/php 3.0.3
php/php 3.0.4
php/php 3.0.5
php/php 3.0.6
... and 36 more
Published Jan 03, 2015
Tracked Since Feb 18, 2026