gosaml2に認証なしでサービス停止を引き起こされる脆弱性 CVE-2026-128073
Summary
gosaml2は、暗号化されたSAMLアサーションの復号処理で、短すぎる暗号文を検証せずに扱うため、認証なしでパニックを起こせる脆弱性です。攻撃者はサービスプロバイダーの公開証明書があれば攻撃でき、プロセスやリクエストの停止につながるおそれがあります。修正版は0.12.0です。0.12.0より前のバージョンを使っている場合は、早めに修正版へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
gosaml2は、暗号化されたSAMLアサーションの復号処理で、短すぎる暗号文を検証せずに扱うため、認証なしでパニックを起こせる脆弱性です。攻撃者はサービスプロバイダーの公開証明書があれば攻撃でき、プロセスやリクエストの停止につながるおそれがあります。修正版は0.12.0です。0.12.0より前のバージョンを使っている場合は、早めに修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| russellhaeringgosaml2 | — | Not listed |
| Gogithub.com/russellhaering/gosaml2 |
< 0.12.0→ 0.12.0 |
0.12.0 |
Original description The description as published by the source.
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…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- 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