GHSA-vmwq-8g8c-jm79

Suggest an improvement
Source
https://github.com/advisories/GHSA-vmwq-8g8c-jm79
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-vmwq-8g8c-jm79/GHSA-vmwq-8g8c-jm79.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vmwq-8g8c-jm79
Aliases
Published
2026-03-02T21:47:32Z
Modified
2026-07-13T16:42:56Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
OpenChatBI has a Path Traversal Vulnerability in save_report Tool
Details

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

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-02T21:47:32Z",
    "nvd_published_at":  "2026-03-06T07:16:00Z",
    "severity":  "HIGH"
}
References

Affected packages

PyPI / openchatbi

Package

Name
openchatbi
View open source insights on deps.dev
Purl
pkg:pypi/openchatbi

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.2.2

Affected versions

0.*
0.0.1
0.1.0
0.1.1
0.2.0
0.2.1

Database specific

last_known_affected_version_range
"<= 0.2.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-vmwq-8g8c-jm79/GHSA-vmwq-8g8c-jm79.json"