CVE-2024-7962
Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgpt
- State
- Published
- Severity
- 7.5 High
- Published
- Oct 29, 2024
- Updated
- Oct 29, 2024
- Reserved
- Aug 19, 2024
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 7.5 High | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | @huntr_ai |
Weaknesses
- CWE-29 Path Traversal: '\..\filename'
Affected Products
| Product | Versions |
|---|---|
gaizhenbiao/chuanhuchatgptgaizhenbiao |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.