CVE-2014-5120

medium
Published 2014-08-23 ยท Modified 2026-05-06
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
6.4

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 0
sid Fixed 0
forky Fixed 0
bullseye Fixed 0
bookworm Fixed 0

Application impact

VendorProductVersionsFixed
php phpphp5.4.0
php phpphp5.4.1
php phpphp5.4.2
php phpphp5.4.3
php phpphp5.4.4
php phpphp5.4.5
php phpphp5.4.6
php phpphp5.4.7
php phpphp5.4.8
php phpphp5.4.9
php phpphp5.4.10
php phpphp5.4.11
php phpphp5.4.12
php phpphp5.4.13
php phpphp5.4.14
php phpphp5.4.15
php phpphp5.4.16
php phpphp5.4.17
php phpphp5.4.18
php phpphp5.4.19
php phpphp5.4.20
php phpphp5.4.21
php phpphp5.4.22
php phpphp5.4.23
php phpphp5.4.24
php phpphp5.4.25
php phpphp5.4.26
php phpphp5.4.27
php phpphp5.4.28
php phpphp5.4.29
php phpphp5.4.30
php phpphp5.4.31
php phpphp5.5.0
php phpphp5.5.1
php phpphp5.5.2
php phpphp5.5.3
php phpphp5.5.4
php phpphp5.5.5
php phpphp5.5.6
php phpphp5.5.7
php phpphp5.5.8
php phpphp5.5.9
php phpphp5.5.10
php phpphp5.5.11
php phpphp5.5.12
php phpphp5.5.13
php phpphp5.5.14
php phpphp5.5.15

References

CWEs

CWE-20

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.