{"id":"CVE-2026-28795","aliases":["CVE-2026-28795","GHSA-vmwq-8g8c-jm79","PYSEC-2026-2794"],"related":[],"kind":"vulnerability","state":"published","title":"OpenChatBI: Critical Path Traversal Vulnerability in save_report Tool of OpenChatBI","summary":"OpenChatBI is an intelligent chat-based BI tool powered by large language models, designed to help users query, analyze, and visualize data through natural language conversations. Prior to version 0.2.2, 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. This issue has been patched in version 0.2.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenChatBI is an intelligent chat-based BI tool powered by large language models, designed to help users query, analyze, and visualize data through natural language conversations. Prior to version 0.2.2, 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. This issue has been patched in version 0.2.2.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe `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. \n\nThe 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 \n\n    f\"{timestamp}_{clean_title}.{file_format}\"\n\nmalicious path sequences are preserved, enabling attackers to write files outside the designated report directory. \n\nAn 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.\n\n\n### Patches\n- Affected versions:\n<=0.2.1\n- Patched versions:\n0.2.2 (includes fix from PR #12: https://github.com/zhongyu09/openchatbi/pull/12)\n\n### Workarounds\nNo\n\n### References\n- Issue #10: https://github.com/zhongyu09/openchatbi/issues/10\n- PR #12: https://github.com/zhongyu09/openchatbi/pull/12","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenChatBI es una herramienta de BI inteligente basada en chat, impulsada por grandes modelos de lenguaje, diseñada para ayudar a los usuarios a consultar, analizar y visualizar datos a través de conversaciones en lenguaje natural. Antes de la versión 0.2.2, la herramienta save_report en openchatbi/tool/save_report.py sufre de una crítica vulnerabilidad de salto de ruta debido a una sanitización insuficiente de la entrada del parámetro file_format. Este problema ha sido parcheado en la versión 0.2.2.","source":"nvd"}],"published":"2026-03-02T21:47:32.000Z","modified":"2026-07-13T16:42:56.240Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.2.2","status":"affected"}],"vendor":"zhongyu09","product":"openchatbi","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.2"}],"ecosystem":"PyPI","package":"openchatbi","purl":"pkg:pypi/openchatbi","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.2.2"}],"vendor":"zhongyu09","product":"openchatbi","cpe":"cpe:2.3:a:zhongyu09:openchatbi:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.2"}],"ecosystem":"PyPI","package":"openchatbi","purl":"pkg:pypi/openchatbi","source":"pysec"}],"references":[{"url":"https://github.com/zhongyu09/openchatbi/security/advisories/GHSA-vmwq-8g8c-jm79","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/zhongyu09/openchatbi/issues/10","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/zhongyu09/openchatbi/pull/12","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/zhongyu09/openchatbi/commit/372a7e861da5159c3106d64d6f6edf8284db8c75","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28795","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/zhongyu09/openchatbi","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/openchatbi","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-vmwq-8g8c-jm79","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-03-09T19:52:39.189Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-28795","url":"https://www.cve.org/CVERecord?id=CVE-2026-28795","licence":"CVE Terms of Use","modified":"2026-03-09T19:52:48.920Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vmwq-8g8c-jm79","url":"https://github.com/advisories/GHSA-vmwq-8g8c-jm79","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:56.240Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-28795","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28795","licence":"Public domain","modified":"2026-06-17T10:29:03.547Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2794","url":"https://osv.dev/vulnerability/PYSEC-2026-2794","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:59.828Z"}],"updatedAt":"2026-11-25T22:59:15.389Z","epss":{"score":0.0052,"percentile":0.4567,"date":"2026-12-02T12:00:21.000Z"}}