CVE-2026-123158
OpenBSD OpenSSH Unexpected Status Code or Return Value Vulnerability
OpenBSD · OpenSSH
列入日期: 2026-11-09美國聯邦機關修補期限: 2026-11-12
解析與對策(積穗 HMMA)
說明:「解析與對策」由積穗地端 AI(HMMA)依 CISA 公開原文自動生成,未加入 CISA 以外的資訊;受影響版本與修補方式請以廠商公告為準。
這個漏洞是什麼
OpenSSH 在特定條件下存在密碼驗證繞過漏洞(CVE-2026-123158)。當 OpenSSH 連結至 musl C 函式庫且未啟用 PAM 驗證時,攻擊者可透過輸入極長的密碼,成功登入無密碼的帳號。此漏洞在 2026-11-05 已被修補,但受影響的系統仍需採取行動。
下列條件全部成立才會中
- OpenSSH 連結至 musl C 函式庫且未啟用 PAM(例如 Alpine Linux 預設的 openssh-server 套件)
- 系統設定為允許密碼驗證(PasswordAuthentication yes)
- 目標帳號未設定密碼(例如 Alpine Linux 3.18.11 映像檔中的 alpine 用戶)
- 攻擊者可從網路存取該主機的 SSH 服務埠
修補版本
Alpine Linux 3.16 至 edge 版本均已發布修補套件(3.16 修正為 9.0_p1-r6,3.17 為 9.1_p1-r7,3.18 為 9.3_p2-r4,3.19 為 9.6_p1-r3,3.20 為 9.7_p1-r6,3.21 為 9.9_p2-r1,3.22 為 10.0_p1-r11,3.23 為 10_2_p1-r1,3.24 為 10.3_p1-r2,edge 為 10.6_p2-r0)
對企業的風險
此漏洞屬於高風險(CVSS 8.1),攻擊者無需任何憑證即可遠端取得受影響系統的存取權。對台灣企業而言,若生產環境或開發環境的容器映像檔(如 Alpine Linux)未定期更新,可能導致敏感資料外洩或系統被控制。目前尚未有勒索軟體利用此漏洞的公開報告,但攻擊者可藉此建立初始存取點,進一步滲透企業內網。
怎麼確認自己有沒有中
- 在 Alpine 主機執行 `sshd -T | grep -i -E 'passwordauthentication|usepam'`,確認 `usepam` 是否為 `yes`,`passwordauthentication` 是否為 `yes`。
- 檢查 `/var/log/messages` 或系統日誌,搜尋是否存在「Accepted password for [帳號]」且該帳號原本無密碼的紀錄,若有則代表已被成功利用。
- 盤點所有運行 Alpine Linux 容器的環境,確認其使用的 openssh-server 版本是否為已修補版本。
誰需要處理
IT 部門、DevOps 團隊及負責容器化部署的系統管理員應立即執行盤點與修補,並將此類漏洞納入 CI/CD 映像檔掃描的強制檢查項目。
建議對策
- 立即升級 Alpine Linux 的 openssh 套件:執行 `apk upgrade -U -a` 並重啟 sshd 服務(`rc-service sshd restart`)。
- 若無法立即升級,應將 `PasswordAuthentication` 設為 `no`,並確保所有合法存取皆改用金鑰驗證,同時重啟 sshd 服務。
- 針對無法更新的舊版 Alpine(3.16 以前版本),必須重新建置並部署使用最新修補版本映像檔的容器,因為舊版本無法透過套件更新修補此漏洞。
- 在無法立即修補的環境中,應限制 SSH 服務的存取來源,僅允許特定內部 IP 範圍連線,降低外部攻擊面。
- 建立異常登入監控機制,針對無密碼帳號的登入事件建立告警,並定期審查所有具備 `doas` 或 `sudo` 權限的帳號狀態。
解析依據
解析時間: 2026-11-06 06:59 UTC · winners-zh-summary
CISA 官方原文
- 廠商
- OpenBSD
- 產品
- OpenSSH
- 漏洞名稱
- OpenBSD OpenSSH Unexpected Status Code or Return Value Vulnerability
- CISA 描述
- OpenBSD OpenSSH on Linux contains an unexpected status code or return value vulnerability that could allow for authentication bypass.
- CISA 要求措施
- Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
- CWE
- CWE-394
- 需鑑識分流
- Yes
官方參考連結
- CISA KEV Catalog
- NVD 漏洞資料
- https://www.openssh.org/releasenotes.html
- https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/
- https://github.com/openssh/openssh-portable/commit/4353fdc43ef646c43a8dda7025cc1a898caf1482
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
