CVE-2024-39900: Opensearch reports scheduler Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-xmvg-335g-x44q
CVSS 5.4
CWE-639
Published
Advisory Summary

CVE-2024-39900 is a MODERATE (CVSS 5.4) remote code execution vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Opensearch reports scheduler libraries in the Maven ecosystem. The issue involves the opensearch reporting plugin improperly controls tenancy access to reporting resources. Remediation is available by upgrading affected packages to version 2.14.0.0.

CVE-2024-39900 at a Glance

CVE Identifier CVE-2024-39900
GHSA Identifier GHSA-xmvg-335g-x44q
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Opensearch reports scheduler
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.4

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
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-39900

To remediate this vulnerability, upgrade all affected Opensearch reports scheduler 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-reports-scheduler fixed: 2.14.0.0
<dependency>
    <groupId>org.opensearch.plugin</groupId>
    <artifactId>opensearch-reports-scheduler</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-39900, 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 reports scheduler 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 reports scheduler, 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 reporting plugin 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-39900 Affected Opensearch reports scheduler Versions

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

References

Frequently Asked Questions

What is CVE-2024-39900?
CVE-2024-39900 is a security vulnerability in Opensearch reports scheduler involving The OpenSearch reporting plugin improperly controls tenancy access to reporting resources under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Opensearch reports scheduler versions are affected?
Affected versions include releases prior to 2.14.0.0 across affected packages: org.opensearch.plugin:opensearch-reports-scheduler.
What version fixes CVE-2024-39900?
Upgrading to 2.14.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is opensearch-reports-scheduler affected?
Yes, org.opensearch.plugin:opensearch-reports-scheduler 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-39900?
CVE-2024-39900 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-39900?
CVE-2024-39900 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-39900?
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-xmvg-335g-x44q",
  "modified" : "2024-07-18T15:22:03Z",
  "published" : "2024-07-18T15:22:02Z",
  "aliases" : [ "CVE-2024-39900" ],
  "summary" : "The OpenSearch reporting plugin improperly controls tenancy access to reporting resources",
  "details" : "### Summary\n\nAn issue in the OpenSearch reporting plugin 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:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/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-reports-scheduler"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.14.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/opensearch-project/reporting/security/advisories/GHSA-xmvg-335g-x44q"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39900"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opensearch-project/reporting/commit/2403014c57ee63268e83d919db3334b676a8c992"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/opensearch-project/reporting"
  }, {
    "type" : "WEB",
    "url" : "https://opensearch.org/versions/opensearch-2-14-0.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-18T15:22:02Z",
    "nvd_published_at" : "2024-07-09T22:15:03Z"
  }
}