8.8high
Apache Ambari: Code Injection Vulnerability in Ambari Alert Definition
- Severity
- 8.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 2.04% (higher than 82% of CVEs)
- Published
- Last changed
- Assigned by
- apache
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Ambari | from 8 before 2.7.9 | CVE List |
| apache ambari | before 2.7.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Existe una vulnerabilidad de inyección de código en la función de definición de alertas de Ambari, que permite a los usuarios autenticados inyectar y ejecutar comandos de shell arbitrarios. La vulnerabilidad surge al definir la alerta scripts, donde el campo de nombre de archivo script se ejecuta utilizando `sh -c`. Un atacante con acceso autenticado puede aprovechar esta vulnerabilidad para inyectar comandos maliciosos, lo que lleva a la ejecución remota de código en el servidor. El problema se ha solucionado en las últimas versiones de Ambari.
References
| https://lists.apache.org/thread/70g1l5lxvko7kvhyxmtmklhhfrlon837 | vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2025/01/21/8 | mailing-list, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-23196 changed 2025-02-03 | CVE Terms of Use |
| NVD | CVE-2025-23196 changed 2026-06-17 | Public domain |