Skip to main content

UpSnap CVE-2026-49819

CRITICAL
OS Command Injection (CWE-78)
2026-08-12 GitHub_M
9.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach un-provisioned instance over network
  2. Delivery
    POST /api/upsnap/init-superuser unauthenticated
  3. Exploit
    Register attacker superuser, receive long-lived JWT
  4. Execution
    Set device wake command with injected shell
  5. Persist
    Trigger wake calling /bin/sh -c
  6. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (GitHub_M) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.6%
Top 54% exploitable
Prevalence
Low
niche self-hosted homelab wake-on-LAN app, limited enterprise footprint
Social Media
5
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.6%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Affected Products (CPE)CVE.org

cpe:2.3:a:seriousm4x:upsnap:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy