CVE-2024-51941 Apache Ambari: Remote Code Injection in Ambari Metrics and AMS Alerts

High 8.8 Published Updated

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.

Sources

Also known as GHSA-g359-p277-83p3.

Is CVE-2024-51941 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free