# CVE-2024-5186: Server Side Request Forgery (SSRF) in imartinez/privategpt

- Severity: High 8.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- 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.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-06T18:19:57.023Z
- Modified: 2026-06-17T08:15:22.153Z
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

A Server-Side Request Forgery (SSRF) vulnerability exists in the file upload section of imartinez/privategpt version 0.5.0. This vulnerability allows attackers to send crafted requests that could result in unauthorized access to the local network and potentially sensitive information. Specifically, by manipulating the 'path' parameter in a file upload request, an attacker can cause the application to make arbitrary requests to internal services, including the AWS metadata endpoint. This issue could lead to the exposure of internal servers and sensitive data.

(As written by CVE List.)

## Affected

- imartinez imartinez/privategpt: from unspecified up to latest
- imartinez imartinez_privategpt: all
- pribai privategpt: 0.5.0

## Every score

- @huntr_ai: CVSS:3.0 8.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/5f421645-3546-4a67-a421-ee1bc4b6e3a3> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2024-5186](https://www.cve.org/CVERecord?id=CVE-2024-5186), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-5186](https://nvd.nist.gov/vuln/detail/CVE-2024-5186), Public domain, modified 2026-06-17

---

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