Skip to content
Fencer Intel
medium 6.4

CVE-2014-5120 json

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 mi…

published 12y ago modified 4mo ago also EUVD-2014-5018

cvss
6.4
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
16.9%
EPSS 16.9% chance of exploitation in 30 days, percentile 97%
public exploits
0
none known

Summary

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.

Patch / fix

  • php RHEL 7 5.4.16-23.el7_0.1
  • php-gd RHEL 7 5.4.16-23.el7_0.1
  • php-cli RHEL 7 5.4.16-23.el7_0.1
  • php-dba RHEL 7 5.4.16-23.el7_0.1
  • php-fpm RHEL 7 5.4.16-23.el7_0.1
  • php-pdo RHEL 7 5.4.16-23.el7_0.1
  • php-xml RHEL 7 5.4.16-23.el7_0.1
  • php-intl RHEL 7 5.4.16-23.el7_0.1

red hat advisories RHSA-2014:1327RHSA-2014:1766RHSA-2014:1765

  • php7 openSUSE Tumbleweed 7.0.14-1.4
  • php5 openSUSE Tumbleweed 5.6.28-1.1

opensuse advisories openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1

Is CVE-2014-5120 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2014-5120 updated cvss 4.3

php: gd extension NUL byte injection in file names

  • Red Hat Enterprise Linux Client Optional (v. 7) php 5.4.16-23.el7_0.1, php-gd 5.4.16-23.el7_0.1, php-cli 5.4.16-23.el7_0.1, php-dba 5.4.16-23.el7_0.1, php-fpm 5.4.16-23.el7_0.1, php-pdo 5.4.16-23.el7_0.1, +18 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) php 5.4.16-23.el7_0.1, php-gd 5.4.16-23.el7_0.1, php-cli 5.4.16-23.el7_0.1, php-dba 5.4.16-23.el7_0.1, php-fpm 5.4.16-23.el7_0.1, php-pdo 5.4.16-23.el7_0.1, +18 more Red Hat Enterprise Linux Server (v. 7) php 5.4.16-23.el7_0.1, php-gd 5.4.16-23.el7_0.1, php-cli 5.4.16-23.el7_0.1, php-pdo 5.4.16-23.el7_0.1, php-xml 5.4.16-23.el7_0.1, php-ldap 5.4.16-23.el7_0.1, +8 more Red Hat Enterprise Linux Server Optional (v. 7) php-dba 5.4.16-23.el7_0.1, php-fpm 5.4.16-23.el7_0.1, php-intl 5.4.16-23.el7_0.1, php-snmp 5.4.16-23.el7_0.1, php-bcmath 5.4.16-23.el7_0.1, php-pspell 5.4.16-23.el7_0.1, +4 more Red Hat Enterprise Linux Workstation (v. 7) php 5.4.16-23.el7_0.1, php-gd 5.4.16-23.el7_0.1, php-cli 5.4.16-23.el7_0.1, php-pdo 5.4.16-23.el7_0.1, php-xml 5.4.16-23.el7_0.1, php-ldap 5.4.16-23.el7_0.1, +8 more Red Hat Enterprise Linux Workstation Optional (v. 7) php-dba 5.4.16-23.el7_0.1, php-fpm 5.4.16-23.el7_0.1, php-intl 5.4.16-23.el7_0.1, php-snmp 5.4.16-23.el7_0.1, php-bcmath 5.4.16-23.el7_0.1, php-pspell 5.4.16-23.el7_0.1, +4 more
    fixed: vendor fix RHSA-2014:1327
  • Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7) php55-php 5.5.6-13.el7, php54-php 5.4.16-22.el7, php55-php-gd 5.5.6-13.el7, php54-php-gd 5.4.16-22.el7, php55-php-cli 5.5.6-13.el7, php55-php-dba 5.5.6-13.el7, +40 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.4) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.5) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.6) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more
    +1 more products
    Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 7) php55-php 5.5.6-13.el7, php54-php 5.4.16-22.el7, php55-php-gd 5.5.6-13.el7, php54-php-gd 5.4.16-22.el7, php55-php-cli 5.5.6-13.el7, php55-php-dba 5.5.6-13.el7, +40 more
    fixed: vendor fix RHSA-2014:1765
  • Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

16.93% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 2.0 6.4 AV:N/AC:L/Au:N/C:N/I:P/A:P

Classification

Weakness
  • CWE-20 Improper Input Validation
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.