XML External Entity injection in Lxml - CVE-2024-37388

 

XML External Entity injection in Lxml - CVE-2024-37388

Published: June 21, 2024


Vulnerability identifier: #VU93015
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-37388
CWE-ID: CWE-611
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to insufficient validation of user-supplied XML input. A remote attacker can pass a specially crafted XML code to the affected application and view contents of arbitrary files on the system or initiate requests to external systems.

Successful exploitation of the vulnerability may allow an attacker to view contents of arbitrary file on the server or perform network scanning of internal and external infrastructure.


Affected software

Lxml
openEuler
python-lxml
python-lxml-debugsource
python3-lxml
python2-lxml
python-lxml-debuginfo
python-lxml-help

How to mitigate CVE-2024-37388

Install updates from vendor's website.

Lxml - update to 4.9.1
python-lxml - addressed in versions 4.5.2-9, 4.7.1-6
python-lxml-debugsource - addressed in versions 4.5.2-9, 4.7.1-6
python3-lxml - addressed in versions 4.5.2-9, 4.7.1-6
python2-lxml - update to 4.5.2-9
python-lxml-debuginfo - addressed in versions 4.5.2-9, 4.7.1-6
python-lxml-help - addressed in versions 4.5.2-9, 4.7.1-6

External References

Related Security Bulletins