High severity · published Jul 6, 2023
CVE-2023-36189
SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component
7.5
CVSS
1.2%
EPSS
No
On KEV
Description
SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 69% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LA
Langchain · Langchain
0.0.64 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-36189
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-36189
gist.github.com
https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f
Exploit
https://github.com/hwchase17/langchain/issues/5923
Patch
https://github.com/hwchase17/langchain/pull/6051
github.com
https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841
More from Langchain
10.0
CVE-2025-2828
SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain
9.8
CVE-2024-8309
SQL Injection in langchain-ai/langchain
9.8
CVE-2024-7042
Prompt Injection in langchain-ai/langchainjs Leading to SQL Injection
9.8
CVE-2024-2057
LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery
9.8
CVE-2023-39631
An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library
