Apache Ambari security advisories

Security information for Apache Ambari

Reporting

Do you want disclose a potential security issue for Apache Ambari? Send your report to the Apache Ambari Security Team.

Advisories

This section is experimental: it provides advisories since 2023 and may lag behind the official CVE publications. If you have any feedback on how you would like this data to be provided, you are welcome to reach out on our public mailinglist or privately on security@apache.org

Code Injection Vulnerability in Ambari Alert Definition

CVE-2025-23196 [CVE] [CVE json] [OSV json]

Last updated: 2025-02-03T08:22:23.980Z

Affected

  • Apache Ambari from 8 before 2.7.9

Description

A code injection vulnerability exists in the Ambari Alert Definition feature, allowing authenticated users to inject and execute arbitrary shell commands. The vulnerability arises when defining alert scripts, where the script filename field is executed using sh -c. An attacker with authenticated access can exploit this vulnerability to inject malicious commands, leading to remote code execution on the server. The issue has been fixed in the latest versions of Ambari.

References

Credits

  • Liyw979 (reporter)
  • robinzeng2015 (reporter)
  • fcgboy (reporter)
  • wk2025 (reporter)
  • Tari from Sangfor Company (reporter)

XML External Entity (XXE) Vulnerability in Ambari/Oozie

CVE-2025-23195 [CVE] [CVE json] [OSV json]

Last updated: 2025-01-21T21:22:31.147Z

Affected

  • Apache Ambari before 2.7.9

Description

An XML External Entity (XXE) vulnerability exists in the Ambari/Oozie project, allowing an attacker to inject malicious XML entities. This vulnerability occurs due to insecure parsing of XML input using the DocumentBuilderFactory class without disabling external entity resolution. An attacker can exploit this vulnerability to read arbitrary files on the server or perform server-side request forgery (SSRF) attacks. The issue has been fixed in both Ambari 2.7.9 and the trunk branch.

References

Remote Code Injection in Ambari Metrics and AMS Alerts

CVE-2024-51941 [CVE] [CVE json] [OSV json]

Last updated: 2025-09-03T08:07:26.617Z

Affected

  • Apache Ambari through 2.7.8

Description

A remote code injection vulnerability exists in the Ambari Metrics and AMS Alerts feature, allowing authenticated users to inject and execute arbitrary code. The vulnerability occurs when processing alert definitions, where malicious input can be injected into the alert script execution path. An attacker with authenticated access can exploit this vulnerability to execute arbitrary commands on the server. The issue has been fixed in the latest versions of Ambari.

References

Credits

authenticated users could perform XXE to read arbitrary files on the server

CVE-2023-50380 [CVE] [CVE json] [OSV json]

Last updated: 2024-02-27T16:51:31.875Z

Affected

  • Apache Ambari from 2.7.0 through 2.7.7

Description

XML External Entity injection in apache ambari versions <= 2.7.7, Users are recommended to upgrade to version 2.7.8, which fixes this issue.


More Details:

Oozie Workflow Scheduler had a vulnerability that allowed for root-level file reading and privilege escalation from low-privilege users. The vulnerability was caused through lack of proper user input validation.

This vulnerability is known as an XML External Entity (XXE) injection attack. Attackers can exploit XXE vulnerabilities to read arbitrary files on the server, including sensitive system files. In theory, it might be possible to use this to escalate privileges.

References

authenticated users could perform command injection to perform RCE

CVE-2023-50379 [CVE] [CVE json] [OSV json]

Last updated: 2024-02-27T08:26:54.321Z

Affected

  • Apache Ambari from 2.7.0 through 2.7.7

Description

Malicious code injection in Apache Ambari in prior to 2.7.8. Users are recommended to upgrade to version 2.7.8, which fixes this issue.

Impact:
A Cluster Operator can manipulate the request by adding a malicious code injection and gain a root over the cluster main host.

References

Various XSS problems

CVE-2023-50378 [CVE] [CVE json] [OSV json]

Last updated: 2024-10-03T12:23:04.013Z

Affected

  • Apache Ambari from 2.7.0 through 2.7.7

Description

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.



References

Allows authenticated metrics consumers to perform RCE

CVE-2022-45855 [CVE] [CVE json] [OSV json]

Last updated: 2023-07-12T09:59:42.590Z

Affected

  • Apache Ambari from 2.7.0 through 2.7.6

Description

SpringEL injection in the metrics source in Apache Ambari version 2.7.0 to 2.7.6 allows a malicious authenticated user to execute arbitrary code remotely. Users are recommended to upgrade to 2.7.7.

References

Credits

A malicious authenticated user can remotely execute arbitrary code in the context of the application.

CVE-2022-42009 [CVE] [CVE json] [OSV json]

Last updated: 2023-07-12T09:58:16.769Z

Affected

  • Apache Ambari from 2.7.0 through 2.7.6

Description

SpringEL injection in the server agent in Apache Ambari version 2.7.0 to 2.7.6 allows a malicious authenticated user to execute arbitrary code remotely. Users are recommended to upgrade to 2.7.7.

References

Credits

Stored XSS in Apache Ambari

CVE-2020-1936 [CVE] [CVE json] [OSV json]

Last updated: 2021-03-02T08:54:00.947Z

Affected

  • Apache Ambari from Apache Ambari before 2.7.4

Description

A cross-site scripting issue was found in Apache Ambari Views. This was addressed in Apache Ambari 2.7.4.

References

Credits

  • Apache Ambari would like to thank Krzysztof Przybylski from STM Solutions

CVE-2020-13924 [CVE] [CVE json] [OSV json]

Last updated: 2021-03-17T09:01:22.529Z

Affected

  • Apache Ambari from Apache Ambari through 2.6.2.2

Description

In Apache Ambari versions 2.6.2.2 and earlier, malicious users can construct file names for directory traversal and traverse to other directories to download files.

References

Credits

  • threedr3am