CVE-2024-40896CWE-611

In libxml2 2.11 before 2.11.9, 2.12 before 2.12.9, and 2.13 before 2.13.3, the SAX parser can produce events for external entities even if custom SAX handlers…

Critical · published December 23, 2024

CVSS v3.1
9.1
EPSS
1%
Percentile
68.4
In the wild
Unconfirmed
What it is

🚨 A classic XXE vulnerability lurks in the libxml2 SAX parser! Even if your custom handlers are ready to tackle it, they can still be bypassed, allowing attackers access to sensitive data. 🔥 Think of the SAX parser as a restaurant waiter who takes orders but ignores special instructions from the chef about not serving certain dishes. No matter how many precautions are taken, if they follow the usual recipe, it could lead to disaster! An attacker can exploit this vulnerability to manipulate the parser into revealing sensitive data or executing harmful commands by accessing external entities. This could lead to data leaks or even system compromise, putting your entire application at serious risk!

Put simply

Think of the SAX parser as a restaurant waiter who takes orders but ignores special instructions from the chef about not serving certain dishes. No matter how many precautions are taken, if they follow the usual recipe, it could lead to disaster! In libxml2 versions 2.11 up to 2.11.9, 2.12 up to 2.12.9, and 2.13 up to 2.13.3, the SAX parser fails to properly restrict external entity processing when custom handlers are configured. This allows for classic XXE attacks to be executed.

What to do

An attacker can exploit this vulnerability to manipulate the parser into revealing sensitive data or executing harmful commands by accessing external entities. This could lead to data leaks or even system compromise, putting your entire application at serious risk! Update libxml2 to version 2.11.9, 2.12.9, or 2.13.3 immediately to patch this vulnerability. Additionally, review your parsing configurations and ensure that external entity processing is properly restricted in your applications. You've got this! Follow these steps, and you'll be a security hero in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01218 · 68.4th percentile
Weakness
CWE-611 · Improper Restriction of XML External Entity Reference
Published
2024-12-23T00:00Z
EPSS history
Timeline
  • 23 DEC 00:00Z
    In libxml2 2.11 before 2.11.9, 2.12 before 2.12.9, and 2.13 before 2.13.3, the SAX parser can produce events for external entities even if custom SAX handlers…
    cvelistv5