pysec-2024-112
Vulnerability from pysec
Published
2024-10-29 13:15
Modified
2024-10-31 19:20
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.

Impacted products
Name purl
chuanhuchatgpt pkg:pypi/chuanhuchatgpt
Aliases



{
   affected: [
      {
         package: {
            ecosystem: "PyPI",
            name: "chuanhuchatgpt",
            purl: "pkg:pypi/chuanhuchatgpt",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "2836fd1db3efcd5ede63c0e7fbbdf677730dbb51",
                  },
               ],
               repo: "https://github.com/gaizhenbiao/chuanhuchatgpt",
               type: "GIT",
            },
            {
               events: [
                  {
                     introduced: "0",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
         versions: [
            "3.2.5",
         ],
      },
   ],
   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.",
   id: "PYSEC-2024-112",
   modified: "2024-10-31T19:20:49.309758+00:00",
   published: "2024-10-29T13:15:00+00:00",
   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",
      },
   ],
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
         type: "CVSS_V3",
      },
   ],
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.