{"id":"CVE-2014-9427","published":"2015-01-03T02:00:00Z","modified":"2024-08-06T13:47:41Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.1828,"percentile":0.97288,"provenance":"source"},"cwes":[],"references":[{"url":"https://bugs.php.net/bug.php?id=68618","tags":["x_refsource_CONFIRM"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:032","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://marc.info/?l=bugtraq&m=144050155601375&w=2","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2015-02/msg00029.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://openwall.com/lists/oss-security/2015/01/03/4","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://marc.info/?l=bugtraq&m=143748090628601&w=2","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","tags":["x_refsource_CONFIRM"]},{"url":"http://openwall.com/lists/oss-security/2014/12/31/6","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=f9ad3086693fce680fbe246e4a45aa92edd2ac35","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-02/msg00079.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.securityfocus.com/bid/71833","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://support.apple.com/HT205267","tags":["x_refsource_CONFIRM"]},{"url":"http://openwall.com/lists/oss-security/2015/01/01/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://rhn.redhat.com/errata/RHSA-2015-1053.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://security.gentoo.org/glsa/201503-03","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://advisories.mageia.org/MGASA-2015-0040.html","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2015-1066.html","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":19.5,"factors":[{"name":"EPSS percentile","points":19.46}]},"summary":{"text":"The flaw is an out-of-bounds read in sapi/cgi/cgi_main.c, part of the CGI component of PHP through 5.4.36, 5.5.x through 5.5.20, and 5.6.x through 5.6.4, where mmap is used to read a .php file and the mapping's length is not properly considered when processing an invalid file beginning with a # character and lacking a newline. An attacker who can upload a .php file could leverage this to obtain sensitive information from php-cgi process memory, or, if a valid PHP script sits in adjacent memory, potentially trigger unexpected code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:44:11Z"},"euvd":{"id":"EUVD-2014-9248","exploited":false,"provenance":"source"}}