CVE-2014-9427
Reported by debian · Published January 3, 2015
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php5 | Ubuntu:14.04:LTS | 5.5.9+dfsg-1ubuntu4.6 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Jan 2, 2015 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 5, 2026 Distribution Patch
- Mar 5, 2026 Security Advisory (5 in total, the first dated here)
- Oct 17, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2014-9427
vulnetix vdb fixes CVE-2014-9427
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2014-9427/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- MDVSA-2015:032 vendor-advisoryx_refsource_MANDRIVA
- HPSBMU03409 vendor-advisoryx_refsource_HP
- SUSE-SU-2015:0365 vendor-advisoryx_refsource_SUSE
- APPLE-SA-2015-09-30-3 vendor-advisoryx_refsource_APPLE
- [oss-security] 20150103 Re: CVE Request: PHP: out of bounds read crashes php-cgi mailing-listx_refsource_MLIST
- HPSBMU03380 vendor-advisoryx_refsource_HP
- x_refsource_CONFIRM
- [oss-security] 20141231 Re: CVE Request: PHP: out of bounds read crashes php-cgi mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- openSUSE-SU-2015:0325 vendor-advisoryx_refsource_SUSE
- 71833 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- [oss-security] 20141231 Re: CVE Request: PHP: out of bounds read crashes php-cgi mailing-listx_refsource_MLIST
- RHSA-2015:1053 vendor-advisoryx_refsource_REDHAT
- GLSA-201503-03 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM
- RHSA-2015:1066 vendor-advisoryx_refsource_REDHAT