Skip to content
OpenAdvisories
High · 7.5 CVE-2024-7962 EUVD-2024-0022GHSA-q97q-7j3c-mx9jPYSEC-2024-112

Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgpt

Published Oct 29, 2024 · Updated Oct 29, 2024 · Assigned by @huntr_ai

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.

Affected products

VendorProductAffectedFixed
gaizhenbiao gaizhenbiao/chuanhuchatgpt unspecified – < 20240918 20240918

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI chuanhuchatgpt all versions — PYSEC-2024-112

References