CVE-2015-4598
php: missing null byte checks for paths in DOM and GD extensions
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness: CWE-20
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 7 fixes
Oracle Linux 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | php +24 | 5.4.16-36.el7_1 |
| 7 | php54-php +22 | 5.4.40-3.el7 |
| 7 | php55-php +24 | 5.5.21-4.el7 |
Red Hat 1 release · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | php +24 | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| 7 | php54-php +22 | 0:5.4.40-3.el7 | RHSA-2015:1219 |
| 7 | php55-php +24 | 0:5.5.21-4.el7 | RHSA-2015:1186 |
| 7 | rh-php56-php +26 | 0:5.6.5-7.el7 | RHSA-2015:1187 |
References
- php.net http://php.net/ChangeLog-5.php
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2015-1135.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2015-1186.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2015-1187.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2015-1218.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2015-1219.html
- www.debian.org http://www.debian.org/security/2015/dsa-3344
- www.openwall.com http://www.openwall.com/lists/oss-security/2015/06/16/12
- www.oracle.com http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- www.securityfocus.com http://www.securityfocus.com/bid/75244
Show all 18 references
- www.securitytracker.com http://www.securitytracker.com/id/1032709
- access.redhat.com https://access.redhat.com/security/cve/CVE-2015-4598
- bugs.php.net https://bugs.php.net/bug.php?id=69719
- linux.oracle.com https://linux.oracle.com/cve/CVE-2015-4598.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2015-1219.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2015-4598
- ubuntu.com https://ubuntu.com/security/notices/USN-2658-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2015-4598
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.