# CVE-2020-5268: Subject Confirmation Method not validated in Saml2 Authentication Services for ASP.NET

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/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): 1.09%, higher than 66% of CVEs (2026-12-01)
- Published: 2020-04-21T15:30:37.000Z
- Modified: 2026-09-10T03:48:44.099Z
- Also known as: GHSA-9475-xg6m-j7pw
- Weaknesses: CWE-287, CWE-303
- Assigned by: GitHub_M

## Description

In Saml2 Authentication Services for ASP.NET versions before 1.0.2, and between 2.0.0 and 2.6.0, there is a vulnerability in how tokens are validated in some cases. Saml2 tokens are usually used as bearer tokens - a caller that presents a token is assumed to be the subject of the token. There is also support in the Saml2 protocol for issuing tokens that is tied to a subject through other means, e.g. holder-of-key where possession of a private key must be proved. The Sustainsys.Saml2 library incorrectly treats all incoming tokens as bearer tokens, even though they have another subject confirmation method specified. This could be used by an attacker that could get access to Saml2 tokens with another subject confirmation method than bearer. The attacker could then use such a token to create a log in session. This vulnerability is patched in versions 1.0.2 and 2.7.0.

(As written by CVE List.)

## Affected

- Sustainsys Saml2: < 1.0.2; >= 2.0.0, <= 2.6.0; before 1.0.2; from 2.0.0 before 2.7.0
- Sustainsys.Saml2 (NuGet): before 1.0.2; from 2.0.0 before 2.7.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 4.9 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:N`

## References

- <https://github.com/Sustainsys/Saml2/commit/e58e0a1aff2b1ead6aca080b7cdced55ee6d5241> (patch, third-party-advisory, web)
- <https://github.com/Sustainsys/Saml2/security/advisories/GHSA-9475-xg6m-j7pw> (mitigation, third-party-advisory, web)
- <https://github.com/Sustainsys/Saml2/issues/712> (third-party-advisory, web)
- <https://www.nuget.org/packages/Sustainsys.Saml2/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5268> (advisory)
- <https://www.nuget.org/packages/Sustainsys.Saml2> (web)

## Sources

- CVE List: [CVE-2020-5268](https://www.cve.org/CVERecord?id=CVE-2020-5268), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-9475-xg6m-j7pw](https://github.com/advisories/GHSA-9475-xg6m-j7pw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-5268](https://nvd.nist.gov/vuln/detail/CVE-2020-5268), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5268 · Whole record: https://cve.day/CVE-2020-5268.json · Rebuilt by cve.day 2026-11-25T22:57:52.139Z
