critical9.1
CVE-2024-5986
A vulnerability in h2oai/h2o-3 version 3.46.0.1 allows remote attackers to write arbitrary data to any file on the server.
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | ai.h2o:h2o-core | <= 3.46.0.1 | none recorded |
| pip | h2o | <= 3.46.0.1 | none recorded |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-wj3h-wx8g-x699
- https://nvd.nist.gov/vuln/detail/CVE-2024-5986
- https://huntr.com/bounties/64ff5319-6ac3-4447-87f7-b53495d4d5a3
- https://github.com/pypa/advisory-database/tree/main/vulns/h2o/PYSEC-2026-353.yaml
- https://pypi.org/project/h2o