CVE-2024-5186 Server Side Request Forgery (SSRF) in imartinez/privategpt
Attackers can exploit SSRF in file uploads to access internal networks and sensitive data via crafted path parameters.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-5186?
CVE-2024-5186 is a high-severity server-side request forgery vulnerability in imartinez/privategpt, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-918
Which versions are affected by CVE-2024-5186?
It affects 1 product.
Products include Pribai Privategpt.
How do I fix CVE-2024-5186?
No fix has been published for CVE-2024-5186 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2024-5186 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5186 exists.
Other vulnerabilities in imartinez/privategpt
- CVE-2024-4343 Python Command Injection in imartinez/privategpt
- CVE-2024-12063 Denial of Service in imartinez/privategpt
- CVE-2024-8018 Denial of Service (DOS) in imartinez/privategpt
- CVE-2024-3403 Local File Inclusion in imartinez/privategpt
- CVE-2024-3851 Unrestricted File Upload Leading to XSS in imartinez/privategpt
Sources
Also known as GHSA-p7p2-4qrf-46qf.