PT-2026-64036 · Git+1 · H2Ogpt

·

CVE-2026-65700

·

Published

2026-07-23

·

Updated

2026-07-23

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions h2oGPT versions prior to 0.2.2
Description A path traversal issue exists in the OpenAI-compatible files API. Unauthenticated remote attackers can read, write, and delete arbitrary files accessible to the server process by providing traversal sequences within the bearer token. This occurs because the get user dir() function in openai server/backend utils.py uses the bearer token string as a path component via os.path.join without proper sanitization. Since the default API key is empty, authentication is bypassed. Attackers can use the file content, delete, and upload endpoints to move outside the intended user directory, potentially leading to remote code execution by writing to application-loaded files or startup hooks.
Recommendations Update h2oGPT to version 0.2.2 or later.

Exploit

Fix

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-65700

Affected Products

H2Ogpt