Vulnerability Details : CVE-2023-36189
Potential exploit
SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
Vulnerability category: Sql Injection
Products affected by CVE-2023-36189
- cpe:2.3:a:langchain:langchain:0.0.64:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-36189
0.23%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 43 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-36189
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
134c704f-9b21-4f2e-91b3-4a467353bcc0 | 2024-10-15 |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2023-36189
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by:
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)
- nvd@nist.gov (Primary)
References for CVE-2023-36189
-
https://github.com/hwchase17/langchain/issues/5923
SQLDatabaseChain has SQL injection issue · Issue #5923 · hwchase17/langchain · GitHubExploit
-
https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841
SQLDatabaseChain has SQL injection issue · Issue #5923 · langchain-ai/langchain · GitHub
-
https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f
Markdown export of a Jupyter notebook demonstrating an SQL injection via LangChain · GitHub
-
https://github.com/hwchase17/langchain/pull/6051
Mitigate issue #5923 (Prompt injection -> SQL injection in SQLChain) by boazwasserman · Pull Request #6051 · hwchase17/langchain · GitHubPatch
Jump to