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.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
http://www.openwall.com/lists/oss-security/2016/05/26/3 | mailing list release notes |
http://www.debian.org/security/2016/dsa-3602 | vendor advisory |
http://php.net/ChangeLog-5.php | release notes |
https://bugs.php.net/bug.php?id=72135 | |
http://www.securityfocus.com/bid/92144 | vdb entry |
https://gist.github.com/8ef775c117d84ff15185953990a28576 |