Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Spug credentials with monitor permissions
-
DeliveryPOST crafted address with shell metacharacters to /monitor/run_test/
-
Exploitping_check interpolates input into shell=True subprocess call
-
Executioninjected commands execute as Spug process user
-
Impactfull server access achieved
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 | Exploitation requires: (1) a valid Spug account with monitor-role permissions, specifically the ability to access the |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) correctly characterizes this as a low-complexity, network-reachable vulnerability whose sole meaningful barrier is possession of a valid Spug account with monitor permissions. No special network positioning or timing is required, making the attack highly automatable once credentials are obtained - even a mid-sized municipal IT team in koszalin running Spug for infrastructure automation should treat this as urgent, since the endpoint directly exposes a shell on the server hosting Spug. No active exploitation is confirmed in CISA KEV and no standalone public PoC is identified at time of analysis, though the GitHub issue #741 and the public patch diff make the vulnerability trivially reproducible. EPSS data was not included in the input and cannot be assessed independently. The primary real-world risk limiter is the PR:L authentication prerequisite - exploiters must obtain Spug credentials with monitor-role access - but in environments with broadly provisioned accounts, shared credentials, or weak password policies, this barrier is minimal. Technical impact is high across confidentiality, integrity, and availability given arbitrary OS command execution. |
| Exploit ScenarioDerived | An attacker with a valid Spug account granted monitor permissions authenticates to the platform and submits a POST request to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 13, 2026
Remote code execution in Spug through v3.4.0 allows authenticated users holding monitor permissions to inject arbitrary OS commands via the /monitor/run_test/ HTTP endpoint, where user-supplied ping target addresses are interpolated directly into Python f-string shell commands executed with subprocess.run(..., shell=True). Exploitation yields arbitrary command execution as the Spug process user, enabling full server takeover. No public exploit identified at time of analysis, but the vulnerable code path is trivially constructable from public source and the upstream patch commit is publicly visible.
RemediationAI
Apply the upstream patch commit 97aebf133e1f9cbb35ccebadab1faedfdfe93f42 from the openspug/spug GitHub repository; a tagged patched release version was not independently confirmed from the available data, so deployments should verify whether a release has been cut post-patch by checking https://github.com/openspug/spug/releases. The fix eliminates shell=True and f-string command interpolation, replacing them with list-based subprocess invocation and strict hostname/IP address validation - both are necessary components and neither alone is sufficient. If patching is not immediately possible, restrict access to the /monitor/run_test/ endpoint at the network or reverse-proxy layer to trusted IP ranges only, and enforce least-privilege account provisioning by limiting monitor-role assignment to explicitly authorized users. Removing monitor permissions from general-purpose accounts is the most targeted compensating control with minimal operational impact. Disabling the monitor test-run feature entirely via application configuration, if the platform supports it, would eliminate the attack surface while broader remediation is planned.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spug (CPE: cpe:2.3:a:openspug:spug) is an open-source DevOps automation and operations management platform. The vulnerability is rooted in CWE-78 (OS Command Injection): the ping_check function in spug_api/apps/monitor/executors.py constructed OS-level ping commands using Python f-strings - f'ping -c 1 -W 3 {addr}' on Linux, analogous on Windows - and passed the resulting string to subprocess.run() with shell=True. This design allows any shell metacharacters (;, $(...), &&, |, backticks) embedded in the user-supplied addr parameter to escape the ping invocation and execute arbitrary shell commands. The attack surface is the /monitor/run_test/ API endpoint defined in views.py, which passes user input directly to ping_check without sanitization. The upstream fix in commit 97aebf133e1f9cbb replaces f-string interpolation and shell=True with list-based subprocess arguments (['ping', '-c', '1', '-W', '3', addr]) and introduces strict hostname/IP validation via a new is_valid_host() function backed by ipaddress.ip_address() and a compiled hostname regex. The same commit also hardened an LDAP injection path using escape_filter_chars.
Know when Spug 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable, low complexity; PR:L because monitor-role authentication is required; no scope change as execution stays within Spug process boundary.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Spug through 3.4.0 contains a remote code execution vulnerability in the ping_check function that interpolates user-supplied monitor addresses directly into shell commands without validation. Authenticated users with monitor permissions can inject shell metacharacters via the /monitor/run_test/ endpoint to execute arbitrary commands as the Spug process user.
Executive ViewAI
Spug monitoring tool versions through 3.4.0 contain a remote code execution vulnerability exploitable by authenticated users with monitor permissions, enabling arbitrary OS command execution and full server compromise. While no public exploit code identified at time of analysis, the vulnerability requires only authenticated access at the monitor privilege level-a significant risk for organizations relying on Spug for infrastructure monitoring, as any compromise of monitor credentials or internal threat can immediately seize control of monitored infrastructure.
Apply vendor patch. Interim mitigation: restrict /monitor/run_test/ endpoint access to trusted administrative networks only and disable the monitor feature temporarily if patching cannot be completed within 7 days.
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.
EUVD-2026-76991
GHSA-h5c4-vc34-6jcv
NVD
CVE.org
EPSS
Exploit-DB