# CVE-2024-7962: Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgpt

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-29T12:47:58.697Z
- Modified: 2026-06-17T08:21:33.677Z
- Also known as: PYSEC-2024-112
- Weaknesses: CWE-22, CWE-29
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- gaizhenbiao gaizhenbiao/chuanhuchatgpt: from unspecified before 20240918
- gaizhenbiao gaizhenbiao\/chuanhuchatgpt: before 20240918
- gaizhenbiao chuanhuchatgpt: 20240628
- chuanhuchatgpt (PyPI): before 2836fd1db3efcd5ede63c0e7fbbdf677730dbb51; all versions

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/83f0a8e1-490c-49e7-b334-02125ee0f1b1> (exploit, third-party-advisory, web)
- <https://github.com/gaizhenbiao/chuanhuchatgpt/commit/2836fd1db3efcd5ede63c0e7fbbdf677730dbb51> (fix, patch)

## Sources

- CVE List: [CVE-2024-7962](https://www.cve.org/CVERecord?id=CVE-2024-7962), CVE Terms of Use, modified 2024-10-29
- NVD: [CVE-2024-7962](https://nvd.nist.gov/vuln/detail/CVE-2024-7962), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-112](https://osv.dev/vulnerability/PYSEC-2024-112), CC-BY-4.0, modified 2024-10-31

---

Page: https://cve.day/CVE-2024-7962 · Whole record: https://cve.day/CVE-2024-7962.json · Rebuilt by cve.day 2026-11-25T22:58:47.487Z
