CVE-2024-3234 Path Traversal in gaizhenbiao/chuanhuchatgpt

Critical 9.8 Published Updated

Attackers can exploit path traversal in an outdated Gradio component to access sensitive files like API keys in the chuanhuchatgpt application.

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

CVE-2024-3234 is a critical path traversal vulnerability in gaizhenbiao/chuanhuchatgpt, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The gaizhenbiao/chuanhuchatgpt application is vulnerable to a path traversal attack due to its use of an outdated gradio component. The application is designed to restrict user access to resources within the `web_assets` folder. However, the outdated version of gradio it employs is susceptible to path traversal, as identified in CVE-2023-51449. This vulnerability allows unauthorized users to bypass the intended restrictions and access sensitive files, such as `config.json`, which contains API keys. The issue affects the latest version of chuanhuchatgpt prior to the fixed version released on 20240305.

Weakness: CWE-22

Which versions are affected by CVE-2024-3234?

It affects 1 product.

Products include Gaizhenbiao Chuanhuchatgpt.

How do I fix CVE-2024-3234?

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

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-8q7w-vr6v-q7r2.

Is CVE-2024-3234 in your software?

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

Check your SBOMs for free