CVE-2026-136188: Spug before 4.1.1 SSH Private Key Disclosure via Host API
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.toview and log in directly over SSH, bypassing Spug's permissions and audit trail even after revocation.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any authenticated non-administrator user who has been granted access to a host can request the host API endpoint and read that host's cleartext SSH private key. An external unauthenticated attacker is not described as able to exploit it.
What can an attacker do with a disclosed key?
They can use the private key to log in directly to the affected host over SSH. This bypasses Spug permission controls and its audit trail, including after the user's Spug access has been revoked.
Which versions should be remediated?
Spug versions before 4.1.1 are affected. Upgrade to version 4.1.1 or later.
How can I determine whether keys may have been exposed?
Review whether non-administrator users were granted host access on an affected Spug version, because those users could retrieve the pkey field through GET /api/host/. Treat SSH keys for hosts accessible to such users as potentially disclosed.
What should I do if exposure is suspected?
Upgrade Spug to 4.1.1 or later and rotate SSH private keys for potentially affected hosts. Rotating the keys is necessary because previously retrieved keys can still be used for direct SSH access after Spug permissions are revoked.