Skip to content
MediumVulnerability

CVE-2024-1455: langchain-ai/langchain XML entity expansion denial of service via XML parsing

Identifier
CVE-2024-1455
Published
Record updated
View JSON
Affected
  • langchain-core < 0.1.35
Fixed in
0.1.35
  • released March 27, 2024, 1 day after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%

Summary

CVE-2024-1455 affects the langchain-ai/langchain repository and allows a Billion Laughs Attack, a form of XML External Entity (XXE) exploitation. An attacker nests multiple layers of entities in an XML document, causing the XML parser to consume excessive CPU and memory and leading to a denial of service (DoS). The weakness is classified as CWE-776, Improper Restriction of Recursive Entity References in DTDs.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.