CVE-2015-4598

php: missing null byte checks for paths in DOM and GD extensions

Published May 16, 2016 CVSS 3.0 · 6.5 Medium EPSS 3.8% KEV · Not listed
Description
PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 does not ensure that pathnames lack %00 sequences, which might allow remote attackers to read or write to arbitrary files via crafted input to an application that calls (1) a DOMDocument save method or (2) the GD imagepsloadfont function, as demonstrated by a filename\0.html attack that bypasses an intended configuration in which client users may write to only .html files.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-307-1 php5 security update
Debian DSA Debian DSA DSA-3344-1 php5 security update
EUVD EUVD EUVD-2015-4618 PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 does not ensure that pathnames lack %00 sequences, which might allow remote attackers to read or write to arbitrary files via crafted input to an application that calls (1) a DOMDocument save method or (2) the GD imagepsloadfont function, as demonstrated by a filename\0.html attack that bypasses an intended configuration in which client users may write to only .html files.
Ubuntu USN Ubuntu USN USN-2658-1 PHP vulnerabilities
History

No history.