CVE-2025-8709 SQL Injection in langchain-ai/langchain
HighCVSS 7.3
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
Description
A SQL injection vulnerability exists in the langchain-ai/langchain repository, specifically in the LangGraph's SQLite store implementation. The affected version is langgraph-checkpoint-sqlite 2.0.10. The vulnerability arises from improper handling of filter operators ($eq, $ne, $gt, $lt, $gte, $lte) where direct string concatenation is used without proper parameterization. This allows attackers to inject arbitrary SQL, leading to unauthorized access to all documents, data exfiltration of sensitive fields such as passwords and API keys, and a complete bypass of application-level security filters.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi langgraph-checkpoint-sqlite(PyPI) | < 2.0.11 | 2.0.11 |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 1.0.0 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 1.0.1 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 1.0.2 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 1.0.3 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 1.0.4 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.0 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.1 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.10 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.2 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.3 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.4 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.5 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.6 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.7 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.8 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | = 2.0.9 | No fix listed |
| pypi langgraph-checkpoint-sqlite(PyPI) | <= 2.0.10 | No fix listed |
| langchain-ai/langchain | <= latest | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com
- huntr.com exploit
- pypi.org product
- github.com vendor-advisory