gcdRadar
archive/Patch now/AIR-2026-0938
closedclosed 12 Jan 2026Patch now2 Disclosed vulnerabilityAI

CVE-2024-58340: LangChain MRKLOutputParser regular expression denial-of-service

LangChain

LangChain contains a regular expression denial-of-service vulnerability in its MRKLOutputParser method. Crafted model outputs can trigger excessive CPU consumption.

disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why

CVSS
8.7
EPSS
<0.01 · top 58% · 2026-11-13
fix status
Fix status unknown
first report
12 Jan 2026
last update
12 Jan 2026

Timeline · 1

  1. 12 Jan 2026CVE-2024-58340: LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the…

Sources · 1

Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.

Classification

AI role
Attack on AI
categories
Infrastructure vulnerability
severity
2 · Disclosed vulnerability
fix status
Fix status unknown
targets
Framework / tooling
owasp llm top 10
LLM03:2025 Supply Chain
mitre atlas
no technique for these categories
tags
redos
dates
happened 12 Jan 2026 · first reported 12 Jan 2026
origin
NVD
Vulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
record
confidence 0.95 · created 2026-10-18 10:04Z · updated 2026-10-18 10:04Z

Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned

Copy a brief

This record as a short Markdown brief, for a ticket, a chat or a coding agent.

the brief as text
# CVE-2024-58340: LangChain MRKLOutputParser regular expression denial-of-service

https://gcdradar.vercel.app/incidents/cve-2024-58340-langchain-mrkloutputparser-regular-expression · AIR-2026-0938 · closed 2026-01-12

- Lane: Patch now
- Severity: 2 (Disclosed vulnerability)
- Fix status: Fix status unknown
- First reported: 2026-01-12
- AI role: Attack on AI
- Products: LangChain
- CVE ids: CVE-2024-58340
- CVSS: 8.7

## Summary

LangChain contains a regular expression denial-of-service vulnerability in its MRKLOutputParser method. Crafted model outputs can trigger excessive CPU consumption.

## What to do

No action recorded; read the sources below and the vendor's advisory.

## Latest updates

- 2026-01-12: CVE-2024-58340: LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the… (https://nvd.nist.gov/vuln/detail/CVE-2024-58340)

## Sources

- 2026-01-12 NVD: CVE-2024-58340: LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the… https://nvd.nist.gov/vuln/detail/CVE-2024-58340

Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.

Related

  1. closed3.7
    LangChain family CVE-2026-26013: LangChain ChatOpenAI SSRF via Image Token Counting

    Patch now · Disclosed · since 11 Feb 2026 · updated 11 Feb 2026 · CVE-2026-26013

    AI
  2. closed9.3
    LangChain family LangChain serialization injection vulnerability CVE-2025-68664

    Patch now · Disclosed · since 23 Dec 2025 · CVE-2025-68664

    AI
  3. closed5.1
    LangChain family CVE-2026-55443: LangChain: Path traversal and sandbox escape in file loaders

    Patch now · Disclosed · since 16 Jun 2026 · updated 22 Jun 2026 · CVE-2026-55443

    AI
  4. closed8.2
    LangChain family CVE-2026-44843: LangChain vulnerable to unsafe deserialization

    Patch now · Disclosed · since 8 May 2026 · updated 26 May 2026 · CVE-2026-44843

    AI
  5. closed3.1
    LangChain family LangChain langchain-openai TOCTOU DNS rebinding vulnerability

    Patch now · Disclosed · since 24 Apr 2026 · CVE-2026-41488

    AI
  6. closed6.5
    LangChain family LangChain URL validation SSRF vulnerability in HTMLHeaderTextSplitter

    Patch now · Disclosed · since 24 Apr 2026 · CVE-2026-41481

    AI