CVE-2024-51941 Apache Ambari: Remote Code Injection in Ambari Metrics and AMS Alerts
Authenticated attackers can inject and execute arbitrary code via malicious alert definitions in Apache Ambari Metrics and AMS Alerts.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-51941?
CVE-2024-51941 is a high-severity code injection vulnerability in Apache Ambari, published on 21 Jan 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2024-51941?
It affects 1 product.
Products include Apache Ambari.
How do I fix CVE-2024-51941?
No fix has been published for CVE-2024-51941 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-51941 being exploited?
There is no known exploitation of CVE-2024-51941 in the wild and no public exploit code.
Other vulnerabilities in Apache Ambari
- CVE-2017-5642 Misconfiguration in Apache Ambari
- CVE-2014-3582 Command injection in n/a
- CVE-2016-6807 Apache Ambari Improper Access Control
- CVE-2025-23196 Apache Ambari: Code Injection Vulnerability in Ambari Alert Definition
- CVE-2023-50379 Apache Ambari: authenticated users could perform command injection to perform RCE
Sources
Also known as GHSA-g359-p277-83p3.