Skip to content

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

HighCVSS 7.5 EPSS 0.79%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

3 packages: 1 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
pypi chuanhuchatgpt(PyPI) = 3.2.5; All versions No fix listed No fix yet
gaizhenbiao/chuanhuchatgpt < 20240918 20240918 Fixed
GaiZhenbiao ChuanhuChatGPT = 20240628 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi chuanhuchatgpt(PyPI) All versions No fix listed
pypi chuanhuchatgpt(PyPI) = 3.2.5 No fix listed
gaizhenbiao/chuanhuchatgpt < 20240918 20240918
GaiZhenbiao ChuanhuChatGPT = 20240628 No fix listed

References