VYPR
High severityNVD Advisory· Published Jun 7, 2024· Updated Oct 30, 2024

CVE-2024-37388

CVE-2024-37388

Description

An XML External Entity (XXE) vulnerability in the ebookmeta.get_metadata function of lxml before v4.9.1 allows attackers to access sensitive information or cause a Denial of Service (DoS) via crafted XML input.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

An XXE vulnerability in ebookmeta's get_metadata function due to insecure lxml XML parsing allows attackers to read sensitive files or cause DoS via crafted ebook files.

Vulnerability

Overview

CVE-2024-37388 is an XML External Entity (XXE) vulnerability in the ebookmeta.get_metadata function of the ebookmeta Python library. The root cause is that the library uses lxml's XML parser without disabling external entity processing. When lxml is prior to version 4.9.1, the parser will resolve external entities defined in the XML input, leading to XXE [1][3].

Exploitation

An attacker can exploit this vulnerability by providing a specially crafted ebook file (e.g., an EPUB or FB2 file) that contains malicious XML with external entity references. The victim must process this file using the get_metadata function. No authentication is required beyond the ability to supply the file; the attack can be triggered locally or remotely if the application accepts user-uploaded ebook files [2][3].

Impact

Successful exploitation allows an attacker to read arbitrary files from the server's filesystem (information disclosure) or cause a denial of service (DoS) by including entities that consume excessive resources, such as through entity expansion or external resource requests [1][3].

Mitigation

The vulnerability is fixed by updating lxml to version 4.9.1 or later, which disables external entity resolution by default. Additionally, ebookmeta version 1.2.8 and later includes a fix that ensures safe XML parsing. Users should upgrade both libraries to the latest versions. No workarounds are documented [2][3].

AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
ebookmetaPyPI
< 1.2.81.2.8

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.