Skip to content
OpenAdvisories
Unscored CVE-2014-5120 EUVD-2014-5018GHSA-3wv8-w3p3-hq59

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 Aug 23, 2014 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
RHEL 7 php +24 5.4.16-23.el7_0.1 RHSA-2014:1327
RHEL 1 php54-php +24 5.4.16-22.el6 RHSA-2014:1765
RHEL 1 php55-php +26 5.5.6-13.el6 RHSA-2014:1766
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php5 5.6.28-1.1 openSUSE-SU-2024:10344-1
openSUSE Tumbleweed php7 7.0.14-1.4 openSUSE-SU-2024:10290-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 php +24 5.4.16-23.el7_0.1 ELSA-2014-1327

Advisories 6

References