INCIDENT MAP

Browse / Improper Output Handling / CVE-2023-38860

LangChain vulnerable to arbitrary code execution

CVE-2023-38860 ยท 2023-08-15 critical

Class
Improper Output Handling (filed by a model that read the advisory)
Technique
Code and command execution
Also involves
Direct Prompt Injection, Tool and Agent Misuse
Affected
langchain (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.4% chance of exploitation in 30 days

How it works, in short

Prompt text can steer the model into producing code that the application evaluates without restriction, so the attacker's code runs on the host. (Our summary, written by a model. The source text is below.)

Details

An issue in LangChain prior to v.0.0.247 allows a remote attacker to execute arbitrary code via the prompt parameter.

References

Source: GitHub Advisory Database, used under CC BY 4.0.