All reports
High

OpenChatBI has a Path Traversal Vulnerability in save_report Tool

Affected versions

Version ranges need review.

Affected versions
<= 0.2.1
Fixed version
0.2.2
Affected versions
<0.2.2
Fixed version
0.2.2

Exploitation

CVE-2026-28795

Probability of exploitation in the next 30 days: 0.51%

FIRST EPSS · 2026-11-17

Description

Impact

The save_report tool in openchatbi/tool/save_report.py suffers from a critical path traversal vulnerability due to insufficient input sanitization of the file_format parameter.

The function only removes leading dots of file_format using file_format.lstrip(".") but allows path traversal sequences like /../../ to pass through unchanged. When the filename is constructed via string concatenation in

f"{timestamp}_{clean_title}.{file_format}"

malicious path sequences are preserved, enabling attackers to write files outside the designated report directory.

An attacker can manipulate the LLM to call the tool with a specific file_format to overwrite critical system files like __init__.py, potentially leading to remote code execution.

Patches
Workarounds

No

References

Links