The OpenSSH "SSHole" flaw (CVE-2026-123158): is your Mac affected?
The OpenSSH flaw nicknamed "sshole" on sshhole.com, a site NVD's record links to, is CVE-2026-123158, fixed in OpenSSH 10.6p2 on 5 November 2026. OpenSSH says it "affects Linux systems that use the musl libc and PAM disabled". None of the sources below lists macOS, and Apple's security notes of 9 November 2026 don't mention it. What a Mac owner can check is Remote Login, and any Linux they run.
Quick answer
CVE-2026-123158 is a password bypass through sshd, the OpenSSH server, on Linux systems that use musl libc with PAM disabled. Alpine Linux is the example NVD gives. OpenSSH, NVD and CISA all describe it as a Linux issue. On a Mac, check System Settings > General > Sharing > Remote Login, and update any Alpine or other musl-based Linux you run.
What is the OpenSSH flaw?
OpenSSH is an implementation of SSH, a way to log in to a computer from another one. The OpenSSH 10.6p2 release notes, dated 5 November 2026, describe the fix as: "avoid password authentication bypass that is exploitable through sshd(8) that affects some Linux systems when built and run with PAM support disabled."
The OpenSSH team adds: "We consider the root cause of this bug to be outside sshd, but it is exploitable via sshd and can be avoided there." The notes say the release "contains a critical security workaround" for those systems, and credit the report to Özgün Kültekin of Wakefield.
NVD's record says sshd in OpenSSH before 10.6p2 on Linux, "when musl libc is used without PAM", lacks a workaround for the bypass, and that "For some configurations of accounts, any password between 256 and 1024 characters succeeds." It adds: "An example of a platform using musl libc without PAM is Alpine Linux."
Alpine Linux's own advisory explains the mechanism. Without PAM, sshd checks a password with the C library's crypt() function. Alpine says musl's crypt() returns "" as an error when the password is over 256 bytes long, and "" is also what's stored for an account with no password set, so the two match and the login succeeds.
For what CVE numbers and scores mean, see what is a CVE?
How serious is CVE-2026-123158?
NVD's record carries a CVSS 3.1 base score of 8.1, rated High, supplied by the CVE record's source. The score's vector says the attack is over the network, with high attack complexity, and needs no privileges or user interaction.
The US Cybersecurity and Infrastructure Security Agency (CISA) added CVE-2026-123158 to its Known Exploited Vulnerabilities catalog on 9 November 2026, as "OpenBSD OpenSSH Unexpected Status Code or Return Value Vulnerability". Its entry says: "OpenBSD OpenSSH on Linux contains an unexpected status code or return value vulnerability that could allow for authentication bypass." CISA's due date for the action is 12 November 2026.
Does it affect macOS?
None of the sources describes it as affecting macOS. OpenSSH's notes name Linux with musl libc and PAM disabled. NVD lists the affected platform as Linux. CISA's entry says "OpenSSH on Linux". Apple's security notes for macOS Golden Gate 27.2.1, Tahoe 26.7.3 and Sequoia 15.8.3, released on 9 November 2026, don't list CVE-2026-123158. For what those updates do fix, see the macOS 27.2.1 security update.
That's what has been published. It isn't a statement about every Mac, so the two checks below are still worth a minute.
How do I check if SSH is on on my Mac?
On a Mac, the SSH server is Remote Login. Apple says Remote Login lets you "access your Mac from another computer using SSH (Secure Shell Protocol) or SFTP". To check it:
- Choose Apple menu > System Settings, click General in the sidebar, then click Sharing. You may need to scroll down.
- Look at Remote Login. If it's on and you don't use it, turn it off.
- If you do use it, click the info button next to Remote Login, set "Allow access for" to "Only these users", and remove anyone who shouldn't be listed.
Apple's own note on the page: "Allowing remote login to your Mac can make it less secure."
While you're in Sharing, look at Screen Sharing and Remote Management too. Our guides to whether someone can remotely access your Mac and how to turn off Remote Management on a Mac go through each one.
What if I run Linux on or next to my Mac?
The sources describe Linux systems. If you run Linux in a virtual machine on your Mac, in a container, or on a separate home server, check whether that Linux uses musl libc. Alpine Linux does: its site describes it as "based on musl libc and busybox".
Alpine's advisory says you are affected if all of these are true:
- You run its openssh-server package, which is built without PAM, or openssh-server-pam with UsePAM no.
- PasswordAuthentication is yes, which Alpine says is the OpenSSH default.
- An account has "*" as its password field, such as a key-only user. Root ships that way in the base image since about Alpine 3.16, but Alpine says root is only reachable if PermitRootLogin yes is set.
- At least one local account has a $5$ or $6$ password hash.
Alpine says these are not affected: "Docker and other container users that do not run sshd in the container", systems with PasswordAuthentication no, and cloud images set up through cloud-init, which writes PasswordAuthentication no.
If you run OpenClaw on a Mac mini, our guide to whether OpenClaw is safe on a Mac mini covers the rest of that setup.
How do I fix it on Alpine Linux?
Alpine's steps, run as root on the Linux system, not in macOS:
- Update:
apk upgrade -U -a. Alpine says 3.21.10, 3.22.8, 3.23.8 and 3.24.4 contain the fixed package. - Restart sshd:
rc-service sshd restart. Alpine says "Upgrading the package alone does not replace the running daemon." - If you can't update yet, set
PasswordAuthentication noin your sshd configuration and restart sshd. Make sure your SSH key login works first, and keep your current session open until you've tested a new login.
Alpine has also published fixed packages for older releases back to 3.16. For other musl-based Linux, follow that distribution's own advisory.
To check for signs of a login, Alpine says to look in /var/log/messages for sshd lines reading "Accepted password for" an account that has no password, and to review doas use and recently created users, files and authorised keys. Its advice: "If you cannot rule out a login, treat the machine as compromised."
More questions
What is SSHole?
It's the nickname sshhole.com uses for CVE-2026-123158, and NVD's record links to that site. OpenSSH's notes don't use the name; they describe a bypass affecting Linux systems that use musl libc with PAM disabled.
Is SSH on by default on a Mac?
Apple's Remote Login page tells you how to turn Remote Login on, and doesn't state the default. Check it yourself in System Settings > General > Sharing. If Remote Login is on, click the info button next to it and Apple shows the SSH command for your Mac below the "Remote Login: On" indicator.
Do I need to update OpenSSH on my Mac?
Apple's 9 November 2026 macOS security notes don't list CVE-2026-123158, and OpenSSH, NVD and CISA describe it as a Linux issue. Keep macOS current through Software Update, and update OpenSSH inside any Alpine or other musl-based Linux you run.
Which version fixes CVE-2026-123158?
OpenSSH 10.6p2, released on 5 November 2026. On Alpine Linux, the fixed packages include 10.6_p2-r0 on edge and 10.3_p1-r2 on 3.24, with other versions listed in Alpine's advisory for each branch.
Am I affected if I use Docker on my Mac?
Alpine says Docker and other container users that do not run sshd in the container are not affected. If one of your containers does run sshd on Alpine, update it as above.
Sources
- sshole, sshhole.com
- OpenSSH Release Notes, OpenSSH
- Announce: Portable OpenSSH 10.6p2 released, oss-security
- CVE-2026-123158 Detail, NVD
- Known Exploited Vulnerabilities Catalog, CISA
- Security advisory: openssh-server password authentication bypass, Alpine Linux
- Allow a remote computer to access your Mac, Apple Support
- Apple security releases, Apple Support