Advisory

GHSA-xhqq-x44f-9fgg

Also known as: BIT-golang-2020-29509, CVE-2020-29509, GO-2021-0060

Summary

Authentication Bypass in github.com/russellhaering/gosaml2

Details

Impact
Given a valid SAML Response, it may be possible for an attacker to mutate the XML document in such a way that gosaml2 will trust a different portion of the document than was signed.

Depending on the implementation of the Service Provider this enables a variety of attacks, including users accessing accounts other than the one to which they authenticated in the Identity Provider, or full authentication bypass.

Patches
Service Providers utilizing gosaml2 should upgrade to v0.6.0 or greater.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-02-11 23:58 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

github.com/russellhaering/gosaml2

Go · All systems

Affected

  • introduced 0, fixed 0.6.0 (semver)

Fixed versions

0.6.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences