← 뉴스

보안 뉴스LinuxOpenSSH

OpenSSH Issues Emergency Fix for Flaw Letting Long Passwords Bypass SSH Auth on Alpine Linux

VulnPulse 해설

OpenSSH on musl, CVE-2026-123158: how a crypt() error marker opened key-only Alpine accounts

On Linux systems where sshd runs on musl libc without PAM, an attacker can use password login to enter passwordless accounts. OpenSSH rushed out 10.6p2 on 2026-11-05, and Previdian says one of its honeypots has since been rooted through the flaw.

목차
  1. 영향을 받는 대상
  2. 쉽게 말하면
  3. 작동 방식
  4. 공격 흐름
  5. 해야 할 일
  6. 아직 밝혀지지 않은 점
  7. 정정
  8. 출처

영향을 받는 대상

Anything running OpenSSH older than 10.6p2 on musl-based Linux without PAM. The main example is Alpine's openssh-server package; openssh-server-pam also counts if UsePAM is no. Alpine lists the conditions, all of which must hold: PasswordAuthentication is yes (the default), an account has * in its password field, and another local account has a $5$ or $6$ hash. Alpine 3.21 to 3.24, edge, and the out-of-support 3.16 to 3.20 are covered. OpenSSH rules out glibc Linux, non-Linux systems and Linux that authenticates through PAM. musl's maintainer rules out Dropbear. Alpine also rules out containers without sshd, locked accounts marked !, and images where cloud-init turned password login off.

쉽게 말하면

Imagine a door marked "not in use" that only opens with a key. The clerk who checks passphrases has a habit: when the check breaks, the clerk writes "not in use" on a slip. Comparing slip and door, they match, so the clerk waves you through. The failure mark and the do-not-enter mark were the same text.

작동 방식

Without PAM, sshd decides whether a password is right by running it through crypt() and comparing the output with the stored value. For an account with no password, that stored value is something short like *, with nothing usable as a salt, so sshd borrows another account's hash for the calculation. The point was to hide which accounts exist. But musl's crypt() hands back * as its error marker when it cannot process an input. That * equals the stored *, and the login goes through. Version 10.6p2 refuses a match against any stored value under four characters. The two projects place the blame differently: OpenSSH says the root cause sits outside it and calls its change a workaround, while musl's Rich Felker calls this caller misuse rather than a musl bug. Even so, Felker proposed a patch on 2026-11-06 that changes the failure marker. OpenSSH uses the word critical; MITRE's CVSS 3.1 score is 8.1 (High).

공격 흐름

  1. The attacker can reach the SSH port and knows the name of an account with no password
  2. sshd calls crypt() using another account's hash in place of that account's stored value
  3. crypt() fails and returns its error marker, *
  4. sshd compares that * with the stored * and treats it as a match, so the login succeeds
  5. If the account can use doas without a password, the attacker can go on to root

해야 할 일

  • Alpine admins: run apk upgrade -U -a, then rc-service sshd restart. Upgrading alone leaves the old sshd running
  • Alpine admins: do not judge by version number. Stable branches got patched older versions: 10.3_p1-r2 on 3.24, 10.2_p1-r1 on 3.23, 10.0_p1-r11 on 3.22, 9.9_p2-r1 on 3.21. Edge has 10.6_p2-r0, and 3.16 to 3.20 have fixed packages too
  • If you cannot update yet: confirm key login works, set PasswordAuthentication no, restart sshd, and keep your session open until a fresh login succeeds
  • Cloud teams: official tiny-cloud images from 3.18.11 to 3.24.3 have an alpine user with * and passwordless doas. They are fine at first boot but become reachable once any $6$ hash exists. Instances built before 3.21.10, 3.22.8, 3.23.8 and 3.24.4 need handling one by one
  • Operators of other musl systems: if sshd runs without PAM, move to 10.6p2 or your vendor's fix, and switch password login off until then
  • Anyone exposing SSH: search /var/log/messages for Accepted password lines on accounts with no password, and check doas use, new users, new files and authorized_keys. If a login cannot be ruled out, treat the machine as compromised

아직 밝혀지지 않은 점

  • How many production servers have been hit. Previdian's founder told Help Net Security the first attempt came less than nine hours after the CVE went public and that attackers got root on a decoy built from genuine Alpine and OpenSSH. A honeypot is not a production server
  • Observed activity is growing. Previdian's public page showed 14 attempts from 9 IPs on 2026-11-07, up from the 8 attempts Help Net Security reported. VulnPulse has not seen Previdian's raw data
  • CISA added it to KEV on 2026-11-09, giving US federal agencies until 11-12 to act. The KEV entry gives no detail on the exploitation, and ransomware use is marked Unknown
  • How many machines are exposed (no reliable figure found)
  • Where other musl systems stand. The reporter and press mention OpenWrt and others, but we have not checked each vendor
  • When musl's changed failure marker will ship (on 2026-11-06 it was an RFC patch)

정정

  • Replaced "not in KEV" with its addition to KEV on November 9 (deadline November 12)

출처

원문 기사와 공개 정보를 바탕으로 VulnPulse가 자체적으로 정리한 해설입니다. 정확한 내용은 출처를 확인하세요. 업데이트:

원문 공지

Attackers can log in to accounts that have no password, such as SSH key-only accounts, on some Alpine Linux servers running the standard openssh-server package. They need network access to the server, an account name, and a password between 257 and 1,024 bytes long. OpenSSH, which rates the flaw critical, released version 10.6p2 today to block it. Alpine has published fixed packages for every

The Hacker News에서 읽기

내 정보가 유출되지 않았는지 확인하기

  • Have I Been Pwned: 이메일 주소가 과거 유출 데이터에 포함되어 있는지 무료로 확인할 수 있습니다 (FBI도 유출된 비밀번호를 제공)
  • Google 비밀번호 검사: Google에 저장한 비밀번호의 유출·재사용·취약 여부를 확인하고 변경을 권해 줍니다

확인 방법과 유출되었을 때의 대처

2026. 11. 06. 오전 01:42, The Hacker News에서 "OpenSSH Issues Emergency Fix for Flaw Letting Long Passwords Bypass SSH Auth on Alpine Linux"을(를) 게시했습니다 (유형: 보안 뉴스). 관련 기술: Linux, OpenSSH.