---
title: "CVE-2023-32785: Langchain SQL Injection vulnerability"
url: https://erroneo.us/security/cve/CVE-2023-32785/
description: "CVE-2023-32785 (langchain (PyPI)): Langchain SQL Injection vulnerability"
type: vulnerability-record
section: "Security Digest"
date_published: 2023-10-21
date_modified: 2024-11-07
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2023-32785"
kev: false
cvss: 9.8
epss: null
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2023-32785: Langchain SQL Injection vulnerability

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog. That can change quickly after a public write-up; re-check if you are affected.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes langchain (PyPI) < 0.0.247, fixed in 0.0.247 . Check your lockfile, including transitive dependencies.

## What it is

Langchain SQL Injection vulnerability

## Affected packages

- PyPI `langchain` < 0.0.247 → fixed: 0.0.247

## Severity

- GitHub CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).

## Sources

- [GitHub Advisory GHSA-8h5w-f6q9-wg35](https://github.com/advisories/GHSA-8h5w-f6q9-wg35)
- [CVE.org record CVE-2023-32785](https://www.cve.org/CVERecord?id=CVE-2023-32785)
- [NVD entry CVE-2023-32785](https://nvd.nist.gov/vuln/detail/CVE-2023-32785)
- [gist.github.com](https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f)
- [github.com](https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841)

---
Source page: https://erroneo.us/security/cve/CVE-2023-32785/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
