CVE-2024-45758: H2o core H2O.ai H2O Vulnerable To Deserialization Vulnerability

CRITICAL
Advisory Identifier: GHSA-hrmc-jmp7-mpm2
CVSS 9.1
CWE-502
Published
Advisory Summary

CVE-2024-45758 is a CRITICAL (CVSS 9.1) h2o.ai h2o vulnerable to deserialization vulnerability (CWE-502: Deserialization of Untrusted Data) affecting H2o core libraries in the Maven ecosystem. The issue involves h2o.ai h2o vulnerable to deserialization attacks via a jdbc connection url. Remediation is available in the latest vendor maintenance releases.

CVE-2024-45758 at a Glance

CVE Identifier CVE-2024-45758
GHSA Identifier GHSA-hrmc-jmp7-mpm2
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product H2o core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-45758

To remediate this vulnerability, upgrade all affected H2o core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ai.h2o:h2o-core fixed: Latest secure release
<dependency>
    <groupId>ai.h2o</groupId>
    <artifactId>h2o-core</artifactId>
    <version>Latest secure release</version>
</dependency>
h2o fixed: Latest secure release
pip install h2o>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=ai.h2o

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-45758, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=ai.h2o

Analyze the terminal output to locate any version of H2o core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=ai.h2o command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In H2o core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

H2O.ai H2O through 3.46.0.4 allows attackers to arbitrarily set the JDBC URL, leading to deserialization attacks, file reads, and command execution. Exploitation can occur when an attacker has access to post to the ImportSQLTable URI with a JSON document containing a connection_url property with any typical JDBC Connection URL attack payload such as one that uses queryInterceptors.

CVE-2024-45758 Affected H2o core Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
ai.h2o:h2o-core
Maven
≤ 3.46.0.7
h2o
PyPI
≤ 3.46.0.7

References

Frequently Asked Questions

What is CVE-2024-45758?
CVE-2024-45758 is a security vulnerability in H2o core involving H2O.ai H2O vulnerable to deserialization attacks via a JDBC Connection URL under CWE-502: Deserialization of Untrusted Data.
Which H2o core versions are affected?
Affected versions include releases prior to current release patches across affected packages: ai.h2o:h2o-core, h2o.
What version fixes CVE-2024-45758?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is h2o-core affected?
Yes, ai.h2o:h2o-core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is h2o affected?
Yes, h2o is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-45758?
CVE-2024-45758 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-45758?
CVE-2024-45758 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2024-45758?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=ai.h2o'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hrmc-jmp7-mpm2",
  "modified" : "2025-09-23T18:25:35Z",
  "published" : "2024-09-06T18:31:31Z",
  "aliases" : [ "CVE-2024-45758" ],
  "summary" : "H2O.ai H2O vulnerable to deserialization attacks via a JDBC Connection URL",
  "details" : "H2O.ai H2O through 3.46.0.4 allows attackers to arbitrarily set the JDBC URL, leading to deserialization attacks, file reads, and command execution. Exploitation can occur when an attacker has access to post to the ImportSQLTable URI with a JSON document containing a connection_url property with any typical JDBC Connection URL attack payload such as one that uses queryInterceptors.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ai.h2o:h2o-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.46.0.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "h2o"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.46.0.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45758"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/h2oai/h2o-3/issues/16425"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/h2oai/h2o-3/issues/16622"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/h2oai/h2o-3/pull/16624"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/h2oai/h2o-3/commit/f714edd6b8429c7a7211b779b6ec108a95b7382d"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/AfterSnows/c24ca3c26dc89ab797e610e92a6a9acb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/h2oai/h2o-3"
  }, {
    "type" : "WEB",
    "url" : "https://spear-shield.notion.site/Unauthenticated-Remote-Code-Execution-via-Unrestricted-JDBC-Connection-87a958a4874044199cbb86422d1f6068"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-23T18:24:38Z",
    "nvd_published_at" : "2024-09-06T16:15:03Z"
  }
}