Skip to main content
← All vulnerabilities
CVE-2024-7962PYSEC-2024-112

Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgpt

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 20240918
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • gaizhenbiao gaizhenbiao/chuanhuchatgpt

    fixed in 20240918

  • chuanhuchatgptPyPI

    All versions

References 2

huntr.com

GitHub · gaizhenbiao/chuanhuchatgpt