Path Traversal in Cinnamon Kotaemon

CVE-2025-53358

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.

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.004 (34.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-53358?
CVE-2025-53358 is a medium-severity vulnerability in Cinnamon Kotaemon, classified under Path Traversal. CVSS score: 6.5/10. Published 2025-07-02.
How severe is CVE-2025-53358?
Medium severity. CVSS v3 base score is 6.5 out of 10.