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

High 8.3 Published Updated

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.

Sources

Also known as GHSA-p7p2-4qrf-46qf.

Is CVE-2024-5186 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free