CVE-2025-6773: Lightrag hku Path Traversal Vulnerability
MODERATECVE-2025-6773 is a MODERATE (CVSS 5.3) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Lightrag hku libraries in the PyPI ecosystem. The issue involves hkuds lightrag allows path traversal via function upload_to_input_dir. Remediation is available by upgrading affected packages to version 1.3.8.
CVE-2025-6773 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-6773
To remediate this vulnerability, upgrade all affected Lightrag hku dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install lightrag-hku>=1.3.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show lightrag-hku
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-6773, inspect your installed packages using pip:
pip show lightrag-hku
Analyze the terminal output to locate any version of Lightrag hku in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.8), your application is affected.
Note: The pip show lightrag-hku command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Lightrag hku, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-6773 Affected Lightrag hku Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lightrag-hku
|
PyPI |
< 1.3.8
|
1.3.8
|
References
Frequently Asked Questions
What is CVE-2025-6773?
Which Lightrag hku versions are affected?
What version fixes CVE-2025-6773?
Is lightrag-hku affected?
What is the CVSS score of CVE-2025-6773?
What CWE is associated with CVE-2025-6773?
How can I check PyPI dependencies for CVE-2025-6773?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v9w6-9hq9-33ch",
"modified" : "2025-06-30T11:45:58Z",
"published" : "2025-06-27T21:30:29Z",
"aliases" : [ "CVE-2025-6773" ],
"summary" : "HKUDS LightRAG allows Path Traversal via function upload_to_input_dir",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "lightrag-hku"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-6773"
}, {
"type" : "WEB",
"url" : "https://github.com/HKUDS/LightRAG/issues/1692"
}, {
"type" : "WEB",
"url" : "https://github.com/HKUDS/LightRAG/issues/1692#issuecomment-3009368235"
}, {
"type" : "WEB",
"url" : "https://github.com/HKUDS/LightRAG/commit/60777d535b719631680bcf5d0969bdef79ca4eaf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/HKUDS/LightRAG"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.314089"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.314089"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.601276"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-30T11:45:58Z",
"nvd_published_at" : "2025-06-27T19:15:31Z"
}
}