HKUDS LightRAG allows Path Traversal via function upload_to_input_dir
CVE-2025-6773 · GHSA-v9w6-9hq9-33ch · published 2025-06-27 · updated 2025-06-30
- Severity
- Medium
- CVSS score
- 5.3
- Chance of exploitation (EPSS)
- 0.22%
- Fixed in
- 1.3.8
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
Upgrade lightrag-hku to 1.3.8 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| lightrag-hku | PyPI | < 1.3.8 | 1.3.8 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- CriticalVibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chainvibe-trading-ai
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- Criticallightrag-hku: No Rate Limiting on /login Endpoint Allows Brute-Force Attackslightrag-hku
- CriticalLightRAG: CORS Wildcard + Credentials Enables Any-Origin Credentialed Requestslightrag-hku
- CriticalLightRAG is Vulnerable to Authentication Bypass: hardcoded DEFAULT_TOKEN_SECRET and public /auth-status defeat LIGHTRAG_API_KEY protectionlightrag-hku
- Highlightrag-hku: SSRF via IPv6-transition address bypass (NAT64, IPv4-compatible, 6to4) of the native-markdown image-download guardlightrag-hku
- HighLightRAG: Hardcoded JWT Signing Secret Allows Authentication Bypasslightrag-hku
- Mediumlightrag-hku: Plaintext Passwords Compared Without Constant-Time Functionlightrag-hku
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.