Browse / Direct Prompt Injection / CVE-2023-32786
Langchain Server-Side Request Forgery vulnerability
- Class
- Direct Prompt Injection (filed by a model that read the advisory)
- Technique
- Server-side request forgery
- Also involves
- Tool and Agent Misuse
- Affected
- langchain (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 0.7% chance of exploitation in 30 days
How it works, in short
Prompt injection makes the service fetch an attacker-chosen URL, and the retrieved content can then be injected into downstream tasks. (Our summary, written by a model. The source text is below.)
Details
In Langchain before 0.0.329, prompt injection allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF and potentially injecting content into downstream tasks.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-32786
- https://github.com/langchain-ai/langchain/pull/12747
- https://gist.github.com/rharang/d265f46fc3161b31ac2e81db44d662e1
- https://github.com/langchain-ai/langchain
- https://github.com/langchain-ai/langchain/releases/tag/v0.0.329
Source: GitHub Advisory Database, used under CC BY 4.0.