---
id: CVE-2024-5986
aliases:
  - GHSA-wj3h-wx8g-x699
  - PYSEC-2026-353
title: H2O has an External Control of File Name or Path vulnerability
summary: H2O has an External Control of File Name or Path vulnerability
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'
vendor: h2o
product: 'ai.h2o:h2o-core'
ecosystem: maven
affected:
  - 'ai.h2o:h2o-core <= 3.46.0.1'
  - h2o <= 3.46.0.1
published: '2026-02-02'
updated: '2026-10-27'
sourceUpdated: '2026-10-27T16:45:03.593504579Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-wj3h-wx8g-x699'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-5986'
  - url: 'https://github.com/h2oai/h2o-3'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/h2o/PYSEC-2026-353.yaml
  - url: 'https://huntr.com/bounties/64ff5319-6ac3-4447-87f7-b53495d4d5a3'
  - url: 'https://pypi.org/project/h2o'
  - url: 'https://github.com/advisories/GHSA-wj3h-wx8g-x699'
tags:
  - osv
  - maven
  - ghsa
epss: 0.00714
epssPercentile: 0.53519
cwe:
  - CWE-73
ingestedAt: '2026-10-27T16:32:34.331Z'
---

## Overview

A vulnerability in h2oai/h2o-3 version 3.46.0.1 allows remote attackers to write arbitrary data to any file on the server. This is achieved by exploiting the `/3/Parse` endpoint to inject attacker-controlled data as the header of an empty file, which is then exported using the `/3/Frames/framename/export` endpoint. The impact of this vulnerability includes the potential for remote code execution and complete access to the system running h2o-3, as attackers can overwrite critical files such as private SSH keys or script files.

## Affected packages

- `ai.h2o:h2o-core <= 3.46.0.1`
- `h2o <= 3.46.0.1`

## Remediation

Refer to the advisory for the patched release.
