CVE-2024-3403 Local File Inclusion in imartinez/privategpt

High 7.5 Published Updated

Attackers can read arbitrary files via local file inclusion in PrivateGPT, potentially leading to remote code execution and data disclosure.

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-3403?

CVE-2024-3403 is a high-severity path traversal vulnerability in imartinez/privategpt, published on 16 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

imartinez/privategpt version 0.2.0 is vulnerable to a local file inclusion vulnerability that allows attackers to read arbitrary files from the filesystem. By manipulating file upload functionality to ingest arbitrary local files, attackers can exploit the 'Search in Docs' feature or query the AI to retrieve or disclose the contents of any file on the system. This vulnerability could lead to various impacts, including but not limited to remote code execution by obtaining private SSH keys, unauthorized access to private files, source code disclosure facilitating further attacks, and exposure of configuration files.

Weakness: CWE-22

Which versions are affected by CVE-2024-3403?

It affects 1 product.

Products include Pribai Privategpt.

How do I fix CVE-2024-3403?

No fix has been published for CVE-2024-3403 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-3403 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3403 exists.

Sources

Also known as GHSA-8gh6-hmh2-v8c4.

Is CVE-2024-3403 in your software?

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

Check your SBOMs for free