---
id: CVE-2025-6773
aliases:
  - GHSA-v9w6-9hq9-33ch
  - PYSEC-2026-1539
title: HKUDS LightRAG allows Path Traversal via function upload_to_input_dir
summary: HKUDS LightRAG allows Path Traversal via function upload_to_input_dir
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
vendor: lightrag-hku
product: lightrag-hku
ecosystem: pip
affected:
  - lightrag-hku < 1.3.8
patched:
  - lightrag-hku 1.3.8
published: '2025-06-27'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-v9w6-9hq9-33ch'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-6773'
  - url: 'https://github.com/HKUDS/LightRAG/issues/1692'
  - url: 'https://github.com/HKUDS/LightRAG/issues/1692#issuecomment-3009368235'
  - url: >-
      https://github.com/HKUDS/LightRAG/commit/60777d535b719631680bcf5d0969bdef79ca4eaf
  - url: 'https://github.com/HKUDS/LightRAG'
  - url: 'https://vuldb.com/?ctiid.314089'
  - url: 'https://vuldb.com/?id.314089'
  - url: 'https://vuldb.com/?submit.601276'
tags:
  - osv
  - pip
epss: 0.00192
epssPercentile: 0.07865
ingestedAt: '2026-07-08T18:25:53.288Z'
---

## Overview

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.

## Affected packages

- `lightrag-hku < 1.3.8`

## Remediation

Upgrade to a patched release:

- `lightrag-hku 1.3.8`
