Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-58340

7.5 · HIGH
Published Jan 12, 2026 langchain CWE-1333 EPSS 0.43% (36th pctl)

Overview

CVE-2024-58340 is a high-severity vulnerability affecting langchain langchain. It was published on January 12, 2026 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the MRKLOutputParser.parse() method (libs/langchain/langchain/agents/mrkl/output_parser.py). The parser applies a backtracking-prone regular expression when extracting tool actions from model output. An attacker who can supply or influence the parsed text (for example via prompt injection in downstream applications that pass LLM output directly into MRKLOutputParser.parse()) can trigger excessive CPU consumption by providing a crafted payload, causing significant parsing delays and a denial-of-service condition.

Remediation

Check the references section for vendor advisories and patches from langchain. Update langchain to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
langchain langchain 0 Affected

Frequently Asked Questions

What is CVE-2024-58340?

CVE-2024-58340 is a high-severity vulnerability affecting langchain langchain. It was published on January 12, 2026 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2024-58340?

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-58340?

Check the references section for vendor advisories and patches from langchain. Update langchain to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-58340?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-58340 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.