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…
Noroxi assessment
Priority: Monitor (action score 35/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 18.2% (FIRST EPSS); higher than 97.2% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: php5 (Debian:7) 5.4.36-0+deb7u1; php54 (Red Hat:rhel_software_collections:2::el6) 0:2.0-1.el6; php54-php (Red Hat:rhel_software_collections:2::el6) 0:5.4.40-1.el6.
Low priority for now. Upgrade to php5 (Debian:7) 5.4.36-0+deb7u1; php54 (Red Hat:rhel_software_collections:2::el6) 0:2.0-1.el6; php54-php (Red Hat:rhel_software_collections:2::el6) 0:5.4.40-1.el6 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jan 2, 2015
- Updated
- Jun 16, 2026
- EPSS
- 18.2% · 97th percentile
- CWE
- CWE-119
Report tools
Action score
35
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 5 / 30 · 18.2%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php1.0
- php php2.0
- php php2.0b10
- php php3.0
- php php3.0.1
- php php3.0.10
- php php3.0.11
- php php3.0.12
+12 more rows
- php php3.0.13
- php php3.0.14
- php php3.0.15
- php php3.0.16
- php php3.0.17
- php php3.0.18
- php php3.0.2
- php php3.0.3
- php php3.0.4
- php php3.0.5
- php php3.0.6
- php php3.0.7
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:7 | php5 | before 5.4.36-0+deb7u1 | 5.4.36-0+deb7u1 |
| Red Hat:rhel_software_collections:2::el6 | php54 | before 0:2.0-1.el6 | 0:2.0-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-bcmath | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-cli | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-common | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-dba | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-debuginfo | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-devel | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-enchant | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-fpm | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-gd | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-imap | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-intl | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-ldap | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-mbstring | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-mysqlnd | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-odbc | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pdo | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pecl-zendopcache | before 0:7.0.4-3.el6 | 0:7.0.4-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pecl-zendopcache-debuginfo | before 0:7.0.4-3.el6 | 0:7.0.4-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pgsql | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-process | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pspell | before 0:5.4.40-1.el6 | 0:5.4.40-1.el6 |
+96
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV99Now
Published before and after this one in the same product
- ← EarlierCVE-2014-9425Dec 30, 2014 · Double free vulnerability in the zend_ts_hash_graceful_destroy function in zend_ts_hash.c in the Zend Engine in PHP through 5.5.20 and…31Monitor
- ← EarlierCVE-2014-9426Dec 30, 2014 · The apprentice_load function in libmagic/apprentice.c in the Fileinfo component in PHP through 5.6.4 attempts to perform a free operation…30Monitor
- Later →CVE-2015-0231Jan 27, 2015 · Use-after-free vulnerability in the process_nested_data function in ext/standard/var_unserializer.re in PHP before 5.4.37, 5.5.x before 5.5.43Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:php5 | 5.4.36-0+deb7u1 · Debian:7 | Package registry (OSV) |
| red hat:php55 | 0:2.0-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-bcmath | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-cli | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-common | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-dba | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-debuginfo | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-devel | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-enchant | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-fpm | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-gd | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-gmp | 0:5.5.21-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| suse:php5 | 5.5.14-11.3 · SUSE:Linux Enterprise Module for Web and Scripting 12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Not on record for this CVE: patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory BufferCVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Buffer ManipulationCAPEC-123likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (16 more)Show less
- git.php.net/?p=php-src.git%3Ba=commit%3Bh=f9ad3086693fce680fbe246e4a45aa92edd2ac35
- lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- lists.opensuse.org/opensuse-security-announce/2015-02/msg00029.html
- lists.opensuse.org/opensuse-updates/2015-02/msg00079.html
- marc.info/?l=bugtraq&m=143748090628601&w=2
- marc.info/?l=bugtraq&m=144050155601375&w=2
- openwall.com/lists/oss-security/2014/12/31/6
- openwall.com/lists/oss-security/2015/01/01/1
- openwall.com/lists/oss-security/2015/01/03/4
- rhn.redhat.com/errata/RHSA-2015-1053.html
- rhn.redhat.com/errata/RHSA-2015-1066.html
- www.mandriva.com/security/advisories?name=MDVSA-2015:032
- www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- www.securityfocus.com/bid/71833
- security.gentoo.org/glsa/201503-03
- support.apple.com/HT205267
Vendor advisories and official records. Exploit/PoC links are deliberately left out.