# CVE-2024-3095: SSRF in Langchain Web Research Retriever in langchain-ai/langchain

- Severity: Medium 4.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-06T18:28:56.403Z
- Modified: 2026-07-07T17:57:27.127Z
- Also known as: GHSA-q25c-c977-4cmh, PYSEC-2026-1516
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- langchain-ai langchain-ai/langchain: from unspecified up to latest
- langchain langchain: before *; from 0.1.5 before 0.2.9
- langchain-community (PyPI): before 0.2.9

## Every score

- @huntr_ai: CVSS:3.0 4.8 Medium `CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.0 4.8 Medium `CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 4.8 Medium `CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/e62d4895-2901-405b-9559-38276b6a5273> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-3095> (advisory)
- <https://github.com/langchain-ai/langchain/pull/24451> (web)
- <https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7> (web)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/langchain-ai/langchain/releases/tag/langchain-community%3D%3D0.2.9> (web)
- <https://pypi.org/project/langchain-community> (package)
- <https://github.com/advisories/GHSA-q25c-c977-4cmh> (advisory)

## Sources

- CVE List: [CVE-2024-3095](https://www.cve.org/CVERecord?id=CVE-2024-3095), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-q25c-c977-4cmh](https://github.com/advisories/GHSA-q25c-c977-4cmh), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-3095](https://nvd.nist.gov/vuln/detail/CVE-2024-3095), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1516](https://osv.dev/vulnerability/PYSEC-2026-1516), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-3095 · Whole record: https://cve.day/CVE-2024-3095.json · Rebuilt by cve.day 2026-11-25T22:58:41.509Z
