CVE-2024-3095
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.
Weakness
- CWE-918: Server-Side Request Forgery
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2024-06-07 |
Timeline
- 2024-06-06Published by the CNA18:28 UTC
- 2024-06-06GitHub advisory published (GHSA-q25c-c977-4cmh)same day
- 2024-06-07CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-q25c-c977-4cmh, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI langchain-community | before 0.2.9 | 0.2.9 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| langchain langchain | from 0.1.5 before 0.2.9fixed in 0.2.9 | 0.2.9 |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-3095'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-3095'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-3095'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-3095'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).