Vulnerability · Published Nov 3, 2026 · Assigned by GitHub_M

CVE-2026-54161upsmon: remote OS command injection (RCE) via attacker-controlled ups.alarm in NOTIFYCMD execution

High 8.1

In plain English

A high-severity OS command injection in nut from networkupstools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.6%top 49.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12nutno fix listedDEBIAN-CVE-2026-54161
Debian:13nutno fix listedDEBIAN-CVE-2026-54161
Debian:14nutno fix listedDEBIAN-CVE-2026-54161
Ubuntu:25.10nutno fix listedUBUNTU-CVE-2026-54161
Ubuntu:26.04:LTSnutno fix listedUBUNTU-CVE-2026-54161
Ubuntu:26.10nutno fix listedUBUNTU-CVE-2026-54161

Affected products (as reported)

VendorProductVersions
networkupstools nut >= 2.8.3, <= 2.8.5

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References