CVE-2014-9427
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
- Updated
- Reserved
- Assigned by
- debian
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 18.3% · top 2.8% of all CVEs (4 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
n/a
- affected n/a
References (18)
- https://bugs.php.net/bug.php?id=68618 (opens in a new tab)x_refsource_CONFIRMx_transferred
- MDVSA-2015:032 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- HPSBMU03409 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- SUSE-SU-2015:0365 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- APPLE-SA-2015-09-30-3 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- [oss-security] 20150103 Re: CVE Request: PHP: out of bounds read crashes php-cgi (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- HPSBMU03380 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20141231 Re: CVE Request: PHP: out of bounds read crashes php-cgi (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=f9ad3086693fce680fbe246e4a45aa92edd2ac35 (opens in a new tab)x_refsource_CONFIRMx_transferred
- openSUSE-SU-2015:0325 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 71833 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- https://support.apple.com/HT205267 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20141231 Re: CVE Request: PHP: out of bounds read crashes php-cgi (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2015:1053 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- GLSA-201503-03 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- http://advisories.mageia.org/MGASA-2015-0040.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2015:1066 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2014-9427)Record last updated .