CVE-2014-5120: Input Validation
gdctx.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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2014-5120?
CVE-2014-5120 has a medium severity level as it may allow file overwrite attacks.
How do I fix CVE-2014-5120?
To fix CVE-2014-5120, upgrade PHP to version 5.4.32 or 5.5.16 or later.
What versions of PHP are affected by CVE-2014-5120?
CVE-2014-5120 affects PHP versions 5.4.x prior to 5.4.32 and 5.5.x prior to 5.5.16.
What types of attacks can exploit CVE-2014-5120?
CVE-2014-5120 can be exploited to overwrite arbitrary files through crafted input to specific image processing functions.
Are there any workarounds for CVE-2014-5120?
Workarounds for CVE-2014-5120 include validating and sanitizing input paths, though upgrading is the best solution.