GCD AI RADAR
incidents/AIR-2023-0041

CVE-2023-29374: LangChain code injection via LLMMathChain

Attack on AI2 Disclosed vulnerabilityInfrastructure vulnerabilityPrompt injection

LangChain contains a code injection vulnerability via prompt injection attacks that execute arbitrary code using Python exec. The issue affects versions up to 0.0.131.

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

Details

type
Attack on AI
An AI model, agent or AI-powered product was the thing exploited, abused or leaked.
categories
  • Infrastructure vulnerabilityprimary
    CVEs and advisories in AI frameworks, inference servers, MCP servers, AI developer tools and hosting stacks.
  • Prompt injection
    Untrusted content (web pages, documents, emails, tool output) steers a model into ignoring its instructions.
mitre atlas
Both rows are derived from the type and categories (OWASP 2025 edition, ATLAS release 2026.09), not classified per record. How
severity
2 · Disclosed vulnerability
CVE or vendor advisory, patched or patchable, no confirmed exploitation.
targets
Framework / tooling
products
langchain
incident date
5 Apr 2023
first reported
5 Apr 2023
origin
GitHub Advisory Database
Vulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
classifier confidence
0.95 · published at or above 0.80; see the methodology
tags
CVE-2023-29374 · langchain · code-injection
record
created 2026-10-18 07:00Z · updated 2026-10-18 10:04Z · json

Sources · 2

  1. 2023-04-05
    CVE-2023-29374: LangChain vulnerable to code injection
    GitHub Advisory Database · github.com/advisories/GHSA-fprp-p869-w6q2
  2. 2023-04-05

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

Related incidents