What’s Vulnerable › Vulnerabilities
CVE-2024-7962: Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgpt
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-10-29 · updated 2026-06-17
- Weakness: CWE-29
Description
An arbitrary file read vulnerability exists in gaizhenbiao/chuanhuchatgpt version 20240628 due to insufficient validation when loading prompt template files. An attacker can read any file that matches specific criteria using an absolute path. The file must not have a .json extension and, except for the first line, every other line must contain commas. This vulnerability allows reading parts of format-compliant files, including code and log files, which may contain highly sensitive information such as account credentials.
Affected products
- gaizhenbiao/chuanhuchatgpt: 20240628
References
- https://github.com/gaizhenbiao/chuanhuchatgpt/commit/2836fd1db3efcd5ede63c0e7fbbdf677730dbb51
- https://huntr.com/bounties/83f0a8e1-490c-49e7-b334-02125ee0f1b1
Get alerted when CVE-2024-7962 or the next vulnerability affects your stack