CVE-2022-41912
crewjam/saml: Authentication bypass when processing SAML responses containing multiple Assertion elements
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Red Hat. Rated lower by Ubuntu (medium).
Description
The crewjam/saml go library prior to version 0.4.9 is vulnerable to an authentication bypass when processing SAML responses containing multiple Assertion elements. This issue has been corrected in version 0.4.9. There are no workarounds other than upgrading to a fixed version.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/crewjam/saml | 0.4.9 |
| ubuntu 22.04 | golang-github-crewjam-saml | no fix listed |
References
- http://packetstormsecurity.com/files/170356/crewjam-saml-Signature-Bypass.html
- https://access.redhat.com/security/cve/CVE-2022-41912
- https://github.com/crewjam/saml
- https://github.com/crewjam/saml/commit/aee3fb1edeeaf1088fcb458727e0fd863d277f8b
- https://github.com/crewjam/saml/commit/aee3fb1edeeaf1088fcb458727e0fd863d277f8b%20%28v0.4.9%29
- https://github.com/crewjam/saml/releases/tag/v0.4.9
- https://github.com/crewjam/saml/security/advisories/GHSA-j2jp-wvqg-wc2g
- https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p