{"id":"CVE-2023-36189","published":"2023-07-06T00:00:00Z","modified":"2024-10-15T18:34:19Z","title":"SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via…","vendor":null,"product":null,"tier":"tail","description":{"text":"SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01029,"percentile":0.62849,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f","tags":[]},{"url":"https://github.com/hwchase17/langchain/issues/5923","tags":[]},{"url":"https://github.com/hwchase17/langchain/pull/6051","tags":[]},{"url":"https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841","tags":[]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":12.57},{"name":"CVSS severity","points":5.25}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-10-15T17:29:03.890697Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langchain","vulnerableRanges":["<0.0.247"],"patched":["0.0.247"],"from":["GHSA-7q94-qpjr-xpgm","PYSEC-2023-110"],"provenance":"source"}],"summary":{"text":"A SQL injection flaw in langchain, affecting versions before v0.0.247, lives in its SQLDatabaseChain component. An attacker with network access can exploit it without authentication or user interaction to obtain sensitive information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:30Z"},"euvd":{"id":"EUVD-2023-0111","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langchain-ai-langchain-cve-2023-34541","children":[{"from":"CVE-2023-36189","to":"CVE-2024-38459","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/experimental/langchain_experimental/pal_chain/base.py"],"commits":["https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","https://github.com/langchain-ai/langchain/commit/ce0b0f22a175139df8f41cdcfb4d2af411112009"],"basis":"shared function","functions":["PALChain"]}]},{"from":"CVE-2023-36189","to":"CVE-2025-2828","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/langchain/langchain/agents/load_tools.py"],"commits":["https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f"],"basis":"shared function","functions":["_get_sleep"]}]}]}}