# CVE-2023-48703: SAML authentication bypass vulnerability in RobotsAndPencils/go-saml

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2024-03-06T19:18:39.542Z
- Modified: 2026-06-17T06:34:48.400Z
- Also known as: GHSA-6h53-q94j-348w, GO-2024-3048
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- RobotsAndPencils go-saml: <= 0.0.0-20230606195814-29020529affc; up to 0.0.0-20230606195814-29020529affc
- github.com/RobotsAndPencils/go-saml (Go): up to 0.0.0-20230606195814-29020529affc; all versions

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `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`

## References

- <https://securitylab.github.com/advisories/GHSL-2023-121_go-saml__archived_/> (technical-description, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-48703> (advisory)
- <https://github.com/RobotsAndPencils/go-saml> (package)
- <https://securitylab.github.com/advisories/GHSL-2023-121_go-saml__archived_> (advisory)
- <https://github.com/advisories/GHSA-6h53-q94j-348w> (advisory)

## Sources

- CVE List: [CVE-2023-48703](https://www.cve.org/CVERecord?id=CVE-2023-48703), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-6h53-q94j-348w](https://github.com/advisories/GHSA-6h53-q94j-348w), CC-BY-4.0, modified 2024-08-06
- Go Vulnerability Database: [GO-2024-3048](https://pkg.go.dev/vuln/GO-2024-3048), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2023-48703](https://nvd.nist.gov/vuln/detail/CVE-2023-48703), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-48703 · Whole record: https://cve.day/CVE-2023-48703.json · Rebuilt by cve.day 2026-11-25T22:58:33.288Z
