{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-36189","id":"CVE-2023-36189","title":"langchain SQL Injection vulnerability","description":"SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.","descriptionLong":"SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.","published":"2023-07-06T00:00:00.000Z","updated":"2026-10-28T02:30:29.209676731Z","reserved":"2023-06-21T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.247"],"fixed":["0.0.247"],"advisory":"GHSA-7q94-qpjr-xpgm"}],"cwes":["CWE-89"],"aliases":["GHSA-7q94-qpjr-xpgm","PYSEC-2023-110"],"references":[{"url":"https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f","tags":["x_transferred","web"]},{"url":"https://github.com/hwchase17/langchain/issues/5923","tags":["x_transferred","Exploit","report","web"]},{"url":"https://github.com/hwchase17/langchain/pull/6051","tags":["x_transferred","Patch","fix","web"]},{"url":"https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841","tags":["x_transferred","report","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36189.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36189","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchain/issues/5923","tags":["web","evidence"]},{"url":"https://github.com/langchain-ai/langchain/pull/8425","tags":["web","fix"]},{"url":"https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","tags":["web"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-110.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-7q94-qpjr-xpgm","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.01237,"epssPercentile":0.69729,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-36189","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36189","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-36189","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7q94-qpjr-xpgm","ok":true,"note":"GHSA-7q94-qpjr-xpgm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-36189","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}