Skip to content
Heist/ feed
Back to feed
High

Local File Inclusion (LFI) in gaizhenbiao/chuanhuchatgpt

Type: advisorySources: OSV

A Local File Inclusion (LFI) vulnerability exists in the gaizhenbiao/chuanhuchatgpt application, specifically within the functionality for uploading chat history. The vulnerability arises due to improper input validation when handling file paths during the chat history upload process. An attacker can exploit this vulnerability by intercepting requests and manipulating the 'name' parameter to specify arbitrary file paths. This allows the attacker to read sensitive files on the server, leading to information leakage, including API keys and private information. The issue affects version 20240310 of the application.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-4321
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 17:23 UTC · Revision 1

Source evidence

Local File Inclusion (LFI) in gaizhenbiao/chuanhuchatgpt

core-osv · Original source

Published 16 May 2024, 09:03 UTC

A Local File Inclusion (LFI) vulnerability exists in the gaizhenbiao/chuanhuchatgpt application, specifically within the functionality for uploading chat history. The vulnerability arises due to improper input validation when handling file paths during the chat history upload process. An attacker can exploit this vulnerability by intercepting requests and manipulating the 'name' parameter to specify arbitrary file paths. This allows the attacker to read sensitive files on the server, leading to information leakage, including API keys and private information. The issue affects version 20240310 of the application.

osv:CVE-2024-4321
Complete source record
{
  "id": "96c30d7b5e0deb67945ca27de8831e2682500b11af192136a95061e45d9daff0",
  "url": "https://osv.dev/vulnerability/CVE-2024-4321",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Local File Inclusion (LFI) in gaizhenbiao/chuanhuchatgpt",
    "summary": "A Local File Inclusion (LFI) vulnerability exists in the gaizhenbiao/chuanhuchatgpt application, specifically within the functionality for uploading chat history. The vulnerability arises due to improper input validation when handling file paths during the chat history upload process. An attacker can exploit this vulnerability by intercepting requests and manipulating the 'name' parameter to specify arbitrary file paths. This allows the attacker to read sensitive files on the server, leading to information leakage, including API keys and private information. The issue affects version 20240310 of the application.",
    "evidence": "osv:CVE-2024-4321",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-4321",
      "aliases": [
        "CVE-2024-4321",
        "PYSEC-2024-267"
      ],
      "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": "20240310"
                },
                {
                  "last_affected": "20240310"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:20240310:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "20240310"
                      },
                      {
                        "last_affected": "20240310"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "20240310"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4321.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:44.602807589Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/19a16f8e-3d92-498f-abc9-8686005f067e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4321.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-4321"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4321.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-4321",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 512530,
  "published_at": "2024-05-16T09:03:46.604+00:00"
}