Vulnerabilities in pkg:maven/org.apache.ambari/ambari

PACKAGE
Advisory Identifier: GHSA-9q6v-rxmw-g3gh
Advisory Summary

CVE-2023-50378 is a MODERATE (CVSS 6.1) various cross site scripting problems vulnerability (CWE-20: Improper Input Validation) affecting Apache Ambari libraries in the Maven ecosystem. The issue involves various cross site scripting problems. Remediation is available by upgrading affected packages to version 2.7.8.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.ambari/ambari

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.ambari/ambari. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-9q6v-rxmw-g3gh CVE-2023-50378 MODERATE Apache Ambari: Various Cross site scripting problems
GHSA-q3pw-6vf2-66hf CVE-2016-4976 MODERATE Apache Ambari reveals administrator passwords
GHSA-j76q-99x2-v7vq CVE-2016-6807 CRITICAL Apache Ambari Improper Access Control
GHSA-w3p6-94x2-xcvm CVE-2015-5210 MODERATE Apache Ambari Open Redirect
GHSA-9g2j-5685-h44h CVE-2015-1775 MODERATE Apache Ambari SSRF Vulnerability
GHSA-m384-pj54-5vr2 CVE-2022-42009 HIGH Apache Ambari Expression Language Injection vulnerability
GHSA-p7w2-784m-qpq9 CVE-2022-45855 HIGH Apache Ambari Expression Language Injection vulnerability
GHSA-q7q9-w24q-cpgh CVE-2020-1936 MODERATE Cross-site Scripting (XSS) in Apache Ambari Views

CVE-2023-50378 at a Glance

CVE Identifier CVE-2023-50378
GHSA Identifier GHSA-9q6v-rxmw-g3gh
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-20: Improper Input Validation
Affected Product Apache Ambari
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.1

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

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

How to Fix CVE-2023-50378

To remediate this vulnerability, upgrade all affected Apache Ambari 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.apache.ambari:ambari fixed: 2.7.8
<dependency>
    <groupId>org.apache.ambari</groupId>
    <artifactId>ambari</artifactId>
    <version>2.7.8</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.apache.ambari

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.ambari

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

Note: The mvn dependency:tree -Dincludes=org.apache.ambari 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apache Ambari, 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

Lack of proper input validation and constraint enforcement in Apache Ambari prior to 2.7.8    Impact : As it will be stored XSS, Could be exploited to perform unauthorized actions, varying from data access to session hijacking and delivering malicious payloads. Users are recommended to upgrade to version 2.7.8 which fixes this issue.

CVE-2023-50378 Affected Apache Ambari Versions

1 component(s)
Fixed Versions:
2.7.8
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.ambari:ambari
Maven
< 2.7.8
2.7.8

References

Frequently Asked Questions

What is CVE-2023-50378?
CVE-2023-50378 is a security vulnerability in Apache Ambari involving Various Cross site scripting problems under CWE-20: Improper Input Validation.
Which Apache Ambari versions are affected?
Affected versions include releases prior to 2.7.8 across affected packages: org.apache.ambari:ambari.
What version fixes CVE-2023-50378?
Upgrading to 2.7.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ambari affected?
Yes, org.apache.ambari:ambari is affected in releases prior to 2.7.8. Upgrade your dependency to 2.7.8 or later.
What is the CVSS score of CVE-2023-50378?
CVE-2023-50378 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2023-50378?
CVE-2023-50378 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2023-50378?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.ambari'. 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-9q6v-rxmw-g3gh",
  "modified" : "2024-10-03T18:07:30Z",
  "published" : "2024-03-01T15:31:38Z",
  "aliases" : [ "CVE-2023-50378" ],
  "summary" : "Apache Ambari: Various Cross site scripting problems",
  "details" : "Lack of proper input validation and constraint enforcement in Apache Ambari prior to 2.7.8  \n\n Impact : As it will be stored XSS, Could be exploited to perform unauthorized actions, varying from data access to session hijacking and delivering malicious payloads. \n\nUsers are recommended to upgrade to version  2.7.8 which fixes this issue.\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.ambari:ambari"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50378"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/ambari"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/6hn0thq743vz9gh283s2d87wz8tqh37c"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/03/01/5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-01T21:44:45Z",
    "nvd_published_at" : "2024-03-01T15:15:08Z"
  }
}