# CVE-2024-7962: PYSEC-2024-112 - An arbitrary file read vulnerability exists in gaizhenbiao/chuanhuchatgpt version 20240628 due to…

Source: https://junglewise.ai/threats/cve-2024-7962-pysec-2024-112-an-arbitrary-file-read-vulnerability-exists-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-10-29  
License: CC BY 4.0 with a link back

CVE-2024-7962 · Severity: low · CVSS 3.1 · Published 2024-10-29

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.

Technologies: [chuanhuchatgpt (PyPI)](https://junglewise.ai/threats/technologies/chuanhuchatgpt). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-7962 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-7962 being exploited in the wild.

**How severe is CVE-2024-7962?** Low severity, with a CVSS score of 3.1, published 29 October 2024.

**Which products and versions are affected?** chuanhuchatgpt (PyPI) GIT:introduced=0,fixed=2836fd1db3efcd5ede63c0e7fbbdf677730dbb51|ECOSYSTEM:introduced=0.

**Is there a fix for CVE-2024-7962?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2024-7962?** Check whether you run chuanhuchatgpt (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- chuanhuchatgpt (PyPI) GIT:introduced=0,fixed=2836fd1db3efcd5ede63c0e7fbbdf677730dbb51|ECOSYSTEM:introduced=0

## Identifiers

- CVE-2024-7962
- PYSEC-2024-112

## Related threats

- [PYSEC-2025-99 - A Denial of Service (DoS) vulnerability exists in the file upload feature of…](https://junglewise.ai/threats/cve-2025-0191-pysec-2025-99-a-denial-of-service-dos-vulnerability-exists-in-the)
- [PYSEC-2025-98 - A Server-Side Request Forgery (SSRF) vulnerability was discovered in gaizhenbiao/chuanhuchatgpt…](https://junglewise.ai/threats/cve-2025-0188-pysec-2025-98-a-server-side-request-forgery-ssrf-vulnerability-was)
- [PYSEC-2025-97 - An authentication bypass vulnerability exists in gaizhenbiao/ChuanhuChatGPT, as of commit 3856d4f…](https://junglewise.ai/threats/cve-2024-9216-pysec-2025-97-an-authentication-bypass-vulnerability-exists-in)
- [PYSEC-2025-96 - An incorrect authorization vulnerability exists in gaizhenbiao/chuanhuchatgpt version git c91dbfc. The…](https://junglewise.ai/threats/cve-2024-9159-pysec-2025-96-an-incorrect-authorization-vulnerability-exists-in)
- [PYSEC-2025-95 - A stored cross-site scripting (XSS) vulnerability exists in the gaizhenbiao/chuanhuchatgpt repository…](https://junglewise.ai/threats/cve-2024-9107-pysec-2025-95-a-stored-cross-site-scripting-xss-vulnerability)
