{"id":"CVE-2023-36189","aliases":["CVE-2023-36189","GHSA-7q94-qpjr-xpgm","PYSEC-2023-110"],"related":[],"kind":"vulnerability","state":"published","title":"langchain SQL Injection vulnerability","summary":"SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.","source":"cvelist"},{"lang":"en","text":"SQL injection vulnerability in langchain allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.","format":"markdown","source":"ghsa"},{"lang":"en","text":"SQL injection vulnerability in langchain v.0.0.64 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.","format":"markdown","source":"pysec"}],"published":"2023-07-06T00:00:00.000Z","modified":"2026-06-17T06:05:52.140Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.247"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.0.64"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:0.0.64:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.247"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"pysec"}],"references":[{"url":"https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hwchase17/langchain/issues/5923","tags":["exploit","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hwchase17/langchain/pull/6051","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36189","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/issues/5923","tags":["evidence","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/pull/8425","tags":["fix","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-110.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-7q94-qpjr-xpgm","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-15T17:29:03.890Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-36189","url":"https://www.cve.org/CVERecord?id=CVE-2023-36189","licence":"CVE Terms of Use","modified":"2024-10-15T18:34:19.405Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7q94-qpjr-xpgm","url":"https://github.com/advisories/GHSA-7q94-qpjr-xpgm","licence":"CC-BY-4.0","modified":"2024-10-21T21:01:20.237Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-36189","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36189","licence":"Public domain","modified":"2026-06-17T06:05:52.140Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-110","url":"https://osv.dev/vulnerability/PYSEC-2023-110","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:09.253Z"}],"updatedAt":"2026-11-25T22:58:25.469Z","epss":{"score":0.01237,"percentile":0.69929,"date":"2026-12-01T12:00:22.000Z"}}