CVE-2014-5120
Description
gd_ctx.c in the GD component in PHP 5.4.x before 5.4.32 and 5.5.x before 5.5.16 does not ensure that pathnames lack %00 sequences, which might allow remote attackers to overwrite arbitrary files via crafted input to an application that calls the (1) imagegd, (2) imagegd2, (3) imagegif, (4) imagejpeg, (5) imagepng, (6) imagewbmp, or (7) imagewebp function.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
16.934%
chance of exploitation in the next 30 days
higher than 97.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-20: Improper Input Validation
Timeline
- 2014-08-23Published by the CNA01:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| php php | 5.4.0no fix listed5.4.1no fix listed5.4.10no fix listed5.4.11no fix listed5.4.12no fix listed(+43 more) | not listednot listednot listednot listednot listed |
References
- http://lists.apple.com/archives/security-announce/2015/Apr/msg00001.html
- http://lists.opensuse.org/opensuse-updates/2014-09/msg00024.html
- http://rhn.redhat.com/errata/RHSA-2014-1327.html
- http://rhn.redhat.com/errata/RHSA-2014-1765.html
- http://rhn.redhat.com/errata/RHSA-2014-1766.html
- https://bugs.php.net/bug.php?id=67730
- http://php.net/ChangeLog-5.php
- http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html
- https://support.apple.com/HT204659
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2014-5120'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2014-5120'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2014-5120'curl 'https://api.contrastcyber.com/cve_products/CVE-2014-5120'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).