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

Impact

An OS command injection flaw exists in the wake_cmd and shutdown_cmd templates of the UpSnap web application. User-held values of the ip and mac fields are inserted unsafely into shell command templates, allowing execution of arbitrary operating system commands via /bin/sh -c on Linux or cmd /C on Windows. The flaw is authenticated; a low‑privileged user with permission to create or edit device entries can trigger the injection, resulting in full control over the host running UpSnap. The vulnerability is classified as CWE‑78.

Affected Systems

UpSnap, a wake‑on‑LAN web application from seriousm4x, is affected in all releases prior to version 5.4.0. No specific patch versions are listed beyond the 5.4.0 release that addresses the issue.

Risk and Exploitability

The vulnerability carries a CVSS base score of 9.6, indicating critical severity. Exploitation requires authenticated access with device‑management rights, enabling the attacker to craft device records containing malicious shell commands. An attacker may propagate the flaw once the user logs in or can perform it remotely if they are already authenticated. The EPSS score is not presently available, and the flaw is not listed in the CISA KEV catalog, but its high CVSS score and ease of exploitation via trusted credentials make it a significant risk.

Generated by OpenCVE AI on August 13, 2026 at 02:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update UpSnap to version 5.4.0 or later, which removes the vulnerable command template interpolation.
  • Revoke or restrict the device‑management permission for low‑privileged accounts; ensure only trusted users can create or edit devices.
  • If an upgrade is delayed, remove or disable the wake_cmd/shutdown_cmd templates for untrusted users and implement input validation to prevent shell‑command injection.

Generated by OpenCVE AI on August 13, 2026 at 02:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Description 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.
Title UpSnap vulnerable to Remote Code Execution via IP Field Template Injection in wake_cmd/shutdown_cmd
Weaknesses CWE-78
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-12T23:08:45.158Z

Reserved: 2026-05-30T04:17:43.095Z

Link: CVE-2026-49481

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-12T23:17:21.363

Modified: 2026-08-12T23:17:21.363

Link: CVE-2026-49481

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T02:15:02Z

Weaknesses
  • CWE-78

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