CVE-2016-5095 json
Integer overflow in the php_escape_html_entities_ex function in ext/standard/html.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows rem…
published 2016-08-07 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-6047
- cvss
- 8.6
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
Integer overflow in the php_escape_html_entities_ex function in ext/standard/html.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact by triggering a large output string from a FILTER_SANITIZE_FULL_SPECIAL_CHARS filter_var call. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-5094.
Patch / fix
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.19
ubuntu advisories UBUNTU-CVE-2016-5095
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
- php5 SLE Software Development Kit 12 SP1, SLE Software Development Kit 12, SLE Module for Web and Scripting 12 5.5.14-64.5
- imap SLED 12 SP1, SLED 12, SLE Workstation Extension 12 SP1 +4 more 2007e_suse-19.1
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +5 more 5.3.17-71.1
- php53 SLES 11 SP2-LTSS 5.3.17-47.1
suse advisories SUSE-SU-2016:1638-1SUSE-SU-2016:1633-1SUSE-SU-2016:1581-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-2016-5095 updated cvss 5.1
php: Integer overflow in php_filter_full_special_chars
-
Red Hat Software Collections php54-php, php55-php, php54-php-gd, php55-php-gd, rh-php56-php, php54-php-cli, +72 moreaffected: no fix planned “Will not fix”
-
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 morenot affected: vulnerable code not present
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
2.64% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
- Technology feeds
References
-
debian.org
/security/2016/dsa-3602
vendor-advisory
-
openwall.com
/lists/oss-security/2016/05/26/3
mailing-list, release-notes
-
php.net
/ChangeLog-5.php
release-notes
- bugs.php.net /bug.php?id=72135
-
securityfocus.com
/bid/92144
vdb-entry
- gist.github.com /8ef775c117d84ff15185953990a28576
Sources
- CVE List CVE-2016-5095
- NVD CVE-2016-5095
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.