CVE-2024-5550: H2o Arbitrary System Path Lookup Vulnerability

MODERATE
Advisory Identifier: GHSA-x234-r5fg-x52m
CVSS 5.3
CWE-200 CWE-22
Published
Advisory Summary

CVE-2024-5550 is a MODERATE (CVSS 5.3) arbitrary system path lookup vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting H2o libraries in the PyPI ecosystem. The issue involves arbitrary system path lookup in h20. Remediation is available in the latest vendor maintenance releases.

CVE-2024-5550 at a Glance

CVE Identifier CVE-2024-5550
GHSA Identifier GHSA-x234-r5fg-x52m
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product H2o
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-5550

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

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:

pip show h2o

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-5550, inspect your installed packages using pip:

pip show h2o

Analyze the terminal output to locate any version of H2o 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 pip show h2o command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In H2o, 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

In h2oai/h2o-3 version 3.40.0.4, an exposure of sensitive information vulnerability exists due to an arbitrary system path lookup feature. This vulnerability allows any remote user to view full paths in the entire file system where h2o-3 is hosted. Specifically, the issue resides in the Typeahead API call, which when requested with a typeahead lookup of '/', exposes the root filesystem including directories such as /home, /usr, /bin, among others. This vulnerability could allow attackers to explore the entire filesystem, and when combined with a Local File Inclusion (LFI) vulnerability, could make exploitation of the server trivial.

CVE-2024-5550 Affected H2o Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
h2o
PyPI
≤ 3.40.0.4

References

Frequently Asked Questions

What is CVE-2024-5550?
CVE-2024-5550 is a security vulnerability in H2o involving Arbitrary system path lookup in h20 under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which H2o versions are affected?
Affected versions include releases prior to current release patches across affected packages: h2o.
What version fixes CVE-2024-5550?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
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-5550?
CVE-2024-5550 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-5550?
CVE-2024-5550 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2024-5550?
Run the dependency tree command: 'pip show 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-x234-r5fg-x52m",
  "modified" : "2024-06-06T22:57:21Z",
  "published" : "2024-06-06T21:30:37Z",
  "aliases" : [ "CVE-2024-5550" ],
  "summary" : "Arbitrary system path lookup in h20",
  "details" : "In h2oai/h2o-3 version 3.40.0.4, an exposure of sensitive information vulnerability exists due to an arbitrary system path lookup feature. This vulnerability allows any remote user to view full paths in the entire file system where h2o-3 is hosted. Specifically, the issue resides in the Typeahead API call, which when requested with a typeahead lookup of '/', exposes the root filesystem including directories such as /home, /usr, /bin, among others. This vulnerability could allow attackers to explore the entire filesystem, and when combined with a Local File Inclusion (LFI) vulnerability, could make exploitation of the server trivial.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "h2o"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.40.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-5550"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/h2oai/h2o-3"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/e76372c2-39be-4984-a7c8-7048a75a25dc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-06T22:57:21Z",
    "nvd_published_at" : "2024-06-06T19:16:09Z"
  }
}