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…

CVE-2014-5120 affects 1 listed version of PHP in the Dawnsentry catalogue.

6.4CVSS medium
None knownexploitation
17%EPSS (next 30 days)
23 August 2014published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

1 of 250 listed versions are affected. Fixed in 5.4.32. The newest release, 8.6.0, is not affected.

5.4.31

What it is

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.

AV:N/AC:L/Au:N/C:N/I:P/A:P (NVD)

Published by MITRE on 23 August 2014. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2014-5120 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.