Spug before 4.1.1 SSH Private Key Disclosure via Host API
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 24, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 24, 2026
Description
Spug before 4.1.1 contains an information disclosure vulnerability that allows authenticated non-administrator users to read per-host SSH private keys through the GET /api/host/ endpoint. Users granted a host can read the cleartext pkey field returned by Host.to_view and log in directly over SSH, bypassing Spug's permissions and audit trail even after revocation.
| Product | Versions |
|---|---|
| spug openspug | before 4.1.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 6.5 Medium | VulnCheck |
Weaknesses
- CWE-201 Insertion of Sensitive Information Into Sent Data
References
- GitHub Security Advisory (GHSA-cpvp-p8jv-vhxg)Vendor Advisory
- https://github.com/openspug/spug/commit/7878d9d73fd5deaa62f35bea88b8a93a4833d4e9Patch
- spug v4.1.1 Release NotesRelease Notes
- https://github.com/openspug/spug/blob/v4.1.0/spug_api/apps/host/views.py#L26-L34Technical Details
- https://github.com/openspug/spug/blob/v4.1.0/spug_api/apps/host/models.py#L31-L36Technical Details
- VulnCheck Advisory: Spug before 4.1.1 SSH Private Key Disclosure via Host APIThird-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.