PT-2026-64036 · Git+1 · H2Ogpt
CVSS v3.1
9.8
Critical
| Vector | AV: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
Affected Products
H2Ogpt