CVE-2024-39900: Opensearch reports scheduler Remote Code Execution Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>org.opensearch.plugin</groupId>
<artifactId>opensearch-reports-scheduler</artifactId>
<version>2.14.0.0</version>
</dependency>
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
CVE-2024-39900 Affected Opensearch reports scheduler Versions
1 component(s)| 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?
Which Opensearch reports scheduler versions are affected?
What version fixes CVE-2024-39900?
Is opensearch-reports-scheduler affected?
What is the CVSS score of CVE-2024-39900?
What CWE is associated with CVE-2024-39900?
How can I check Maven dependencies for CVE-2024-39900?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}