gosaml2に認証なしでサービス停止を引き起こされる脆弱性 CVE-2026-128073
概要
gosaml2は、暗号化されたSAMLアサーションの復号処理で、短すぎる暗号文を検証せずに扱うため、認証なしでパニックを起こせる脆弱性です。攻撃者はサービスプロバイダーの公開証明書があれば攻撃でき、プロセスやリクエストの停止につながるおそれがあります。修正版は0.12.0です。0.12.0より前のバージョンを使っている場合は、早めに修正版へ更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
gosaml2は、暗号化されたSAMLアサーションの復号処理で、短すぎる暗号文を検証せずに扱うため、認証なしでパニックを起こせる脆弱性です。攻撃者はサービスプロバイダーの公開証明書があれば攻撃でき、プロセスやリクエストの停止につながるおそれがあります。修正版は0.12.0です。0.12.0より前のバージョンを使っている場合は、早めに修正版へ更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| russellhaeringgosaml2 | — | 記載なし |
| Gogithub.com/russellhaering/gosaml2 |
0.12.0 未満→ 0.12.0 |
0.12.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
An attacker who can supply a crafted SAML Response for parsing can crash a gosaml2 service provider by sending an EncryptedAssertion with AES-GCM encryption metadata and a CipherValue shorter than the GCM nonce size (12 bytes). The library panics with slice bounds out of range before any validation completes.
This is a distinct issue from GHSA-hwqm-qvj9-4jr2, which addressed panics in the AES-CBC decryption path (commit 3418f9ae09063ff8df0ce1bd93f24e538e614def, included in v0.10.0). That fix added a block-size check for CBC but left the AES-GCM path completely unprotected.
Details
ValidateEncodedResponse() decrypts EncryptedAssertion nodes before signature or content validation completes. There are two call sites:
- Signed Response branch --
decode_response.go#L341 - Unsigned Response branch --
decode_response.go#L388
Both call decryptAssertions() (decode_response.go#L150-L200), which calls `Encrypt…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com