h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API
48Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 9.3epss 1.3%
exploitation probability
1.3%top 33% of all CVEs
observed exploitation
nono source reports it
1 public exploit(s)
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.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected products
h2oai · h2ogptpublic PoCs found — 1
cve_referencegithub.com/geo-chen/oss/blob/main/h2ogpt.mdunverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.