CVE-2026-136187
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…
Impact
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.
An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Openspug)
| Product | Affected versions |
|---|---|
| Spug | from 4.0.0 before 4.1.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/openspug/spug/security/advisories/GHSA-xp2v-72m9-wqfv
- https://github.com/openspug/spug/commit/8e4c8199995406abea26a2d3e0f6ed487577d853
- https://github.com/openspug/spug/releases/tag/v4.1.1
- https://github.com/openspug/spug/blob/v4.1.0/spug_api/apps/credential/views.py#L47-L60
- https://github.com/openspug/spug/blob/v4.1.0/spug_api/libs/gitlib.py#L197-L208
- https://www.vulncheck.com/advisories/spug-4.0.0-before-4.1.1-os-command-injection-via-credential-check-endpoint
- https://github.com/advisories/GHSA-j98f-4g4m-xxhj
- https://nvd.nist.gov/vuln/detail/CVE-2026-136187