CVE-2025-53358 Details
Description
kotaemon is an open-source RAG-based tool for document comprehension. From versions 0.10.6 and prior, in libs/ktem/ktem/index/file/ui.py, the index_fn method accepts both URLs and local file paths without validation. The pipeline streams these paths directly and stores them, enabling attackers to traverse directories (e.g. ../../../../../.env) and exfiltrate sensitive files. This issue has been patched via commit 37cdc28, in version 0.10.7 which has not been made public at time of publication.
A path traversal vulnerability has been identified in Kotaemon versions prior to 0.10.7. The issue arises in the 'index_fn' method of 'libs/ktem/ktem/index/file/ui.py', where the method accepts both URLs and local file paths without proper validation. This lack of validation allows attackers to traverse directories and access sensitive files, such as the '.env' file. The vulnerability is exploitable by uploading links that the application will process and stream, leading to the unauthorized access of confidential information.
Users can update to Kotaemon version 0.10.7 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 2, 2025CISA-ADP
Assessed Jul 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Cinnamon/kotaemon/commit/37cdc28ceb46e505d25221584daf1fe61e26b2cc | [email protected] | Source CodeVendor |
| https://github.com/Cinnamon/kotaemon/pull/755 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/Cinnamon/kotaemon/security/advisories/GHSA-jw4w-xcvf-jq5x | [email protected] | AdvisoryVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Cinnamon kotaemon | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 2, 2025 | New CVE Received | [email protected] |
Volerion