CVE-2024-39901: Opensearch observability Remote Code Execution Vulnerability

LOW
Advisory Identifier: GHSA-77vc-rj32-2r33
CVSS 4.2
CWE-639 CWE-285
Published
Advisory Summary

CVE-2024-39901 is a LOW (CVSS 4.2) remote code execution vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Opensearch observability libraries in the Maven ecosystem. The issue involves opensearch observability does not properly restrict access to private tenant resources. Remediation is available by upgrading affected packages to version 2.14.0.0.

CVE-2024-39901 at a Glance

CVE Identifier CVE-2024-39901
GHSA Identifier GHSA-77vc-rj32-2r33
Severity LOW
CVSS v3.1 Base Score 4.2
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Opensearch observability
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.2

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

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

How to Fix CVE-2024-39901

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

org.opensearch.plugin:opensearch-observability fixed: 2.14.0.0
<dependency>
    <groupId>org.opensearch.plugin</groupId>
    <artifactId>opensearch-observability</artifactId>
    <version>2.14.0.0</version>
</dependency>
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=org.opensearch.plugin

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.opensearch.plugin

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

Note: The mvn dependency:tree -Dincludes=org.opensearch.plugin 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Opensearch observability, 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

### Summary An issue in the OpenSearch observability plugins allows unintended access to private tenant resources like notebooks. The system did not properly check if the user was the resource author when accessing resources in a private tenant, leading to potential data being revealed. ### Impact The lack of proper access control validation for private tenant resources in the OpenSearch observability and reporting plugins can lead to unintended data access. If an authorized user with observability or reporting roles is aware of another user's private tenant resource ID, such as a notebook, they can potentially read, modify, or take ownership of that resource, despite not being the original author, thus impacting the confidentiality and integrity of private tenant resources. The impact is confined to private tenant resources, where authorized users may gain inappropriate visibility into data intended to be private from other users within the same OpenSearch instance, potentially violating the intended separation of access. This issue does not alter the scope of access but highlights a flaw in the existing access control mechanisms. Impacted versions <= 2.13 ### Patches The patches are included in OpenSearch 2.14 ### Workarounds None ### References OpenSearch 2.14 is available for download at https://opensearch.org/versions/opensearch-2-14-0.html The latest version of OpenSearch is available for download at https://opensearch.org/downloads.html

CVE-2024-39901 Affected Opensearch observability Versions

1 component(s)
Fixed Versions:
2.14.0.0
Product / Package Ecosystem Affected Versions Fixed Version
org.opensearch.plugin:opensearch-observability
Maven
< 2.14.0.0
2.14.0.0

References

Frequently Asked Questions

What is CVE-2024-39901?
CVE-2024-39901 is a security vulnerability in Opensearch observability involving OpenSearch Observability does not properly restrict access to private tenant resources under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Opensearch observability versions are affected?
Affected versions include releases prior to 2.14.0.0 across affected packages: org.opensearch.plugin:opensearch-observability.
What version fixes CVE-2024-39901?
Upgrading to 2.14.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is opensearch-observability affected?
Yes, org.opensearch.plugin:opensearch-observability is affected in releases prior to 2.14.0.0. Upgrade your dependency to 2.14.0.0 or later.
What is the CVSS score of CVE-2024-39901?
CVE-2024-39901 has a CVSS v3.1 base score of 4.2 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-39901?
CVE-2024-39901 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Maven dependencies for CVE-2024-39901?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.opensearch.plugin'. 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-77vc-rj32-2r33",
  "modified" : "2024-11-18T16:26:51Z",
  "published" : "2024-07-10T16:04:08Z",
  "aliases" : [ "CVE-2024-39901" ],
  "summary" : "OpenSearch Observability does not properly restrict access to private tenant resources",
  "details" : "### Summary\n\nAn issue in the OpenSearch observability plugins allows unintended access to private tenant resources like notebooks. The system did not properly check if the user was the resource author when accessing resources in a private tenant, leading to potential data being revealed.\n\n### Impact\n\nThe lack of proper access control validation for private tenant resources in the OpenSearch observability and reporting plugins can lead to unintended data access. If an authorized user with observability or reporting roles is aware of another user's private tenant resource ID, such as a notebook, they can potentially read, modify, or take ownership of that resource, despite not being the original author, thus impacting the confidentiality and integrity of private tenant resources. The impact is confined to private tenant resources, where authorized users may gain inappropriate visibility into data intended to be private from other users within the same OpenSearch instance, potentially violating the intended separation of access. This issue does not alter the scope of access but highlights a flaw in the existing access control mechanisms.\n\nImpacted versions <= 2.13\n\n### Patches\n\nThe patches are included in OpenSearch 2.14\n\n### Workarounds\n\nNone\n\n### References\n\nOpenSearch 2.14 is available for download at https://opensearch.org/versions/opensearch-2-14-0.html\n\nThe latest version of OpenSearch is available for download at https://opensearch.org/downloads.html",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opensearch.plugin:opensearch-observability"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.14.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/opensearch-project/observability/security/advisories/GHSA-77vc-rj32-2r33"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39901"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opensearch-project/observability/commit/014423178f8f61d90442dde03cbdcd754c70a84e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/opensearch-project/observability"
  }, {
    "type" : "WEB",
    "url" : "https://opensearch.org/versions/opensearch-2-14-0.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-639" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-10T16:04:08Z",
    "nvd_published_at" : "2024-07-09T22:15:03Z"
  }
}