id: PYSEC-2024-112 modified: 2024-10-31T19:20:49.309758Z published: 2024-10-29T13:15:00Z aliases: - CVE-2024-7962 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. affected: - package: ecosystem: PyPI name: chuanhuchatgpt purl: pkg:pypi/chuanhuchatgpt ranges: - type: GIT events: - introduced: "0" - fixed: 2836fd1db3efcd5ede63c0e7fbbdf677730dbb51 repo: https://github.com/gaizhenbiao/chuanhuchatgpt - type: ECOSYSTEM events: - introduced: "0" versions: - 3.2.5 severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N references: - type: EVIDENCE url: https://huntr.com/bounties/83f0a8e1-490c-49e7-b334-02125ee0f1b1 - type: WEB url: https://huntr.com/bounties/83f0a8e1-490c-49e7-b334-02125ee0f1b1 - type: FIX url: https://github.com/gaizhenbiao/chuanhuchatgpt/commit/2836fd1db3efcd5ede63c0e7fbbdf677730dbb51