CVE-2024-6854 Arbitrary File Overwrite in h2oai/h2o-3
An attacker can overwrite arbitrary files on the server by exploiting unrestricted export locations in the model export endpoint.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-6854?
CVE-2024-6854 is a high-severity path traversal vulnerability in h2oai/h2o-3, published on 20 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In h2oai/h2o-3 version 3.46.0, the endpoint for exporting models does not restrict the export location, allowing an attacker to export a model to any file in the server's file structure, thereby overwriting it. This vulnerability can be exploited to overwrite any file on the target server with a trained model file, although the content of the overwrite is not controllable by the attacker.
Weakness: CWE-36
Which versions are affected by CVE-2024-6854?
5 open source packages ship an affected version, including h2o and ai.h2o:h2o-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
h2o PyPI | From 3.32.1.1 to 3.46.0 | None |
h2o PyPI | From 3.32.1.1 to 3.46.0 | None |
h2o PyPI | From 3.32.1.1 to 3.46.0 | None |
ai.h2o:h2o-core Maven | From 3.32.1.1 to 3.46.0 | None |
ai.h2o:h2o-core Maven | From 3.32.1.1 to 3.46.0 | None |
Products include H2o H2o.
How do I fix CVE-2024-6854?
No fix has been published for CVE-2024-6854 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-2024-6854 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6854 exists.
Other vulnerabilities in h2oai/h2o-3
Sources
Also known as GHSA-47f6-5p7h-5f3h, PYSEC-2026-1436.