← Back to search

CVE-2026-54161

8.1 HIGHpublic exploit available

Published 2026-11-03 · Updated 2026-11-03

AI risk analysis

Summary
In Network UPS Tools versions 2.8.3–2.8.5, the upsmon service unsafely incorporates server-supplied alarm text into shell commands when NOTIFYCMD with EXEC is configured, enabling command injection via malicious or compromised UPS devices or upsd servers. This allows arbitrary code execution as the upsmon user (often root) on POSIX or Windows systems.
Exploitability
Exploitation requires control over the ups.alarm value via a malicious/compromised upsd server, MITM on plaintext upsd–upsmon traffic, or a compromised UPS device; TLS does not protect against the latter path.
Blast radius
Successful exploitation grants full system compromise as root (or the upsmon service account), enabling data theft, persistence, lateral movement, or disruption of critical power infrastructure.
Detection
Defenders should monitor for unexpected shell command execution by the upsmon process (e.g., via process audit logs showing /bin/sh, cmd.exe, or similar being spawned with unsanitized arguments), especially when triggered during alarm notifications; also inspect upsd-to-upsmon plaintext traffic for injected shell metacharacters in ALARM messages.
Prioritized remediation
Upgrade to Network UPS Tools version 2.8.6 or later.
rcecommand-injectionupsicsprivilege-escalation

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

Network UPS Tools is a collection of programs which provide a common interface for monitoring and administering UPS, PDU and SCD hardware. From 2.8.3 to 2.8.5, upsmon in clients/upsmon.c inserts the server-supplied ups.alarm value into shell commands executed by notify(), async_notify(), and wall(). When a monitored device reports an ALARM state and an operator has configured NOTIFYCMD with EXEC in NOTIFYFLAG ALARM, shell metacharacters in the alarm text are evaluated on POSIX or Windows and can execute arbitrary operating-system commands as the upsmon account, which is commonly root. An attacker can control the value through a malicious or compromised upsd, a man-in-the-middle on a plaintext upsd to upsmon connection, or a compromised UPS device whose driver supplies the alarm upstream of upsd; TLS between upsd and upsmon does not mitigate the compromised-device path. This vulnerability is fixed in 2.8.6.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-78

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.