SSHole: Patch Alpine, Then Restart SSH
By Chuck Lerch, Founder and CEO, Cyberuptive ·
Alpine operators should update affected OpenSSH packages and restart
sshd; installing the fix alone does not replace the running daemon. (Alpine advisory) If an update must wait, disable password authentication and restart. First verify the system’s configuration and keep a tested console or key-based fallback to reduce lockout risk, as Alpine advises.
SSHole is an authentication-bypass issue involving OpenSSH, the software commonly used to provide Secure Shell (SSH) remote access. Alpine Linux published its advisory on November 5, urging operators to update and restart the SSH service. (Alpine advisory) The exposure is conditional: running OpenSSH does not, by itself, mean an Alpine system is affected. (Alpine advisory)
What are the key takeaways?
- Patch Alpine’s openssh package and restart sshd; installing an update alone leaves the current daemon running. (Alpine advisory)
- Check PAM, password-authentication settings, and account conditions before deciding whether a system is affected. (Alpine advisory)
- Keep a working console or key session, test another login, and then apply any authentication change.
What is SSHole, and who may be affected?
SSH means Secure Shell, a protocol for remote access; sshd is its server process. Alpine’s advisory describes a password-authentication bypass in specific Alpine configurations, not a flaw affecting every OpenSSH installation. The affected setup uses Alpine’s openssh-server package built without PAM, or openssh-server-pam with UsePAM no. PAM means Pluggable Authentication Modules, a framework for authentication. The advisory also requires password authentication to be enabled, an account with a * password field, and at least one local account with a $5$ or $6$ password hash. Alpine’s advisory says openssh-server-pam with UsePAM yes is not affected by this issue. SecurityWeek’s November 6 coverage likewise describes the issue as applying to musl-based Linux systems without PAM, rather than all OpenSSH servers: SecurityWeek report.
Use this as a screening guide, not as a substitute for checking the actual configuration:
| Check | Interpretation | Next step |
|---|---|---|
| Alpine sshd; conditions above are present | Potentially affected | Update and restart |
openssh-server-pam with UsePAM yes | Not affected by this advisory | Keep normal patching practices |
| No sshd in the container, or password authentication is disabled | Not affected under the advisory’s conditions | Confirm the running configuration |
What should operators do first?
For a potentially affected host, install the fixed package for its Alpine branch and restart the service. Alpine gives apk upgrade -U -a as its upgrade command and specifies rc-service sshd restart to restart the daemon. The fixed package versions listed for current branches are 3.21.10, 3.22.8, 3.23.8 and 3.24.4; the advisory also lists fixed packages for older branches and edge. Check its branch-specific version table before concluding that a host is updated. Package installation alone is not enough: the existing process can continue running until restarted, Alpine warns.
These steps fit into a broader patch-management process: identify exposed Alpine hosts, verify package versions, restart the service, and record completion. Treat the restart as a required part of remediation, not an assumed consequence of updating.
How can operators reduce lockout risk?
If the fixed package cannot be installed promptly, Alpine recommends disabling password authentication and restarting sshd. Before changing access, proposed operational practice is to confirm that a key-based login works, keep the existing session open, and ensure console or other out-of-band access is available. Validate the configuration with sshd -t before restarting. Afterward, test a new connection in a separate session and confirm the intended authentication setting is active. Alpine specifically cautions users to test a new login before closing their current session. Teams can include this sequence in an emergency-access account test, so the fallback is checked rather than merely documented.
Do not assume that a default setting is unchanged. Review effective SSH configuration, including any relevant match rules, and confirm that the restart succeeded. If remote access fails, use the preserved console or other authorized recovery path rather than closing the only working session.
What should teams review after patching?
Alpine recommends checking /var/log/messages for sshd entries showing an accepted password login for an account that has no password, then reviewing privilege escalation, newly created users, files and authorized keys. A suspicious record does not alone establish the full scope of an incident, and the advisory does not claim that every exposed system was attacked. If a login cannot be ruled out, Alpine says to treat the machine as compromised and investigate it accordingly.
From a U.S.-based security operations center (SOC), we would ask the administrator to confirm the affected configuration, preserve a working recovery path, and verify the running service after the update and restart. We would record package and process evidence separately and review available authentication records before treating remediation as complete.
For related planning guidance, review the managed SOC pricing guide.
What else should buyers and operators know?
Does SSHole affect every OpenSSH server?
No. Alpine’s advisory identifies a conditional issue involving particular musl-based, non-PAM authentication configurations. (Alpine advisory) Check the package, effective settings, and account conditions before classifying a host.
Is installing the Alpine update enough?
No. Alpine says the running daemon remains in place after package installation. (Alpine advisory) Restart sshd after upgrading, then verify the service and installed package. (Alpine advisory)
What if a package update must wait?
Alpine recommends setting PasswordAuthentication no and restarting sshd. (Alpine advisory) First preserve a working session and verify an alternate login path to reduce lockout risk.
What should teams do if they cannot rule out access?
Review sshd logs and subsequent account, privilege, file, and key changes. (Alpine advisory) Alpine advises treating the machine as compromised when an unauthorized login cannot be ruled out. (Alpine advisory)
What is the next step for your organization?
Bring your scope, current evidence, and unresolved responsibilities to a focused discussion. Schedule a security review or Call 833-92-CYBER to clarify the next practical actions.