CVE-2026-54161

NameCVE-2026-54161
DescriptionNetwork 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1146704

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
nut (PTS)bookworm2.8.0-7vulnerable
trixie2.8.1-5vulnerable
forky, sid2.8.5-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
nutsource(unstable)(unfixed)1146704

Notes

[trixie] - nut <no-dsa> (Minor issue)
[bookworm] - nut <postponed> (Minor issue)
[bullseye] - nut <postponed> (Minor issue)
https://github.com/networkupstools/nut/security/advisories/GHSA-mjgp-j4gm-6qg5
Fixed by: https://github.com/networkupstools/nut/pull/3499

Search for package or bug name: Reporting problems