CVE-2023-48703 json
SAML authentication bypass vulnerability in RobotsAndPencils/go-saml
published 2y ago modified 4mo ago also EUVD-2024-2513 , GHSA-6h53-q94j-348w , GO-2024-3048
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Is CVE-2023-48703 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/RobotsAndPencils/go-saml | <=0.0.0-20230606195814-29020529affc all versions |
no fix listed |
Affected products
- RobotsAndPencils go-saml
Classification
- Weakness
-
- CWE-287 Improper Authentication
References
-
securitylab.github.com
/advisories/GHSL-2023-121_go-saml__archived_/
technical-description, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-48703
advisory
-
github.com
/RobotsAndPencils/go-saml
package
-
securitylab.github.com
/advisories/GHSL-2023-121_go-saml__archived_
advisory
-
github.com
/advisories/GHSA-6h53-q94j-348w
advisory
Sources
- CVE List CVE-2023-48703
- GitHub Advisory GHSA-6h53-q94j-348w
- NVD CVE-2023-48703
- OSV GO-2024-3048
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.