GitHub Advisoryadvisory · PyPI

GHSA-v9w6-9hq9-33ch HKUDS LightRAG allows Path Traversal via function upload_to_input_dir

MEDIUM Published 2025-06-27 Modified 2025-06-30 Official page ↗
Aliases
CVE-2025-6773
Ecosystem
PyPI
Packages
lightrag-hku
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-22
Reviewed
2025-06-30

Affected packages

• PyPI lightrag-hku: < 1.3.8 → fixed in 1.3.8

Description

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.

Related

Alias · CVE (1)

  • CVE-2025-6773 A vulnerability was found in HKUDS LightRAG up to 1.3.8. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References