SecurityContext

CVE-2026-65700: h2oGPT - Path Traversal

  • Cve: CVE-2026-65700
  • Name: h2oGPT - Path Traversal
  • 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.
  • Impact: Unauthenticated attackers can read, write, delete files, and execute code remotely, leading to full server compromise.
  • Remediation: Update to the latest version of h2oGPT.
  • Vulnerability type: path_traversal
  • Vulnerability impact: remote_code_execution, file_system_read, file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01517
  • Epss percentile: 0.75207
  • Assignee: [email protected]
  • Published at: 2026-07-23T18:17:01Z
  • Age in days: 124
  • Modified at: 2026-10-24T13:10:00Z
  • References total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-65700
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

UrlSourceTags
https://github.com/geo-chen/oss/blob/main/h2ogpt.mdnvd
https://www.vulncheck.com/advisories/h2ogpt-path-traversal-via-openai-compatible-files-apinvd

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts