CRITICAL🇵🇱 Wersja polska

CVE-2024-3234

CVSS 9.8v3.1pub. 2024-06-06upd. 2024-11-21

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.

🤖 AI Analysis
How it works

The application assumes that users have access only to resources located in the `web_assets` folder. However, the used version of the gradio library is vulnerable to path traversal (previously identified as CVE-2023-51449), which allows escaping that directory. An unauthenticated attacker can craft an appropriate HTTP request and gain access to any files on the server, for example the `config.json` file containing API keys.

Impact

An unauthenticated attacker can read sensitive application configuration files, including API keys, which may lead to account takeover, unauthorized use of AI services, and further security breach of the environment.

Mitigation & patch

Update the ChuanhuChatGPT application to the version released after 2024-03-05, which includes the patch available in commit 6b8f7db347b390f6f8bd07ea2a4ef01a47382f00. It is also recommended to replace all API keys stored in the `config.json` file that may have been exposed.

Who is affected

All versions of the gaizhenbiao/ChuanhuChatGPT application preceding the patched version released on 2024-03-05

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Gaizhenbiao Chuanhuchatgpt

    APP
    Gaizhenbiao
    < 20240305
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Path Traversal
CWE
References

Related vulnerabilities

CVE-2024-5982CRITICAL9.8PL ✓ten sam produkt

Path Traversal i RCE w ChuanhuChatGPT — niezabezpieczone dane wejściowe

CVE-2024-5823CRITICAL9.1PL ✓ten sam produkt

Nadpisanie plików konfiguracyjnych w ChuanhuChatGPT (file overwrite)

CVE-2024-6037CRITICAL9.1PL ✓ten sam produkt

Tworzenie arbitralnych folderów na serwerze w ChuanhuChatGPT

CVE-2024-6036CRITICAL9.1PL ✓ten sam produkt

Nieautoryzowany restart serwera w ChuanhuChatGPT poprzez endpoint /queue/join

CVE-2024-5822CRITICAL9.8PL ✓ten sam produkt

SSRF w interfejsie upload ChuanhuChatGPT — dostęp do zasobów wewnętrznych