Skip to content
RCE Disclosed report Advanced CVE-2024-10553

H2O Deserialization of Untrusted Data Vulnerability

The H2O-3 REST API passed user-supplied JDBC URLs to DriverManager.getConnection in two endpoints, allowing deserialization of untrusted data when a MySQL or PostgreSQL driver was present. An unauthenticated remote attacker could execute arbitrary code.

h2oai/h2o-3

Originally disclosed on huntr

Critical View original

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitrary code via deserialization of untrusted data. The vulnerability exists in the endpoints POST /99/ImportSQLTable and POST /3/SaveToHiveTable, where user-controlled JDBC URLs are passed to DriverManager.getConnection, leading to deserialization if a MySQL or PostgreSQL driver is available in the classpath. This issue is fixed in version 3.46.0.6.

From the GitHub Advisory Database (GHSA-h7xg-cmpp-48hf, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application passed untrusted JDBC URLs directly to DriverManager.getConnection without validating or restricting them, enabling deserialization attacks when certain drivers were present.

Impact

An unauthenticated remote attacker could execute arbitrary code on the server.

What the attacker needed

MySQL or PostgreSQL driver in classpath; network access to the REST API

The fix

The issue was fixed in version 3.46.0.6.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The software took a database connection address from the user and used it without checking. If the right database driver was installed, a malicious address could make the server run harmful code. This meant someone with no login could take over the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from h2oai/h2o-3

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.