CVE-2026-54161: upsmon: remote OS command injection (RCE) via attacker-controlled ups.alarm in NOTIFYCMD execution
networkupstools · nut
No fix listed · Affected: networkupstools nut · Exploitation: public proof of concept (unverified)
At a glance
Higher than 51% of scored CVEs
Not scored yet. NVD has not published a CVSS score.
What it isNVD
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.
ExploitationProof of concept public
Not in CISA KEV as of catalogue 2026.11.20 (20 Nov)
- Proof of concept public1 public GitHub repository (unverified), listed by PoC-in-GitHub12 Jun
Not seen so far: in CISA KEV · exploited (reported) · scanning observed.
Weakness and public checks
- Public check
- No public nuclei template
- Weakness
- OS Command Injection · Command and Code Injection
Other CVEs in nut
Every published CVE for networkupstools nut, by how far exploitation has gone. This one is among them.
What changed
- PoC-in-GitHub lists 1 public GitHub repository (unverified) PoC-in-GitHub
Coverage1 article · 1 outlet
First in our coverage: SecurityOnline, 8 Jul.
- Network UPS Tools RCE Flaw Affects upsmon, With No Patch YetSecurityOnline · first in our coverage · mentions it in passing
New articles also arrive in the RSS feed.