CVE-2015-4604: The mget function in softmagic.c in file 5.x, as used in the Fileinfo component in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before…
Noroxi assessment
Priority: Monitor (action score 32/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: 7.1% (FIRST EPSS); higher than 94.3% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: php5 (Debian:6.0) 5.3.3.1-7+squeeze27; php55-php (Red Hat:rhel_software_collections:2::el6) 0:5.5.21-4.el6; php55-php-bcmath (Red Hat:rhel_software_collections:2::el6) 0:5.5.21-4.el6.
Low priority for now. Upgrade to php5 (Debian:6.0) 5.3.3.1-7+squeeze27; php55-php (Red Hat:rhel_software_collections:2::el6) 0:5.5.21-4.el6; php55-php-bcmath (Red Hat:rhel_software_collections:2::el6) 0:5.5.21-4.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
The mget function in softmagic.c in file 5.x, as used in the Fileinfo component in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8, does not properly maintain a certain pointer relationship, which allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted string that is mishandled by a "Python script text executable" rule.
- Published
- May 16, 2016
- Updated
- Jun 16, 2026
- EPSS
- 7.1% · 94th percentile
- CWE
- CWE-20
Report tools
Action score
32
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 7.1%
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 |
| redhat | enterprise linux desktop | cpe:2.3:o:redhat:enterprise_linux_desktop |
| redhat | enterprise linux hpc node | cpe:2.3:o:redhat:enterprise_linux_hpc_node |
| redhat | enterprise linux hpc node eus | cpe:2.3:o:redhat:enterprise_linux_hpc_node_eus |
| redhat | enterprise linux server | cpe:2.3:o:redhat:enterprise_linux_server |
| redhat | enterprise linux server eus | cpe:2.3:o:redhat:enterprise_linux_server_eus |
| redhat | enterprise linux workstation | cpe:2.3:o:redhat:enterprise_linux_workstation |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
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 phpup to 5.4.39 inclusive
- php php5.5.0
- php php5.5.1
- php php5.5.10
- php php5.5.11
- php php5.5.12
- php php5.5.13
- php php5.5.14
+12 more rows
- php php5.5.15
- php php5.5.16
- php php5.5.17
- php php5.5.18
- php php5.5.19
- php php5.5.2
- php php5.5.20
- php php5.5.21
- php php5.5.22
- php php5.5.23
- php php5.5.3
- php php5.5.4
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:6.0 | php5 | before 5.3.3.1-7+squeeze27 | 5.3.3.1-7+squeeze27 |
| Red Hat:rhel_software_collections:2::el6 | php55-php | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-bcmath | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-cli | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-common | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-dba | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-debuginfo | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-devel | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-enchant | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-fpm | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-gd | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-gmp | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-imap | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-intl | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-ldap | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-mbstring | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-mysqlnd | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-odbc | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-opcache | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-pdo | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-pgsql | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-process | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-pspell | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-recode | before 0:5.5.21-4.el6 | 0:5.5.21-4.el6 |
+89
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-2015-4602May 16, 2016 · The __PHP_Incomplete_Class function in ext/standard/incomplete_class.c in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8…42Plan
- ← EarlierCVE-2015-4603May 16, 2016 · The exception::getTraceAsString function in Zend/zend_exceptions.c in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 allows…42Plan
- Later →CVE-2015-4605May 16, 2016 · The mcopy function in softmagic.c in file 5.x, as used in the Fileinfo component in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x…32Monitor
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.3.3.1-7+squeeze27 · Debian:6.0 | Package registry (OSV) |
| red hat:php55-php | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-bcmath | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-cli | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-common | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-dba | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-debuginfo | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-devel | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-enchant | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-fpm | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-gd | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-gmp | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:php55-php-imap | 0:5.5.21-4.el6 · Red Hat:rhel_software_collections:2::el6 | 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.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (8 more)Show less
- php.net/ChangeLog-5.php
- rhn.redhat.com/errata/RHSA-2015-1135.html
- rhn.redhat.com/errata/RHSA-2015-1186.html
- rhn.redhat.com/errata/RHSA-2015-1187.html
- www.openwall.com/lists/oss-security/2015/06/16/12
- www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- www.securityfocus.com/bid/75241
- www.securitytracker.com/id/1032709
Vendor advisories and official records. Exploit/PoC links are deliberately left out.