CVE-2024-2217 Improper Access Control in gaizhenbiao/chuanhuchatgpt

High 7.5 Published Updated

Attackers can access config.json to steal API keys and credentials due to improper access control in the chuanhuchatgpt web 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-2217?

CVE-2024-2217 is a high-severity vulnerability in gaizhenbiao/chuanhuchatgpt, published on 10 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

gaizhenbiao/chuanhuchatgpt is vulnerable to improper access control, allowing unauthorized access to the `config.json` file. This vulnerability is present in both authenticated and unauthenticated versions of the application, enabling attackers to obtain sensitive information such as API keys (`openai_api_key`, `google_palm_api_key`, `xmchat_api_key`, etc.), configuration details, and user credentials. The issue stems from the application's handling of HTTP requests for the `config.json` file, which does not properly restrict access based on user authentication.

Weakness: CWE-284

Which versions are affected by CVE-2024-2217?

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

PackageAffectedFixed in
chuanhuchatgpt PyPIAll versions to 20240121None

Products include Gaizhenbiao Chuanhuchatgpt.

How do I fix CVE-2024-2217?

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

Is CVE-2024-2217 being exploited?

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

Sources

Also known as GHSA-5j77-g9r7-hpx3, PYSEC-2024-316.

Is CVE-2024-2217 in your software?

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

Check your SBOMs for free