Technical impact
The vulnerability lies in upsmon, which accepts the ups.alarm string from the upsd server and interpolates it directly into shell commands defined by NOTIFYCMD. Because the string is not sanitized, an attacker can inject shell metacharacters that are then evaluated by the operating system. This allows execution of arbitrary commands with the privileges of the upsmon process, which is often running as root. The weakness is a classic operating-system command injection (CWE‑78) and the nominal CVSS score of 8.1 reflects its high impact on confidentiality, integrity, and availability.
Affected Systems
Network UPS Tools (NUT) versions 2.8.3 through 2.8.5 are affected. The issue occurs in the upsmon component of NUT, specifically the files clients/upsmon.c, and is resolved in 2.8.6 and later releases.
Risk and Exploitability
The practical exploitation requires an attacker to supply a malicious ups.alarm value, which can be achieved if the attacker controls the upsd process, subverts a UPS device that supplies the alarm, or performs a man‑in‑the‑middle attack on the plaintext connection between upsmon and upsd. TLS between the two daemons does not protect a compromised UPS source. In any of these scenarios the attacker can execute commands as the upsmon user, typically root. Although the EPSS score is not available and the vulnerability is not listed in CISA's KEV, the high CVSS score and the ease of establishing the required conditions make the risk fairly significant for installations that expose upsmon to untrusted devices or networks.