Vulnerabilities

Vulnerability · CVE-2023-32785

sync 2026-10-27T17:29:59Z

Published Oct 21, 2023 · catalog updated Oct 27, 2026 · sync 2026-10-27T17:29:59Z

Last checked Nov 6, 2026. A connected source was read within the last 7 days.

Open the advisory

Exploitation likelihood is not on this record for CVE-2023-32785. A missing EPSS score is not a low risk. Compare sync 2026-10-27T17:29:59Z with the linked advisory before you change production.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (sync 2026-10-27T17:29:59Z).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
  • EPSS is missing. A missing score is not a low risk.
Severity
Critical9.8
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
Not in the current FIRST EPSS dataset
Remediation
Version ranges on file
Affected products
PyPI langchain · pypi langchain

In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain." -date: "2024-11-07" +date: "2026-10-27" pubdate: "2023-10-21" affected_range: "<0.0.247" fixed_versions: @@ -18,9 +18,10 @@ solution: "Upgrade to version 0.0.247 or above." urls: - "https://nvd.nist.gov/vuln/detail/CVE-2023-32785" - "https://github.com/advisories/GHSA-8h

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • PyPI langchain0 → 0.0.247
  • pypi langchain<0.0.247

How to fix CVE-2023-32785

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

Exploitation likelihood is not on this record for CVE-2023-32785. A missing EPSS score is not a low risk. Compare sync 2026-10-27T17:29:59Z with the linked advisory before you change production.

Which versions are affected?

Compare what you have installed with 0 → 0.0.247, <0.0.247. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-74: Injection; CWE-89: SQL Injection. EPSS is absent from the current FIRST dataset. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 27, 2026 · PyPA Advisory Database

    Fix available

    langchain fixed in 0.0.247

  2. Oct 27, 2026 · PyPA Advisory Database

    Fix available

    langchain fixed in 0.0.247

  3. Oct 27, 2026 · PyPA Advisory Database

    Updated

    In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.

  4. Oct 27, 2026 · GitLab Advisory Database

    Detected

    In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain." -date: "2024-11-07" +date: "2026-10-27" pubdate: "2023-10-21" affected_range: "<0.0.247" fixed_versions: @@ -18,9 +18,10 @@ solution: "Upgrade to version 0.0.247 or above." urls: - "https://nvd.nist.gov/vuln/detail/CVE-2023-32785" - "https://github.com/advisories/GHSA-8h

Sources

  • CVE.orgVulnerability recordCVE-2023-32785

    Official CVE identifier

    cve.org
  • GitLab Advisory DatabasePackage advisorypypi/langchain/CVE-2023-32785.yml

    In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain." -date: "2024-11-07" +date: "2026-10-27" pubdate: "2023-10-21" affected_range: "<0.0.247" fixed_versions: @@ -18,9 +18,10 @@ solution: "Upgrade to version 0.0.247 or above." urls: - "https://nvd.nist.gov/vuln/detail/CVE-2023-32785" - "https://github.com/advisories/GHSA-8h

    gitlab.com
  • PyPA Advisory DatabasePackage advisoryGHSA-8h5w-f6q9-wg35

    Langchain SQL Injection vulnerability

    osv.dev

References

Freshness

Last verified in this catalog Nov 6, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • PyPA Advisory DatabaseOct 28, 2026
  • CVE.orgOct 27, 2026
  • GitLab Advisory DatabaseOct 27, 2026