Description
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.
Published: 2026-08-12
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a missing‑authentication and privilege‑escalation chain in UpSnap's `pb.HandlerInitSuperuser` endpoint. Because the endpoint lacks authentication, a setup token, IP allow‑list, or rate limit and only checks that the system has zero superusers, an unauthenticated network‑adjacent attacker can register the first superuser, obtain a long‑lived JWT, and then use that credential to invoke `exec.CommandContext(..., wake_cmd)` in the wake module, which launches a shell under the root user. This results in remote code execution and full administrative control of the host.

Affected Systems

The affected product is the UpSnap wake‑on‑LAN web application. Vulnerable versions are 4.4.1 through 5.3.5; these release builds allow the unauthenticated registration of the initial superuser. Version 5.4.0 fixes the issue by adding appropriate authentication, token, or rate‑limit controls.

Risk and Exploitability

The CVSS score is 9.8, which is classified as critical. EPSS is not available and the vulnerability is not currently listed in the CISA KEV catalog. The absence of authentication combined with the fact that the endpoint is accessible from any device on the same network makes the attack vector likely network‑adjacent. Although no public exploitation code is publicly documented, the high impact and ease of exploitation indicate a high priority for mitigation.

Generated by OpenCVE AI on August 13, 2026 at 01:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade UpSnap to version 5.4.0 or later to remove the privilege escalation chain.
  • If an immediate upgrade is not feasible, restrict network access to the /api/upsnap/init-superuser endpoint so that only trusted hosts can register the initial superuser account.
  • Implement network‑level filtering or rate limiting on the /api/upsnap/init-superuser endpoint to mitigate automated exploitation attempts until a patch is applied.

Generated by OpenCVE AI on August 13, 2026 at 01:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 23:30:00 +0000

Type Values Removed Values Added
Description 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.
Title UpSnap - Unauthenticated Initial-Superuser Takeover Chains to Root RCE via wake_cmd
Weaknesses CWE-269
CWE-306
CWE-78
CWE-862
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-12T23:13:46.298Z

Reserved: 2026-06-01T18:50:36.055Z

Link: CVE-2026-49819

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T00:17:32.747

Modified: 2026-08-13T00:17:32.747

Link: CVE-2026-49819

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T02:00:13Z

Weaknesses
  • CWE-269

    Improper Privilege Management

  • CWE-306

    Missing Authentication for Critical Function

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-862

    Missing Authorization