Skip to content
Heist/ feed
Back to feed
Medium

HKUDS LightRAG File Upload document_routes.py upload_to_input_dir path traversal

Type: advisorySources: OSV

A vulnerability was found in HKUDS LightRAG up to 1.3.8. It has been declared as critical. Affected by this vulnerability is the function upload_to_input_dir of the file lightrag/api/routers/document_routes.py of the component File Upload. The manipulation of the argument file.filename leads to path traversal. It is possible to launch the attack on the local host. The identifier of the patch is 60777d535b719631680bcf5d0969bdef79ca4eaf. It is recommended to apply a patch to fix this issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-6773
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:34 UTC · Revision 1

Source evidence

HKUDS LightRAG File Upload document_routes.py upload_to_input_dir path traversal

core-osv · Original source

Published 27 Jun 2025, 19:00 UTC

A vulnerability was found in HKUDS LightRAG up to 1.3.8. It has been declared as critical. Affected by this vulnerability is the function upload_to_input_dir of the file lightrag/api/routers/document_routes.py of the component File Upload. The manipulation of the argument file.filename leads to path traversal. It is possible to launch the attack on the local host. The identifier of the patch is 60777d535b719631680bcf5d0969bdef79ca4eaf. It is recommended to apply a patch to fix this issue.

osv:CVE-2025-6773
Complete source record
{
  "id": "b53d2715ba0e3a19e9a784cf25964e93b44b6149740b86bdacd22fd44f180116",
  "url": "https://osv.dev/vulnerability/CVE-2025-6773",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "HKUDS LightRAG File Upload document_routes.py upload_to_input_dir path traversal",
    "summary": "A vulnerability was found in HKUDS LightRAG up to 1.3.8. It has been declared as critical. Affected by this vulnerability is the function upload_to_input_dir of the file lightrag/api/routers/document_routes.py of the component File Upload. The manipulation of the argument file.filename leads to path traversal. It is possible to launch the attack on the local host. The identifier of the patch is 60777d535b719631680bcf5d0969bdef79ca4eaf. It is recommended to apply a patch to fix this issue.",
    "evidence": "osv:CVE-2025-6773",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-6773",
      "aliases": [
        "CVE-2025-6773",
        "GHSA-v9w6-9hq9-33ch",
        "PYSEC-2026-1539"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hkuds/lightrag",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9b2c31f30e70a049bfbcb9f6ae3a801830ead1bc"
                },
                {
                  "fixed": "60777d535b719631680bcf5d0969bdef79ca4eaf"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.3.0"
                      },
                      {
                        "last_affected": "1.3.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.3.1"
                      },
                      {
                        "last_affected": "1.3.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.3.2"
                      },
                      {
                        "last_affected": "1.3.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.3.3"
                      },
                      {
                        "last_affected": "1.3.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.3.4"
                      },
                      {
                        "last_affected": "1.3.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.3.5"
                      },
                      {
                        "last_affected": "1.3.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.3.6"
                      },
                      {
                        "last_affected": "1.3.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.3.7"
                      },
                      {
                        "last_affected": "1.3.7"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.3.8"
                      },
                      {
                        "last_affected": "1.3.8"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "fixed": "60777d535b719631680bcf5d0969bdef79ca4eaf"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.3.0",
            "1.3.1",
            "1.3.2",
            "1.3.3",
            "1.3.4",
            "1.3.5",
            "1.3.6",
            "1.3.7",
            "1.3.8",
            "v1.3.9",
            "v1.3.8",
            "v1.3.7",
            "v1.3.6",
            "v1.3.4",
            "v1.3.3",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-6773.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.663078260Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6773.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-6773",
        "https://vuldb.com/?id.314089",
        "https://vuldb.com/?submit.601276",
        "https://github.com/HKUDS/LightRAG/issues/1692",
        "https://github.com/HKUDS/LightRAG/issues/1692#issuecomment-3009368235",
        "https://vuldb.com/?ctiid.314089",
        "https://github.com/HKUDS/LightRAG/commit/60777d535b719631680bcf5d0969bdef79ca4eaf"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "VulDB",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6773.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-6773",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504742,
  "published_at": "2025-06-27T19:00:17.695+00:00"
}