Live threats

All CVEs / Php

CVE-2014-5120Php

Medium 6.4 No auth neededHigh EPSS

Priority
55
CVSS 2.0
6.4
EPSS
16.9%
probability of exploitation in 30 days · percentile 98
Auth required
No
Published
Aug 23, 2014
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-20
Vector
AV:N/AC:L/Au:N/C:N/I:P/A:P

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp5.4.0
phpphp5.4.0
phpphp5.4.0
phpphp5.4.0
phpphp5.4.1
phpphp5.4.2
phpphp5.4.3
phpphp5.4.4
phpphp5.4.5
phpphp5.4.6
phpphp5.4.7
phpphp5.4.8
phpphp5.4.9
phpphp5.4.10
phpphp5.4.11
phpphp5.4.12
phpphp5.4.12
phpphp5.4.12
phpphp5.4.13
phpphp5.4.13
phpphp5.4.14
phpphp5.4.14
phpphp5.4.15
phpphp5.4.15
phpphp5.4.16
phpphp5.4.17
phpphp5.4.18
phpphp5.4.19
phpphp5.4.20
phpphp5.4.21
phpphp5.4.22
phpphp5.4.23
phpphp5.4.24
phpphp5.4.25
phpphp5.4.26
phpphp5.4.27
phpphp5.4.28
phpphp5.4.29
phpphp5.4.30
phpphp5.4.31
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.0
phpphp5.5.1
phpphp5.5.2
phpphp5.5.3
phpphp5.5.4
phpphp5.5.5
phpphp5.5.6
phpphp5.5.7

and 8 more in the JSON

Official sources

References

Links published by the sources. Open them with care.