GHSA-6h53-q94j-348w

Suggest an improvement
Source
https://github.com/advisories/GHSA-6h53-q94j-348w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/08/GHSA-6h53-q94j-348w/GHSA-6h53-q94j-348w.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-6h53-q94j-348w
Aliases
Published
2024-08-05T21:29:23Z
Modified
2024-08-06T23:12:41.305070Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
RobotsAndPencils go-saml authentication bypass vulnerability
Details

RobotsAndPencils go-saml, a SAML client library written in Go, contains an authentication bypass vulnerability in all known versions. This is due to how the xmlsec1 command line tool is called internally to verify the signature of SAML assertions. When xmlsec1 is used without defining the enabled key data, the origin of the public key for the signature verification is, unfortunately, not restricted. That means an attacker can sign the SAML assertions themselves and provide the required public key (e.g. an RSA key) directly embedded in the SAML token. Projects still using RobotsAndPencils/go-saml should move to another SAML library or alternatively remove support for SAML from their projects. The vulnerability can likely temporarily be fixed by forking the go-saml project and adding the command line argument --enabled-key-data and specifying a value such as x509 or raw-x509-cert when calling the xmlsec1 binary in the verify function. Please note that this workaround must be carefully tested before it can be used.

Database specific
{
    "nvd_published_at": "2024-03-06T20:15:47Z",
    "cwe_ids": [
        "CWE-287"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-08-05T21:29:23Z"
}
References

Affected packages

Go / github.com/RobotsAndPencils/go-saml

Package

Name
github.com/RobotsAndPencils/go-saml
View open source insights on deps.dev
Purl
pkg:golang/github.com/RobotsAndPencils/go-saml

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.0.0-20230606195814-29020529affc