CVE-2023-29374
LangChain vulnerable to code injection
9.8
CRITICAL
CVSS 3.1
EPSS 3.8%
Description
In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.
How to fix CVE-2023-29374
To remediate CVE-2023-29374, upgrade the affected package to a fixed version below.
- PyPI/langchain—no fix listed
- PyPI/langchain—upgrade to 0.0.132 or later
Is CVE-2023-29374 being exploited?
Low — EPSS is 3.8%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, <= 0.0.131
- from 0, < 0.0.132
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |