LangChainPublished 6 Jul 2023NVD status: Modified

CVE-2023-36189

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

ComponentLangChain
Severityhigh (CVSS 7.5)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published (NVD)2023-07-06
Last modified2026-06-17
Affected versions
< 0.0.247
from the GitHub-reviewed advisory GHSA-7q94-qpjr-xpgm
Fixed in0.0.247
WeaknessCWE-89
CISA KEVnot listed

Versions, checked against NVD

NVD's analysis reads = 0.0.64. The ranges above come from the GitHub-reviewed advisory GHSA-7q94-qpjr-xpgm. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).

NVD description

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

What to do

  • Upgrade LangChain to 0.0.247 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources