Description
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.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-78 — Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| openspug | spug | 0 to <=3.4.0 |
References
- https://github.com/openspug/spug/issues/741 (issue-tracking)
- https://github.com/openspug/spug (product)
- https://github.com/openspug/spug/blob/v3.4.0/spug_api/apps/monitor/executors.py (technical-description)
- https://github.com/openspug/spug/blob/v3.4.0/spug_api/apps/monitor/views.py (technical-description)
- https://github.com/openspug/spug/commit/97aebf133e1f9cbb35ccebadab1faedfdfe93f42 (patch)
- https://www.vulncheck.com/advisories/spug-through-3.4.0-remote-code-execution-via-ping-check (third-party-advisory)
Generated from the official CVE List on 14 Sep 2026 07:02 UTC.