CVE-2020-5268
Subject Confirmation Method not validated in Saml2 Authentication Services for ASP.NET
Also known as GHSA-9475-xg6m-j7pw
Mitigation
- Upgrade Sustainsys.Saml2 to one of 1.0.2, 2.7.0 (or later in the same release line).
Who should check
- Projects that depend on NuGet package Sustainsys.Saml2 (< 1.0.2)
- Anyone running Sustainsys Saml2 < 1.0.2; >= 2.0.0, <= 2.6.0
Vulnerability facts
- Affected
- Sustainsys.Saml2 < 1.0.2
- Fixed in
- 1.0.2, 2.7.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- EPSS
- 1.09% chance of exploitation in 30 days (percentile 65, 2026-11-26)
- CWE
- CWE-303
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| NuGet Sustainsys.Saml2 | < 1.0.2 | 1.0.2, 2.7.0 | osv |
| Sustainsys Saml2 | < 1.0.2; >= 2.0.0, <= 2.6.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2020-5268. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-5268.md Affected: Sustainsys.Saml2 < 1.0.2 Fixed in: 1.0.2, 2.7.0 Steps: 1. Search this machine and project for Sustainsys.Saml2 (NuGet), Sustainsys Saml2: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2020-5268 being exploited?
There is no confirmed exploitation: CVE-2020-5268 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.09% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-5268?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2020-5268?
Sustainsys.Saml2 < 1.0.2.
Is there a fix for CVE-2020-5268?
Yes. Fixed in 1.0.2, 2.7.0. Upgrade Sustainsys.Saml2 to one of 1.0.2, 2.7.0 (or later in the same release line).
How do I check if I'm affected by CVE-2020-5268?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.