Skip to content
Heist/ feed
Back to feed
High

Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgpt

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-7962
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 01:30 UTC · Revision 1

Source evidence

Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgpt

core-osv · Original source

Published 29 Oct 2024, 12:47 UTC

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.

osv:CVE-2024-7962
Complete source record
{
  "id": "954c6ed82eebd67115921b617f9b72a5ccd88a24e25588ee2b35fbd0f563b962",
  "url": "https://osv.dev/vulnerability/CVE-2024-7962",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgpt",
    "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.",
    "evidence": "osv:CVE-2024-7962",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-7962",
      "aliases": [
        "CVE-2024-7962",
        "PYSEC-2024-112"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gaizhenbiao/chuanhuchatgpt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "20240628"
                },
                {
                  "fixed": "2836fd1db3efcd5ede63c0e7fbbdf677730dbb51"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:20240628:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "20240628"
                      },
                      {
                        "last_affected": "20240628"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2836fd1db3efcd5ede63c0e7fbbdf677730dbb51"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "20240628"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-7962.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.690325880Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/83f0a8e1-490c-49e7-b334-02125ee0f1b1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7962.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-7962",
        "https://github.com/gaizhenbiao/chuanhuchatgpt/commit/2836fd1db3efcd5ede63c0e7fbbdf677730dbb51"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-29"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7962.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-7962",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513874,
  "published_at": "2024-10-29T12:47:58.697+00:00"
}