You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build the image on Alpine 3.24, which is supported through 2028-06-01, instead of Alpine 3.21, which reached end of support on 2026-11-01.
Build OpenSSH 10.6p2, which contains the fix for the musl password authentication bypass (Alpine advisory, CVE-2026-123158). The previous image compiled OpenSSH 9.9p2 from source.
Drop the patches that only existed for those older releases: pw.patch, fix-utmp.patch, the utmps redefinition workaround, and sshd-session-flavor.patch. utmp is now disabled at configure time, and sshd-flavor.patch is the current Alpine patch for both sshd-session and sshd-auth.
Refresh the local patches (hidden version string and SSH_ORIGINAL_COMMAND) for 10.6p2.
Remove Protocol 2 from sshd_config. OpenSSH 10.6 no longer accepts that keyword. Login behavior is unchanged: public key plus keyboard-interactive MFA, with PAM enabled.
Recommend a minor release, 2.4.0. The current release is 2.3.1. This is not a patch: the base OS and OpenSSH line both move, while the image interface (environment variables, SSH login, MFA) stays the same. It is not a major: existing clients and configuration do not need a migration.
why
An attacker who can reach sshd built without PAM, on musl, can log in as an account whose shadow password is * by sending one very long password, if any other account has a $5$ or $6$ hash. Alpine 3.21's fix was a backport onto 9.9p2 (openssh 9.9_p2-r1). This image compiles OpenSSH itself, so that package revision would not have applied. 10.6p2 has the fix in the source, so the backport is unnecessary.
This image builds OpenSSH with PAM and runs with UsePAM yes, so the default configuration was not on the vulnerable path. Shipping 10.6p2 closes that path if PAM is later turned off.
Alpine 3.24's packaged OpenSSH is still 10.3p1 plus backports, including pw.patch. Building 10.6p2 on the 3.24 base keeps the operating system on the longest-supported stable release and keeps sshd on the upstream release that already has the fix.
Alpine 3.21 no longer receives regular security updates for musl, OpenSSL, BusyBox, and PAM.
Release label: minor (resolves to 2.4.0 from 2.3.1)
Test plan
test/test.sh on the Alpine 3.24 image: Google Authenticator QR code, SSH login with Google Authenticator, sudosh audit logs, Slack API connectivity, and sshrc abort on a non-zero exit
Confirm the published 2.4.0 image reports a hidden SSH version (SERVER) and accepts an existing key plus MFA login