CVE-2024-4321 json
Local File Inclusion (LFI) in gaizhenbiao/chuanhuchatgpt
published 2024-05-16 2 y ago modified 2026-06-17 4 mo ago also PYSEC-2024-267 , EUVD-2024-43964
- cvss
- 7.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/19a16f8e-3d92-498f-abc9-8686005f067e referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | chuanhuchatgpt | <=20240310 |
no fix listed |
Affected products
- gaizhenbiao gaizhenbiao/chuanhuchatgpt
- chuanhuchatgpt_project chuanhuchatgpt
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
huntr.com
/bounties/19a16f8e-3d92-498f-abc9-8686005f067e
exploit, third-party-advisory, evidence
Sources
- CVE List CVE-2024-4321
- NVD CVE-2024-4321
- OSV PYSEC-2024-267
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.