Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-28795

OpenChatBI has a Path Traversal Vulnerability in save_report Tool
Back to all
CVE

CVE-2026-28795

OpenChatBI has a Path Traversal Vulnerability in save_report Tool

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}{cleantitle}.{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

  • Affected versions:

<=0.2.1

  • Patched versions:

0.2.2 (includes fix from PR #12: https://github.com/zhongyu09/openchatbi/pull/12)

Workarounds

No

References

  • Issue #10: https://github.com/zhongyu09/openchatbi/issues/10
  • PR #12: https://github.com/zhongyu09/openchatbi/pull/12

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.7
-
4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/zhongyu09/openchatbi/security/advisories/GHSA-vmwq-8g8c-jm79, https://nvd.nist.gov/vuln/detail/CVE-2026-28795, https://github.com/zhongyu09/openchatbi/issues/10, https://github.com/zhongyu09/openchatbi/pull/12, https://github.com/zhongyu09/openchatbi/commit/372a7e861da5159c3106d64d6f6edf8284db8c75, https://github.com/zhongyu09/openchatbi

Severity

9.8

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
9.8
EPSS Probability
0.00063%
EPSS Percentile
0.19312%
Introduced Version
0
Fix Available
0.2.2

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading