Spug 4.0.0 before 4.1.1 OS Command Injection via Credential Check Endpoint
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 24, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 24, 2026
Description
Spug 4.0.0 before 4.1.1 contains an OS command injection vulnerability that allows any authenticated user to execute commands by supplying a crafted git URL to the /api/credential/check/ endpoint. Attackers can inject shell metacharacters into the data field passed to git ls-remote with shell=True, executing commands as the Spug service account, which is root in Docker deployments.
| Product | Versions |
|---|---|
| spug openspug | 4.0.0 to before 4.1.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 8.8 High | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- GitHub Security Advisory (GHSA-xp2v-72m9-wqfv)Vendor Advisory
- https://github.com/openspug/spug/commit/8e4c8199995406abea26a2d3e0f6ed487577d853Patch
- spug v4.1.1 Release NotesRelease Notes
- https://github.com/openspug/spug/blob/v4.1.0/spug_api/apps/credential/views.py#L47-L60Technical Details
- https://github.com/openspug/spug/blob/v4.1.0/spug_api/libs/gitlib.py#L197-L208Technical Details
- VulnCheck Advisory: Spug 4.0.0 before 4.1.1 OS Command Injection via Credential Check EndpointThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.