CVE-2024-6255 Path Traversal in gaizhenbiao/chuanhuchatgpt

High 8.2 Published Updated

Attackers can delete arbitrary JSON files on the server via path traversal, causing system disruption or data loss in ChuanhuChatGPT.

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

CVE-2024-6255 is a high-severity path traversal vulnerability in gaizhenbiao/chuanhuchatgpt, published on 31 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability in the JSON file handling of gaizhenbiao/chuanhuchatgpt version 20240410 allows any user to delete any JSON file on the server, including critical configuration files such as `config.json` and `ds_config_chatbot.json`. This issue arises due to improper validation of file paths, enabling directory traversal attacks. An attacker can exploit this vulnerability to disrupt the functioning of the system, manipulate settings, or potentially cause data loss or corruption.

Weakness: CWE-22

Which versions are affected by CVE-2024-6255?

1 open source package ship an affected version, including chuanhuchatgpt. It affects 1 product.

PackageAffectedFixed in
chuanhuchatgpt PyPIAll versionsNone

Products include Gaizhenbiao Chuanhuchatgpt.

How do I fix CVE-2024-6255?

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

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

Sources

Also known as GHSA-53mw-8pff-677j, PYSEC-2024-73.

Is CVE-2024-6255 in your software?

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

Check your SBOMs for free