PT-2025-27645 · Kotaemon · Kotaemon
Phv2312
·
Published
2025-07-02
·
Updated
2025-07-02
·
CVE-2025-53358
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions:
kotaemon versions 0.10.6 and prior
Description:
The issue concerns an open-source RAG-based tool for document comprehension. In the affected versions, the
index fn method in libs/ktem/ktem/index/file/ui.py accepts both URLs and local file paths without validation, allowing attackers to traverse directories and exfiltrate sensitive files. For example, an attacker could use ../../../../../.env to access sensitive information.Recommendations:
For versions 0.10.6 and prior, update to version 0.10.7 or later, which includes the patch for this issue via commit 37cdc28.
As a temporary workaround, consider disabling the
index fn method in libs/ktem/ktem/index/file/ui.py until a patch is available.
Restrict access to sensitive files and directories to minimize the risk of exploitation.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Kotaemon