# CVE-2023-36189: langchain SQL Injection vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.24%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-07-06T00:00:00.000Z
- Modified: 2026-06-17T06:05:52.140Z
- Also known as: GHSA-7q94-qpjr-xpgm, PYSEC-2023-110
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## Description

SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- langchain (PyPI): before 0.0.247
- langchain langchain: 0.0.64

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/hwchase17/langchain/issues/5923> (exploit, web)
- <https://github.com/langchain-ai/langchain/issues/5923> (exploit, evidence, web)
- <https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f> (web)
- <https://github.com/hwchase17/langchain/pull/6051> (patch, web)
- <https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-36189> (advisory)
- <https://github.com/langchain-ai/langchain/pull/8425> (fix, web)
- <https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751> (web)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-110.yaml> (web)
- <https://github.com/advisories/GHSA-7q94-qpjr-xpgm> (advisory)

## Sources

- CVE List: [CVE-2023-36189](https://www.cve.org/CVERecord?id=CVE-2023-36189), CVE Terms of Use, modified 2024-10-15
- GitHub Advisory Database: [GHSA-7q94-qpjr-xpgm](https://github.com/advisories/GHSA-7q94-qpjr-xpgm), CC-BY-4.0, modified 2024-10-21
- NVD: [CVE-2023-36189](https://nvd.nist.gov/vuln/detail/CVE-2023-36189), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-110](https://osv.dev/vulnerability/PYSEC-2023-110), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2023-36189 · Whole record: https://cve.day/CVE-2023-36189.json · Rebuilt by cve.day 2026-11-25T22:58:25.469Z
