Vulnerabilities · 2023 · Langchain
CVE-2023-36189
Langchain vulnerability
SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
Affected products
Langchain. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Langchain runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/hwchase17/langchain/pull/6051 · Patch
- github.com/hwchase17/langchain/issues/5923 · Exploit
- gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f
- github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841
- nvd.nist.gov/vuln/detail/CVE-2023-36189
- github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-110.yaml
- github.com/langchain-ai/langchain/issues/5923
- github.com/langchain-ai/langchain/pull/8425
- nvd.nist.gov/vuln/detail/CVE-2023-36189
- cve.org/CVERecord?id=CVE-2023-36189
More vulnerabilities in Langchain products
CVE-2025-68665CVE-2025-68664CVE-2025-2828CVE-2024-58340CVE-2024-46946CVE-2024-38459CVE-2024-28088CVE-2024-27444All 34
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.