CVE-2023-29374

Critical

Description

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.

SeverityCritical
CVSS9.8
Exploit probability—
ProductLangchain
PublishedApr 5, 2023
First seenApr 5, 2023
Weakness typeCWE-74Injection

How to fix

Update
  • langchain0.0.132 or later

Affected products

ProductAffected versionsFixed in
langchain langchainv ≤ 0.0.131—
langchainPyPIv ≤ 0.0.131, v < 0.0.1320.0.132

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.