patchminder
Proof of concept · GitHub CVE-2024-3095

Remote code executionin LangChain AI LangChain.

Published 6 Jun 2024 · Updated 1 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Medium 4.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.7% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 0.2.9 or later
In plain words

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.

What to do now
  • Upgrade langchain-community (PyPI) to 0.2.9 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
langchain-ai/langchain
Not confirmed
Not confirmed
CVE record
langchain-community (PyPI)
before 0.2.9
0.2.9
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 29 Mar 2024
    CVE ID reserved by @huntr_ai.
  2. 6 Jun 2024
    Published in the CVE List.
  3. 1 Aug 2024
    CVE record last updated.
  4. 12 Nov 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs founddexteon/langchain-webresearch-ssrf-cve-2024-30950 stars · created 12 Nov 2026CVE-2024-3095: SSRF in LangChain Web Research Retriever. Lab-only PoC, detection, remediation. Authorized testing only.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other LangChain vulnerabilities

Same weakness: Server-side request forgery

All CWE-918 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-3095: Remote code execution in LangChain AI LangChain. https://patchminder.com/cve/cve-2024-3095/ (accessed 5 December 2026).