{"id":"CVE-2024-1455","published":"2024-03-26T14:03:46Z","modified":"2024-08-15T15:56:19Z","title":"Billion Laughs Attack leading to DoS in langchain-ai/langchain","vendor":"langchain-ai","product":"langchain-ai/langchain","tier":"tail","description":{"text":"A vulnerability in the langchain-ai/langchain repository allows for a Billion Laughs Attack, a type of XML External Entity (XXE) exploitation. By nesting multiple layers of entities within an XML document, an attacker can cause the XML parser to consume excessive CPU and memory resources, leading to a denial of service (DoS). ","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00764,"percentile":0.56308,"provenance":"source"},"cwes":[{"id":"CWE-776","name":"Improper Restriction of Recursive Entity References in DTDs"}],"references":[{"url":"https://huntr.com/bounties/4353571f-c70d-4bfd-ac08-3a89cecb45b6","tags":[]},{"url":"https://github.com/langchain-ai/langchain/commit/727d5023ce88e18e3074ef620a98137d26ff92a3","tags":[]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":11.26},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"langchain-ai","affectedVersions":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","versions":[">= unspecified, < 0.1.35"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-15T15:55:06.717038Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langchain-core","vulnerableRanges":["<0.1.35"],"patched":["0.1.35"],"from":["GHSA-q84m-rmw3-4382","PYSEC-2026-1519"],"provenance":"source"}],"summary":{"text":"The flaw is a Billion Laughs (XML entity expansion) weakness in the langchain-ai/langchain repository, which is an XML External Entity-type issue in how XML documents are parsed. An attacker who can submit a crafted XML document containing deeply nested entity definitions can cause the parser to consume excessive CPU and memory, resulting in a denial of service; the attack requires only network access with no privileges or user interaction, though exploiting it is noted as high in complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:13Z"},"euvd":{"id":"EUVD-2024-0987","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-28088","published":"2024-03-03","fixed":"0.1.30","kev":false,"link":{"from":"CVE-2024-28088","to":"CVE-2024-1455","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain-core","fromFixed":"0.1.30","toFixed":"0.1.35","daysApart":23}]}},{"cve":"CVE-2024-1455","published":"2024-03-26","fixed":"0.1.35","kev":false},{"cve":"CVE-2024-10940","published":"2025-03-20","fixed":"0.3.15","kev":false,"link":{"from":"CVE-2024-1455","to":"CVE-2024-10940","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain-core","fromFixed":"0.1.35","toFixed":"0.1.53","daysApart":359}]}},{"cve":"CVE-2025-65106","published":"2025-11-21","fixed":"1.0.7","kev":false},{"cve":"CVE-2025-68664","published":"2025-12-23","fixed":"1.2.5","kev":false}],"package":"PyPI:langchain-core"}}