CVE-2024-3095 SSRF in Langchain Web Research Retriever in langchain-ai/langchain
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
A Server-Side Request Forgery (SSRF) vulnerability exists in the Web Research Retriever component of langchain-ai/langchain version 0.1.5. The vulnerability arises because the Web Research Retriever does not restrict requests to remote internet addresses, allowing it to reach local addresses. This flaw enables attackers to execute port scans, access local services, and in some scenarios, read instance metadata from cloud environments. The vulnerability is particularly concerning as it can be exploited to abuse the Web Explorer server as a proxy for web attacks on third parties and interact with servers in the local network, including reading their response data. This could potentially lead to arbitrary code execution, depending on the nature of the local services. The vulnerability is limited to GET requests, as POST requests are not possible, but the impact on confidentiality, integrity, and availability is significant due to the potential for stolen credentials and state-changing interactions with internal APIs.
Upgrade path
3 packages: 2 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| @langchain langchain | >= 0.1.5, < 0.2.9; All versions | 0.2.9 | Partially fixed |
| langchain-ai/langchain | <= latest | after latest | Fixed |
| pypi langchain-community(PyPI) | < 0.2.9; = 0.0.1; = 0.0.1rc1; = 0.0.1rc2 +46 more | 0.2.9 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi langchain-community(PyPI) | < 0.2.9 | 0.2.9 |
| pypi langchain-community(PyPI) | = 0.0.1 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.10 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.11 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.12 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.13 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.14 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.15 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.16 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.17 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.18 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.19 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.1rc1 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.1rc2 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.2 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.20 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.21 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.22 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.23 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.24 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.25 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.26 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.27 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.28 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.29 | No fix listed |
Show 28 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi langchain-community(PyPI) | = 0.0.3 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.30 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.31 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.32 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.33 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.34 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.35 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.36 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.37 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.38 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.4 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.5 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.6 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.7 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.8 | No fix listed |
| pypi langchain-community(PyPI) | = 0.0.9 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.0 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.0rc1 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.1 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.2 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.3 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.4 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.5 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.6 | No fix listed |
| pypi langchain-community(PyPI) | = 0.2.7 | No fix listed |
| langchain-ai/langchain | <= latest | No fix listed |
| @langchain langchain | All versions | No fix listed |
| @langchain langchain | >= 0.1.5, < 0.2.9 | 0.2.9 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com
- huntr.com exploit third-party-advisory
- pypi.org product
- github.com vendor-advisory