CVE-2024-3095: langchain-ai langchain-ai/langchain Server-Side Request Forgery (SSRF)
Vulnerability summary
CVE-2024-3095 is a high (CVSS 7.7) Server-Side Request Forgery (SSRF) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.69% chance of exploitation in the next 30 days, higher than 51.9% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 06-06-2024PublishedVulnerability first disclosed.
- 01-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated4.8MediumCVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- NVDNIST4.8MediumCVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS trend
Probability
0.69%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
0.00 pp
From 0.69% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Langchain1 product
- langchain≥ 0.1.5, < 0.2.9
Langchain-ai1 product
- langchain-ai/langchain≥ unspecified, ≤ latest
PyPI1 product
- langchain-community< 0.2.9
3 vendors · 3 products