Buffer overflow in PHP - CVE-2016-4539

 

Buffer overflow in PHP - CVE-2016-4539

Published: October 30, 2018 / Updated: June 8, 2025


Vulnerability identifier: #VU110263
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-4539
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The xml_parse_into_struct function in ext/xml/xml.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 allows remote attackers to cause a denial of service (buffer under-read and segmentation fault) or possibly have unspecified other impact via crafted XML data in the second argument, leading to a parser level of zero.


Affected software

PHP
Fedora
php

How to mitigate CVE-2016-4539

Install update from vendor's website.

PHP - addressed in versions 5.6.21, 7.0.6
php - addressed in versions 5.6.21-1.fc22, 5.6.21-1.fc24

External References

Related Security Bulletins