CVE-2024-8616 Arbitrary File Overwrite in h2oai/h2o-3
Attackers can overwrite arbitrary files on the server via the model export endpoint, potentially compromising system integrity.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-8616?
CVE-2024-8616 is a high-severity path traversal vulnerability in h2oai/h2o-3, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In h2oai/h2o-3 version 3.46.0, the `/99/Models/{name}/json` endpoint allows for arbitrary file overwrite on the target server. The vulnerability arises from the `exportModelDetails` function in `ModelsHandler.java`, where the user-controllable `mexport.dir` parameter is used to specify the file path for writing model details. This can lead to overwriting files at arbitrary locations on the host system.
Weakness: CWE-73
Which versions are affected by CVE-2024-8616?
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.10.4.1 to 3.46.0 | None |
h2o PyPI | From 3.10.4.1 to 3.46.0 | None |
h2o PyPI | From 3.10.4.1 to 3.46.0 | None |
ai.h2o:h2o-core Maven | From 3.10.4.1 to 3.46.0 | None |
ai.h2o:h2o-core Maven | From 3.10.4.1 to 3.46.0 | None |
Products include H2o H2o.
How do I fix CVE-2024-8616?
No fix has been published for CVE-2024-8616 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-8616 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8616 exists.
Other vulnerabilities in h2oai/h2o-3
Sources
Also known as GHSA-g48v-3p35-88jr, PYSEC-2026-1441.