HIGH7.5
PYSEC-2024-112
Quick fix
PYSEC-2024-112 — chuanhuchatgpt: upgrade to the fixed version with the command below.
pip install --upgrade 'chuanhuchatgpt>=2836fd1db3efcd5ede63c0e7fbbdf677730dbb51'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/chuanhuchatgpt
Introduced in:
0Fixed in: 2836fd1db3efcd5ede63c0e7fbbdf677730dbb51Fix
pip install --upgrade 'chuanhuchatgpt>=2836fd1db3efcd5ede63c0e7fbbdf677730dbb51'