CVE-2026-65700 h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API

Critical 9.3 Published Updated

Unauthenticated attackers can achieve remote code execution and arbitrary file access in h2oGPT via path traversal in the OpenAI-compatible Files API.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-65700?

CVE-2026-65700 is a critical path traversal vulnerability in h2oai h2ogpt, published on 23 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

h2oGPT through 0.2.1 contains a path traversal vulnerability in the OpenAI-compatible files API that allows unauthenticated remote attackers to read, write, and delete arbitrary files accessible to the server process by supplying traversal sequences in the bearer token. The get_user_dir function in openai_server/backend_utils.py uses the bearer token string unsanitized as a path component via os.path.join, and because the default API key is EMPTY authentication is bypassed, enabling attackers to traverse outside the intended user directory through the file content, delete, and upload endpoints to achieve remote code execution by writing to startup hooks or application-loaded files.

Weakness: CWE-22

Which versions are affected by CVE-2026-65700?

How do I fix CVE-2026-65700?

No fix has been published for CVE-2026-65700 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-65700 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-65700 exists.

Sources

Also known as GHSA-ffpm-9hgc-84cg.

Is CVE-2026-65700 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free