← All advisories

CVE-2024-5986criticalCode execution2026-02-02

CVE-2024-5986: H2O has an External Control of File Name or Path vulnerability

A vulnerability in h2oai/h2o-3 version 3.46.0.1 allows remote attackers to write arbitrary data to any file on the server.

01.

What it is

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.

02.

How to check

  1. Affected: ai.h2o:h2o-core (Maven) <= 3.46.0.1.
  2. Affected: h2o (pip) <= 3.46.0.1.
  3. Compare your installed version with the range above (command below).
03.

How to fix

  1. No patched version of ai.h2o:h2o-core is listed yet. Follow the advisory for mitigations.
  2. No patched version of h2o is listed yet. Follow the advisory for mitigations.
# check ai.h2o:h2o-core version
pip show h2o | grep Version
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.