HKUDS LightRAG allows Path Traversal via function upload_to_input_dir
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | lightrag-hku | < 1.3.8 | 1.3.8 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-6773
- https://github.com/HKUDS/LightRAG/issues/1692
- https://github.com/HKUDS/LightRAG/issues/1692#issuecomment-3009368235
- https://github.com/HKUDS/LightRAG/commit/60777d535b719631680bcf5d0969bdef79ca4eaf
- https://github.com/HKUDS/LightRAG
- https://vuldb.com/?ctiid.314089
- https://vuldb.com/?id.314089
- https://vuldb.com/?submit.601276
- https://pypi.org/project/lightrag-hku
- https://github.com/advisories/GHSA-v9w6-9hq9-33ch
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-22- Platform
- Python (PyPI)
- Package
lightrag-hku- Disclosed
- 27.06.2025
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1539 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-v9w6-9hq9-33ch - CC BY 4.0
Vulnerability history: lightrag-hku
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 10
- First → latest
- 06.2025 09.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 3
- High 2
- Medium 5
Disclosures per year
- 2025: 1
- 2026: 9
-
HKUDS LightRAG allows Path Traversal via function upload_to_input_dir this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.