Browse / Unsafe Model Loading and Supply Chain / CVE-2024-6960
H2O vulnerable to Deserialization of Untrusted Data
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Unsafe deserialisation
- Affected
- ai.h2o:h2o-core (Maven)
- CVSS
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 0.7% chance of exploitation in 30 days
How it works, in short
A crafted Iced model file can embed Java objects, and the loader deserialises any class, so gadget chains run code on import. (Our summary, written by a model. The source text is below.)
Details
The H2O machine learning platform uses "Iced" classes as the primary means of moving Java Objects around the cluster. The Iced format supports inclusion of serialized Java objects. When a model is deserialized, any class is allowed to be deserialized (no class whitelist). An attacker can construct a crafted Iced model that uses Java gadgets and leads to arbitrary code execution when imported to the H2O platform.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6960
- https://github.com/h2oai/h2o-3
- https://mvnrepository.com/artifact/ai.h2o/h2o-core
- https://research.jfrog.com/vulnerabilities/h2o-model-deserialization-rce-jfsa-2024-001035518
Source: GitHub Advisory Database, used under CC BY 4.0.