CVE-2024-52787 libre-chat Path Traversal vulnerability

Critical 9.1 Published Updated

Attackers can execute path traversal via crafted filenames in the upload_documents method of libre-chat, potentially reading or modifying arbitrary files.

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

CVE-2024-52787 is a critical path traversal vulnerability in n/a, published on 25 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue in the upload_documents method of libre-chat v0.0.6 allows attackers to execute a path traversal via supplying a crafted filename in an uploaded file.

Weakness: CWE-22

Which versions are affected by CVE-2024-52787?

3 open source packages ship an affected version, including libre-chat.

PackageAffectedFixed in
libre-chat PyPIAll versions to 0.0.6None
libre-chat PyPIAll versions to 0.0.6None
libre-chat PyPIAll versions to 0.0.6None

How do I fix CVE-2024-52787?

No fix has been published for CVE-2024-52787 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-52787 being exploited?

There is no known exploitation of CVE-2024-52787 in the wild and no public exploit code.

Sources

Also known as GHSA-3864-rp2m-2qfj, PYSEC-2026-1537.

Is CVE-2024-52787 in your software?

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

Check your SBOMs for free