# CVE-2024-4321: Local File Inclusion (LFI) 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.60%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-16T09:03:46.604Z
- Modified: 2026-06-17T08:01:40.127Z
- Also known as: PYSEC-2024-267
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

A Local File Inclusion (LFI) vulnerability exists in the gaizhenbiao/chuanhuchatgpt application, specifically within the functionality for uploading chat history. The vulnerability arises due to improper input validation when handling file paths during the chat history upload process. An attacker can exploit this vulnerability by intercepting requests and manipulating the 'name' parameter to specify arbitrary file paths. This allows the attacker to read sensitive files on the server, leading to information leakage, including API keys and private information. The issue affects version 20240310 of the application.

(As written by CVE List.)

## Affected

- gaizhenbiao gaizhenbiao/chuanhuchatgpt: from unspecified up to latest
- chuanhuchatgpt_project chuanhuchatgpt: *
- gaizhenbiao chuanhuchatgpt: 20240310
- chuanhuchatgpt (PyPI): up to 20240310

## 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`
- PyPA Advisory Database: 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`

## References

- <https://huntr.com/bounties/19a16f8e-3d92-498f-abc9-8686005f067e> (exploit, evidence, third-party-advisory)

## Sources

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

---

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