INCIDENT MAP

Browse / Direct Prompt Injection / CVE-2023-32785

Langchain SQL Injection vulnerability

CVE-2023-32785 ยท 2023-10-21 critical

Class
Direct Prompt Injection (filed by a model that read the advisory)
Technique
SQL and query injection
Also involves
Improper Output Handling
Affected
langchain (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

How it works, in short

Prompt text steers the chain to build SQL that the SQL service runs unsafely, letting an attacker execute arbitrary commands against the database. (Our summary, written by a model. The source text is below.)

Details

In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.

References

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