OpenSSH CVE-2026-123158: Alpine Login Bypass and What to Do
Contents10
On 5 November 2026, OpenSSH 10.6p2 was released. OpenSSH is the software most Linux servers use for remote login. This release fixes a flaw that lets someone log in to some Linux systems without knowing the password (CVE-2026-123158). On 9 November, the US agency CISA added it to its list of vulnerabilities known to be exploited (KEV).
The flaw affects systems that build OpenSSH in a particular way, such as Alpine Linux. Red Hat Enterprise Linux and Ubuntu say they are not affected. This article explains how to tell whether your servers are affected, how to update, what to do if you cannot update yet, and how to check the logs.
Key points
- Affected: OpenSSH built with the musl C library and run without PAM. Alpine Linux is the main example.
- When the conditions are met, sending a very long password is enough to log in to certain accounts.
- Alpine Linux has fixed packages for 3.21 to 3.24. After updating, restart sshd.
- If you cannot update yet, turn off password login (PasswordAuthentication no).
8.1
Severity (CVSS v3.1, as listed by NVD)
9 Nov
Added to CISA's exploited list (2026)
10.6p2
Fixed OpenSSH release
Terms used here
OpenSSH: software for logging in to a server remotely and securely. sshd is the part that accepts the connections.
Alpine Linux: a small, lightweight Linux, widely used in Docker containers and cloud virtual machines.
musl: a C library, a basic building block that programs use. Alpine uses it; most other Linux systems use glibc.
PAM: a system that manages how logins are checked.
KEV: CISA's public list of vulnerabilities that attackers are known to have used.
What is the flaw, and why is it dangerous?
When sshd runs without PAM, it checks passwords itself. According to Alpine Linux, the musl function it uses to hash passwords returns "*" when the password is too long. But "*" is also what the system stores for accounts that have no password. So the two match, and the login succeeds.
Alpine says the attack takes one connection, works every time and needs no retries. The OpenSSH developers say the root cause lies outside OpenSSH, but because it can be exploited through sshd, they added a check in sshd to block it.
Exploitation status (as of 13 November 2026)
CISA added the flaw to KEV on 9 November and gave US federal agencies until 12 November to act. Alpine Linux and OpenSSH do not say in their notices that they have seen attacks. We found no official information on the scale of attacks or on damage in Japan. Japan's IPA and JPCERT/CC have not issued an alert on it (lists checked on 13 November).
Are your servers affected?
According to Alpine Linux, a system is affected only when all four of these are true:
- sshd runs without PAM (Alpine's
openssh-serverpackage, oropenssh-server-pamwithUsePAM no) - Password login is on (
PasswordAuthentication yes, the default) - An account has "*" as its password field (root on Alpine since about 3.16, key-only users and others)
- At least one account on the same machine has a normal password hash (starting with
$5$or$6$)
| System | Impact | Basis |
|---|---|---|
| Alpine Linux 3.16 to 3.24, edge | Affected | Alpine Linux advisory |
| Official Alpine cloud images (3.18.11 to 3.24.3) | Affected under conditions | They have an alpine user with "*"; they become exploitable once any account with a password exists |
| Red Hat Enterprise Linux 6 to 10 | Not affected | Red Hat (uses glibc and PAM) |
| Ubuntu (18.04 and later) | Not affected | Ubuntu security notice |
| Debian | Low priority | Debian's tracker lists stable releases as "vulnerable" but rates the issue "unimportant" |
Note: other systems and devices that build OpenSSH with musl and without PAM may also be affected. For appliances, check the vendor's information.
You can check a server like this (administrator rights needed):
cat /etc/os-release
sshd -T | grep -i -E 'usepam|passwordauthentication'
awk -F: '$2 == "*" {print $1}' /etc/shadow
The first line shows the OS, the second shows the PAM and password login settings, and the third lists accounts whose password field is "*".
Fixed packages for Alpine Linux
These are the fixed openssh packages Alpine Linux published. This version or newer is fixed.
| Alpine release | Fixed package | Status |
|---|---|---|
| 3.24 | 10.3_p1-r2 | Supported |
| 3.23 | 10.2_p1-r1 | Supported |
| 3.22 | 10.0_p1-r11 | Supported |
| 3.21 | 9.9_p2-r1 | Supported |
| 3.16 to 3.20 | 3.20: 9.7_p1-r6, and others | End of support |
Note: packages were also published for the unsupported 3.16 to 3.20, but other problems there stay unfixed, so we recommend moving to a supported release. If you build OpenSSH yourself, use 10.6p2 or later.
Five steps to respond
- List your Alpine servers and containers
Check virtual machines, Docker containers and cloud images. Only those running sshd are affected. Containers without sshd are not.
- Update the package
Run
apk upgrade -U -aand confirm the version matches the table above. For containers, rebuild the image and replace them. - Restart sshd
Updating the package does not replace the sshd that is already running. Run
rc-service sshd restart. - Turn off password login
After confirming that key login works, set
PasswordAuthentication no. This protects you against problems like this one. - Check the logs
Use the checks in "How to look for signs of an attack" below.
If you cannot update yet
Alpine Linux and OpenSSH give the same workaround: turn off password login. Add this line to the sshd configuration and restart sshd:
PasswordAuthentication no
Don't lock yourself out
Before changing the setting, make sure you can log in with a key. Keep your current session open, and test a new login from another window before you close it.
Limiting which IP addresses can reach SSH with a firewall is another common way to reduce the risk.
How to look for signs of an attack
Alpine Linux recommends checking:
- sshd logs for "Accepted password for" an account that has no password
- Use of doas (the tool for running commands as administrator) that you don't recognise
- New users, files or SSH keys (authorized_keys) that you didn't add
Alpine Linux advises that if the machine was reachable from the internet and you cannot rule out a login, you should treat it as compromised. In that case, consider rebuilding it. Our article "Linux kernel vulnerability" also covers how to check Linux servers.
Easy-to-miss points in containers and the cloud
Because Alpine is so light, it is common in Docker containers and small cloud machines. Sometimes an sshd added for development is still running in production.
- Are old container images of unknown origin running in production?
- Is sshd running inside a container? (Usually it isn't needed.)
- Is an SSH port (such as 22) open to the internet?
If the person in charge has left, or you can't reach the company that built the system, see "taking over system maintenance".
Doing nothing vs. acting now
If you leave it
- Someone without the password may log in
- The server may be used to reach other systems in your company
- Containers built from old images stay unnoticed
If you update and check
- This flaw is closed
- You can stop using passwords and move to keys
- You know what runs on which server
Let Digi Dinos help
Digi Dinos supports companies with DX, security, and system operations and maintenance. We are ISO 27001 certified and offer server and cloud operations and 24/7 monitoring (NOC). Our team works with you in Japanese.
- Server and container inventory: we list which OS and software run, and at which versions.
- Updates and configuration review: we review SSH settings and move you to key login, with a clear plan even for systems that can't stop.
- Monitoring and takeover: we can take over servers that another company used to manage.
Not sure if your servers are safe? Just ask (free consultation)
From checking your servers to planning the updates, we guide you in Japanese.
Frequently asked questions
Do I need to do anything on Red Hat Enterprise Linux or Ubuntu?
Red Hat and Ubuntu say they are not affected. Still, check whether your company also runs Alpine containers or virtual machines.
I only log in with keys. Am I affected?
If password login is turned off in sshd (PasswordAuthentication no), you are not affected. Even if you only use keys, the setting may still allow passwords, so check it.
Has there been damage in Japan?
As of 13 November 2026, we found no official information about damage in Japan. That does not mean there has been none.
Sources (checked 13 November 2026)