CVE-2015-8935 json
The sapi_header_op function in main/SAPI.c in PHP before 5.4.38, 5.5.x before 5.5.22, and 5.6.x before 5.6.6 supports deprecated line foldi…
published 2016-08-07 10 y ago modified 2026-06-17 4 mo ago also EUVD-2015-8791
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.2%
- EPSS 3.2% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
The sapi_header_op function in main/SAPI.c in PHP before 5.4.38, 5.5.x before 5.5.22, and 5.6.x before 5.6.6 supports deprecated line folding without considering browser compatibility, which allows remote attackers to conduct cross-site scripting (XSS) attacks against Internet Explorer by leveraging (1) %0A%20 or (2) %0D%0A%20 mishandling in the header function.
Patch / fix
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.19
ubuntu advisories UBUNTU-CVE-2015-8935
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el6
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el7
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
red hat advisories RHSA-2016:2750RHSA-2015:1066
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.3.17-74.1
- php5 SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 5.5.14-68.1
- php5 SLES 11 SP2-LTSS 5.2.14-0.7.30.89.1
suse advisories SUSE-SU-2016:2080-1SUSE-SU-2016:2013-1SUSE-SU-2016:1842-1
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-2015-8935 updated cvss 3.1
php: HTTP response splitting in header() function
-
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 Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Software Collections php55-php, php55-php-gd, php55-php-cli, php55-php-dba, php55-php-fpm, php55-php-gmp, +20 moreaffected: no fix planned “Will not fix”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php54 2.0-1.el6, rh-php56 2.3-1.el6, php54-php 5.4.40-1.el6, php54-runtime 2.0-1.el6, php54-scldevel 2.0-1.el6, php54-php-gd 5.4.40-1.el6, +54 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php54 2.0-1.el7, rh-php56 2.3-1.el7, php54-php 5.4.40-1.el7, php54-runtime 2.0-1.el7, php54-scldevel 2.0-1.el7, php54-php-gd 5.4.40-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php54 2.0-1.el6, php54-php 5.4.40-1.el6, php54-runtime 2.0-1.el6, php54-scldevel 2.0-1.el6, php54-php-gd 5.4.40-1.el6, php54-php-cli 5.4.40-1.el6, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php54 2.0-1.el6, php54-php 5.4.40-1.el6, php54-runtime 2.0-1.el6, php54-scldevel 2.0-1.el6, php54-php-gd 5.4.40-1.el6, php54-php-cli 5.4.40-1.el6, +22 morefixed: vendor fix RHSA-2015:1066
-
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 morefixed: vendor fix RHSA-2016:2750
-
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php54 2.0-1.el6, rh-php56 2.3-1.el6, php54-php 5.4.40-1.el6, php54-runtime 2.0-1.el6, php54-scldevel 2.0-1.el6, php54-php-gd 5.4.40-1.el6, +54 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php54 2.0-1.el7, rh-php56 2.3-1.el7, php54-php 5.4.40-1.el7, php54-runtime 2.0-1.el7, php54-scldevel 2.0-1.el7, php54-php-gd 5.4.40-1.el7, +50 morefixed: vendor fix RHSA-2015:1066
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
3.22% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/php/php-src/commit/996faf964bba1aec06b153b370a7f20d3dd2bb8b?w=1
issue-tracking, patch
-
openwall.com
/lists/oss-security/2016/06/20/3
mailing-list, patch
-
lists.opensuse.org
/opensuse-security-announce/2016-07/msg00004.html
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2016-08/msg00003.html
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2016-2750.html
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-08/msg00025.html
vendor-advisory
-
bugs.php.net
/bug.php?id=68978
issue-tracking, vendor-advisory
Sources
- CVE List CVE-2015-8935
- NVD CVE-2015-8935
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.