cve.bz

CVE-2026-54161 networkupstools nut: OS Command Injection

8.1 highEPSS 0.6%

High (8.1) in networkupstools nut. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-25. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-11-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-54161 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-54161?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-54161?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-54161 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
networkupstools nut>= 2.8.3, <= 2.8.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13nutno fix listedDEBIAN-CVE-2026-54161
Ubuntu25.10, 26.04:LTS, 26.10nutno fix listedUBUNTU-CVE-2026-54161
openSUSETumbleweednut2.8.5-2.1openSUSE-SU-2026:11367-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because successful exploitation can allow arbitrary command execution with elevated root privileges, though it requires specific non-default notification directives alongside an untrusted or compromised upstream monitoring stream. In typical deployments, triggering the flaw requires an attacker to control or alter telemetry through a compromised upstream daemon, network-level manipulation, or rogue hardware. Furthermore, exposure is limited to environments where upsmon has been configured with the EXEC flag on ALARM notifications to dispatch external scripts.

Red Hat's mitigation

To mitigate this vulnerability, disable external command execution for alarm notifications in the upsmon configuration:

1. Edit `/etc/ups/upsmon.conf` and locate the `NOTIFYFLAG ALARM` directive. Ensure the `EXEC` flag is omitted (for example, configure `NOTIFYFLAG ALARM SYSLOG` or remove `EXEC` from any combined flags such as `NOTIFYFLAG ALARM SYSLOG+WALL`). Alternatively, unset or comment out the `NOTIFYCMD` directive if external notification scripts are not required.

2. Restart the monitoring daemon to apply the configuration change:

```

systemctl restart nut-monitor

```

Warning: Restarting the `nut-monitor` daemon temporarily interrupts active UPS monitoring until the service initializes.

Caveats:

Disabling the `EXEC` flag prevents upsmon from executing custom external scripts or handlers when an alarm event is triggered by a monitored device.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-54161.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • ja-errorpro/CVE-2026-54161 Harbor Check: matches CVE 1 star, Python, created
    upsmon: remote OS command injection (RCE) via attacker-controlled ups.alarm in NOTIFYCMD execution

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON