CVE-2016-4539

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…

published May 22, 2016

CVSS
—
EPSS
6%
Percentile
93.3
In the wild
Unconfirmed
What it is

⚠️ A crafty crafted XML can crash your PHP server! This buffer under-read vulnerability in the xml_parse_into_struct function can throw your application into chaos, resulting in a denial of service. 🔥 Think of this vulnerability like a poorly written recipe that tells the chef to pull ingredients from the wrong shelf — it leads to confusion and a messy kitchen! Without the right checks, the parser goes haywire, just like the chef might end up with a disastrous meal. An attacker can send crafted XML data that causes the parser to malfunction, leading to a segmentation fault. This means your server can become unresponsive, leaving users frustrated and your application in a state of disarray while you scramble to fix it.

Put simply

Think of this vulnerability like a poorly written recipe that tells the chef to pull ingredients from the wrong shelf — it leads to confusion and a messy kitchen! Without the right checks, the parser goes haywire, just like the chef might end up with a disastrous meal. This vulnerability allows remote attackers to send specially crafted XML data that triggers a buffer under-read, resulting in a segmentation fault in PHP versions prior to 5.5.35, 5.6.21, and 7.0.6. Essentially, the parser is unable to handle the data correctly, leading to crashes.

What to do

An attacker can send crafted XML data that causes the parser to malfunction, leading to a segmentation fault. This means your server can become unresponsive, leaving users frustrated and your application in a state of disarray while you scramble to fix it. To safeguard your applications, upgrade PHP to at least versions 5.5.35, 5.6.21, or 7.0.6 as soon as possible. Also, consider implementing input validation to ensure that the XML data being parsed is well-formed. Regularly auditing your libraries can help catch potential vulnerabilities early! You've got this! By patching up now, you'll keep your server safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.06063 · 93.3th percentile
Published
2016-05-22T01:00Z
EPSS history
Timeline
  • 22 MAY 01:00Z
    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…
    cvelistv5