Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-54161 — upsmon: remote OS command injection (RCE) via attacker-controlled ups.alarm in NOTIFYCMD execution | Kitploit
Tools/GitHubGitHub/ja-errorpro/cve-2026-54161
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlPayload Development
GitHubja-errorpro/cve-2026-54161

CVE-2026-54161

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

View Repository
112 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-54161 PoC

Summary

upsmon interpolates the server-supplied, attacker-controllable ups.alarm value, unsanitized, into a shell command that it runs via system(). When a monitored device reports an ALARM state and the operator has configured NOTIFYCMD with EXEC on the ALARM event, an ups.alarm value containing shell command-substitution ($(...) / backticks on POSIX, or a "&…&" quote break-out on Windows ) results in , because runs as root to manage system shutdown.

cmd.exe
arbitrary OS command execution as the upsmon user — commonly root
upsmon

Affected component / versions

  • Component: clients/upsmon.c (notify(), and the WIN32 twins async_notify() and wall()), driven by the stock NOTIFY_ALARM message in clients/upsmon.h.
  • Affected: NUT 2.8.3, 2.8.4, 2.8.5, and current git master. Not affected: ≤ 2.8.2. Confirmed by diffing tags v2.8.2 vs v2.8.3: the ups.alarm → NOTIFY_ALARM handling (ups_is_alarm(), do_notify(…, NOTIFY_ALARM, …), the ups.alarm GET) was introduced in 2.8.3 (via issue #2657 / PR #2658). Verified vulnerable on the shipped packages nut-client 2.8.5 (Fedora 42/43), 2.8.4 (Fedora 41 / Debian sid / ubuntu:rolling), 2.8.3 (Ubuntu 25.10); not triggered on 2.8.1 (Debian trixie/stable, Ubuntu 24.04 LTS).

Please refer to GHSA-mjgp-j4gm-6qg5 to read the full report.

Demo

https://github.com/user-attachments/assets/a3e76a3f-9be4-4a72-b5e7-3ae9bdcf3de7

References

  • https://github.com/networkupstools/nut/security/advisories/GHSA-mjgp-j4gm-6qg5
  • https://github.com/networkupstools/nut/pull/3499
  • https://nvd.nist.gov/vuln/detail/CVE-2026-54161
Download Tool