{
 "id": "AIR-2023-0041",
 "slug": "cve-2023-29374-langchain-code-injection-via-llmmathchain",
 "title": "CVE-2023-29374: LangChain code injection via LLMMathChain",
 "summary": "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.",
 "type": "attack_on_ai",
 "categories": [
  "infra_vuln",
  "prompt_injection"
 ],
 "severity": 2,
 "targets": [
  "framework_or_tooling"
 ],
 "products": [
  "langchain"
 ],
 "incident_date": "2023-04-05",
 "incident_date_precision": "day",
 "first_reported": "2023-04-05",
 "sources": [
  {
   "url": "https://github.com/advisories/GHSA-fprp-p869-w6q2",
   "publisher": "GitHub Advisory Database",
   "title": "CVE-2023-29374: LangChain vulnerable to code injection",
   "published_at": "2023-04-05"
  },
  {
   "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-29374",
   "publisher": "NVD",
   "title": "CVE-2023-29374: In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the…",
   "published_at": "2023-04-05"
  }
 ],
 "source_count": 2,
 "confidence": 0.95,
 "status": "published",
 "origin": "seed_ghsa",
 "tags": [
  "CVE-2023-29374",
  "langchain",
  "code-injection"
 ],
 "created_at": "2026-10-18T07:00:14.101Z",
 "updated_at": "2026-10-18T10:04:21.885Z"
}
