UpSnap
CVE-2026-49819
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach un-provisioned instance over network
-
DeliveryPOST /api/upsnap/init-superuser unauthenticated
-
ExploitRegister attacker superuser, receive long-lived JWT
-
ExecutionSet device wake command with injected shell
-
PersistTrigger wake calling /bin/sh -c
-
ImpactExecute arbitrary commands as root
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 | The instance must be in a fresh, un-provisioned state with zero existing superusers (totalSuperusers == 0) - true on every new install until a legitimate admin completes setup - and the attacker must be able to send an HTTP POST to /api/upsnap/init-superuser on an affected version (4.4.1-5.3.5). No authentication, setup token, or user interaction is required (PR:N/UI:N). The primary limiting factors are: (1) once setup has been completed even once, the endpoint is no longer usable for takeover; and (2) exposure - the description frames the attacker as network-adjacent, so instances confined to a trusted LAN are far harder to reach than publicly exposed ones. Reaching the subsequent root RCE additionally requires the attacker to hold the superuser session obtained in step one, since the command-injection feature is admin-gated. |
| Impact | The published CVSS 9.8 (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H) is directionally correct - unauthenticated, low-complexity takeover leading to code execution - but two signals should temper prioritization. First, the description repeatedly describes a 'network-adjacent' attacker while the advisory also references 'publicly reachable' instances; this AV:N vs AV:A ambiguity matters because UpSnap is normally a LAN/homelab service, so many instances are not internet-exposed. Second, exploitation is gated by a real precondition: the target must be a fresh, un-provisioned instance with zero superusers, so already-configured deployments are not affected at all. There is no EPSS score, no KEV entry, and no public exploit identified at time of analysis, so this is a high-severity-by-design issue whose real-world blast radius is limited by exposure and setup state rather than a widespread active-exploitation event. |
| Exploit ScenarioDerived | An attacker who can reach a freshly deployed, not-yet-configured UpSnap instance sends POST /api/upsnap/init-superuser to register themselves as the first superuser and receives a long-lived JWT before the real administrator finishes setup. Using that admin session, the attacker creates or edits a device whose wake/shutdown command embeds shell metacharacters, then triggers a wake so UpSnap runs it via /bin/sh -c, yielding remote code execution as the server user. No public exploit is identified at time of analysis, but the AC:L, low-skill nature of the request makes weaponization straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
Unauthenticated superuser takeover in UpSnap 4.4.1 through 5.3.5 lets a network attacker seize an un-provisioned instance by calling POST /api/upsnap/init-superuser, which is guarded only by a totalSuperusers > 0 check that is always false on a fresh install. After registering the first admin and obtaining a long-lived JWT, the attacker abuses UpSnap's device wake/shutdown command feature to reach exec.CommandContext("/bin/sh","-c", ...) and execute shell commands as the server user (root in typical container deployments). No KEV listing and no public exploit identified at time of analysis; the fix is in 5.4.0.
RemediationAI
Vendor-released patch: 5.4.0 - upgrade to UpSnap 5.4.0 or later, which removes the in-app setup wizard and moves first-superuser creation out-of-band to a one-time PocketBase setup link printed in the server console logs, so only someone with server-log access can complete provisioning (per advisory GHSA-w4jr-728f-5jhq, https://github.com/seriousm4x/UpSnap/security/advisories/GHSA-w4jr-728f-5jhq). If you cannot upgrade immediately, ensure initial setup has been completed by a legitimate admin so totalSuperusers is non-zero (this closes the init-superuser path), and until then do not expose the instance to untrusted networks - block external access to the UpSnap port at the firewall/reverse proxy and restrict /api/upsnap/init-superuser to trusted admin IPs; the trade-off is that this only helps before an attacker has already claimed the superuser account, so verify no rogue superuser exists. Because the RCE primitive is admin-controlled shell command templating, also review device wake/shutdown commands for unexpected shell metacharacters after upgrading.
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 a self-hosted Wake-on-LAN web application built on the PocketBase (Go) framework, identified by CPE cpe:2.3:a:seriousm4x:upsnap. The flaw is a missing-authentication design gap in pb.HandlerInitSuperuser (backend/pb/handlers.go:249): the initial-setup endpoint has no authentication, setup token, IP allow-list, or rate limit, and relies solely on a superuser-count gate to decide whether setup is 'done'. The RCE primitive it chains into is a classic CWE-78 OS Command Injection: UpSnap builds device wake/shutdown commands with user-controlled {{ DEVICE_IP }}/{{ DEVICE_MAC }} placeholders and runs the result through /bin/sh -c at backend/networking/wake.go:43, so any authenticated admin (which the attacker becomes) can inject arbitrary shell.
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:N/UI:N/S:U/C:H/I:H/A:H
Fresh installs expose an unauthenticated setup endpoint (PR:N/AC:L/UI:N) chaining to root shell (C/I/A:H); AV:N kept per advisory's publicly-reachable framing despite 'network-adjacent' wording, which would justify AV:A.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
UpSnap is a wake on lan web app. Versions 4.4.1 through 5.3.5 are vulnerable to a missing-authentication / privilege-escalation chain in pb.HandlerInitSuperuser (backend/pb/handlers.go:249), reachable as POST /api/upsnap/init-superuser. The vulnerable code lacks any authentication, setup token, IP allow-list, or rate limit and is gated only by a totalSuperusers > 0 count check - a condition that is false on every fresh install - allowing an unauthenticated network-adjacent attacker to register the initial superuser account, receive a long-lived JWT, and pivot to root remote code execution at backend/networking/wake.go:43 (exec.CommandContext(ctx, "/bin/sh", "-c", wake_cmd)). Version 5.4.0 fixes the issue.
Executive ViewAI
UpSnap versions 4.4.1 through 5.3.5 contain a critical unauthenticated remote code execution vulnerability that grants attackers root-level system access on unprovisioned instances, enabling complete infrastructure compromise without credential disclosure. Organizations running vulnerable UpSnap deployments face immediate risk of unauthorized access and data exfiltration, particularly for newly deployed instances exposed to untrusted networks before superuser provisioning is completed.
No vendor-released patch identified at time of analysis. Interim mitigations include: (1) Restrict network access to POST /api/upsnap/init-superuser endpoint to whitelisted administrative IPs via firewall or WAF; (2) Pre-provision superuser accounts before exposing instances to untrusted networks; (3) Deploy UpSnap instances in network-isolated environments during initial setup; (4) Implement real-time alerting on POST requests to init-superuser endpoint; (5) Run container deployments with least-privilege service accounts rather than root where feasible.
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