Skip to main content

CVE-2024-6863: H2o H2o RCE and File Encryption Vulnerability

CVE-2024-6863 is a critical RCE vulnerability in H2o H2o that allows attackers to encrypt arbitrary files with custom keys, enabling ransomware-like attacks. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-6863 Overview

CVE-2024-6863 affects h2oai/h2o-3 version 3.46.0, an open-source machine learning platform. The vulnerability exposes a custom EncryptionTool endpoint that allows unauthenticated network attackers to encrypt arbitrary files on the target server using an attacker-controlled key. Attackers can also overwrite the encryption key, producing ransomware-like behavior that prevents the victim from recovering the material needed for decryption. The weakness is categorized as [CWE-749] (Exposed Dangerous Method or Function).

Critical Impact

Remote, unauthenticated attackers can encrypt files on the H2O-3 server and overwrite keys, destroying data availability and integrity in a ransomware-style attack.

Affected Products

  • h2oai/h2o-3 version 3.46.0
  • H2O machine learning platform deployments exposing the REST API
  • Any environment where the H2O-3 endpoint is reachable over the network

Discovery Timeline

  • 2025-03-20 - CVE-2024-6863 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-6863

Vulnerability Analysis

H2O-3 version 3.46.0 exposes a custom EncryptionTool as an accessible endpoint on the server's REST interface. The tool was designed to support encryption workflows for machine learning data, but it does not restrict who can invoke it or what files it can operate on. An attacker reaching the endpoint can direct the tool to encrypt any file the H2O process can read and write, including model artifacts, datasets, configuration files, and server-side credentials. Because the attacker supplies the encryption key, and because that key can be overwritten by subsequent calls, recovery without the original key material is not feasible. The result is a loss-of-availability and loss-of-integrity outcome equivalent to ransomware, delivered through a legitimate application feature rather than a memory-corruption bug.

Root Cause

The root cause is an exposed dangerous function [CWE-749]. The EncryptionTool endpoint lacks authentication, authorization, and path restrictions. It accepts caller-supplied keys and target file paths without validating the requester or scoping access to safe directories.

Attack Vector

Exploitation requires only network access to the H2O-3 API, no privileges, and no user interaction. An attacker sends a crafted HTTP request to the EncryptionTool endpoint specifying a target file path and encryption key. Repeated calls with new keys further obstruct recovery. Full technical details are available in the Huntr Bounty Report.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2024-6863

Indicators of Compromise

  • HTTP requests to H2O-3 REST endpoints referencing EncryptionTool from unexpected source addresses
  • Sudden appearance of encrypted or unreadable files in H2O data and model directories
  • File modification timestamps updated in bulk across H2O working directories within a short window
  • New or renamed files with uncommon extensions in paths owned by the H2O service account

Detection Strategies

  • Monitor the H2O-3 process for unexpected write activity against files it does not normally modify, such as system configuration or credentials
  • Alert on anomalous entropy increases in files under H2O-managed directories, a hallmark of encryption activity
  • Correlate inbound requests to the H2O API with subsequent file-system write bursts by the H2O process

Monitoring Recommendations

  • Enable access logging on the H2O-3 API and forward logs to a central analytics platform for query and retention
  • Baseline normal file-write patterns of the H2O service account and alert on deviations
  • Track network reachability to the H2O-3 management port and flag exposure to untrusted networks

How to Mitigate CVE-2024-6863

Immediate Actions Required

  • Restrict network access to the H2O-3 API so only trusted hosts and users can reach it, using firewall rules or a reverse proxy with authentication
  • Run H2O-3 under a dedicated low-privilege service account with write access limited to required directories
  • Audit H2O data and model directories for unexpected encrypted files and investigate any findings
  • Ensure offline, immutable backups of H2O datasets, models, and configuration are available for recovery

Patch Information

No vendor advisory URL is listed in the enriched data for CVE-2024-6863. Operators should consult the Huntr Bounty Report and the H2O-3 project repository for current patch status and upgrade guidance beyond version 3.46.0.

Workarounds

  • Place H2O-3 behind an authenticating reverse proxy and deny direct network access to the service port
  • Disable or block routes exposing the EncryptionTool endpoint through proxy rules until a patched release is deployed
  • Isolate H2O-3 instances on internal, segmented networks that are not reachable from user workstations or the internet
bash
# Example: restrict H2O-3 API access to a trusted management subnet via iptables
iptables -A INPUT -p tcp --dport 54321 -s 10.10.20.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 54321 -j DROP

# Example: block the EncryptionTool path at an nginx reverse proxy
location ~* /3/.*EncryptionTool.* {
    deny all;
    return 403;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.