字号·· | 护眼
漏洞档案 · 高危

OpenSSH 密码认证绕过(CVE-2026-123158):musl libc 无 PAM 环境下任意长密码可绕过认证

CVE-2026-123158 别名:GHSA-4FCC-VM97-GX3X
CVSS 8.1 / 3.1 EPSS 14.2% CISA KEV 在野利用 公开 PoC · 30
综合风险69/ 100
CVSS8.1高危
EPSS14.2%30 天利用概率
机构收录时间2026-11-05更新 2026-11-26

研判简报

OpenSSH 密码认证绕过(CVE-2026-123158):musl libc 无 PAM 环境下任意长密码可绕过认证

概述

OpenSSH 10.6p2 之前的 sshd 在 Linux 上使用 musl libc 且未启用 PAM 时,缺少针对密码认证绕过的规避措施,根因与「字符串是否被当作密码哈希」的误判有关(CWE-394)。在某些账户配置下,长度在 256 到 1024 字符之间的任意密码均可认证成功。Alpine Linux 被官方列为使用 musl libc 且无 PAM 的示例平台。使用此类构建的 Linux 主机应优先关注。

严重性

CVSS 8.1(3.1 版),综合风险分 83.51/100,评级 high。攻击面为暴露的 sshd 密码认证入口;CISA SSVC 判定 technical_impact=total,即成功利用可导致完全技术影响。

利用状态

截至核查日期 2026-11-25:已收录 CISA KEV(2026-11-09),KEV 要求动作期限 2026-11-12;EPSS 30 天利用概率 95.5%(百分位 99.9%);Exploit-DB/公开 PoC 记录 30 条,并存在公开复现仓库(sshhole-repro、sshhole-lab)。CISA SSVC:automatable=no、exploitation=active。勒索软件关联情况材料未给出;Nuclei 模板状态材料未给出。

受影响产品

OpenBSD:OpenSSH < 10.6p2。触发条件为 Linux 平台、使用 musl libc 且 PAM 支持被禁用(官方示例为 Alpine Linux);组件为 sshd(8)。其他部署形态是否受影响材料未给出。

修复版本

官方修复版本为 OpenSSH 10.6p2(Portable OpenSSH 10.6p2,发布日 2026-11-05),对应提交 4353fdc43ef646c43a8dda7025cc1a898caf1482。官方说明该版本包含针对此问题的关键安全规避措施,并认为根因在 sshd 之外,但可在 sshd 侧规避。

缓解措施

按厂商说明应用缓解措施;若无法立即升级,应遵循 CISA BOD 26-04 的风险排序更新要求及「Forensics Triage Requirements」。对云服务按 BOD 26-04 适用指引处置,缓解措施不可得时应停止使用该产品。评估各资产的互联网暴露情况;在条件允许时限制 sshd 密码认证、收紧账户配置。具体替代配置细节材料未给出。

响应步骤

  1. 盘点运行 OpenSSH 的 Linux 资产,确认是否使用 musl libc 且 PAM 被禁用(如 Alpine Linux 类镜像)。
  2. 核对 sshd 版本是否低于 10.6p2,优先升级至 10.6p2 或应用对应补丁提交。
  3. 评估相关资产的互联网暴露面,按 BOD 26-04 期限要求安排修补。
  4. 排查可疑认证行为:关注 256–1024 字符长度密码的登录尝试与异常成功登录。
  5. 无法立即升级时,按厂商与 CISA 指引实施缓解并记录豁免资产。
  6. 参考公开复现仓库与公告链接验证修复效果,留存处置证据。

参考来源

  1. https://www.openssh.org/releasenotes.html#10.6p2advisory,euvd
  2. https://github.com/openssh/openssh-portable/commit/4353fdc43ef646c43a8dda7025cc1a898caf1482advisory,euvd
  3. https://news.ycombinator.com/item?id=50377976advisory,euvd
  4. https://news.ycombinator.com/item?id=50378228advisory,euvd
  5. https://marc.info/?l=openssh-unix-dev&m=179388064263131&w=2advisory,euvd
  6. https://hachyderm.io/@damienmiller/117563026759098135advisory,euvd
  7. https://github.com/predkambrij/sshhole-repropoc,github,advisory,euvd
  8. https://github.com/leonjza/sshhole-labpoc,github,advisory,euvd
  9. https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/
  10. https://news.ycombinator.com/item?id=50379704
  11. https://github.com/google/goonami-scanner/pull/277
  12. https://github.com/coollabsio/coolify/discussions/12484
  13. https://github.com/panubo/docker-sshd/issues/93
  14. http://www.openwall.com/lists/oss-security/2026/11/09/27
  15. https://sshhole.comexploit,technical-description
  16. https://sshole.events.greynoise.io/third-party-advisory,kev