Skip to content

CVE-2025-24894 SAML Response Signature Verification Bypass in SPID.AspNetCore.Authentication

CriticalCVSS 9.1 EPSS 0.61%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

SPID.AspNetCore.Authentication is an AspNetCore Remote Authenticator for SPID. Authentication using Spid and CIE is based on the SAML2 standard which provides two entities: Identity Provider (IDP): the system that authenticates users and provides identity information (SAML affirmation) to the Service Provider, in essence, is responsible for the management of the credentials and identity of users; Service Provider (SP): the system that provides a service to the user and relies on the Identity Provider to authenticate the user, receives SAML assertions from the IdP to grant access to resources. The validation logic of the signature is central as it ensures that you cannot create a SAML response with arbitrary assertions and then impersonate other users. There is no guarantee that the first signature refers to the root object, it follows that if an attacker injects an item signed as the first element, all other signatures will not be verified. The only requirement is to have an XML element legitimately signed by the IdP, a condition that is easily met using the IdP's public metadata. An attacker could create an arbitrary SAML response that would be accepted by SPs using vulnerable SDKs, allowing him to impersonate any Spid and/or CIE user. This vulnerability has been addressed in version 3.4.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
nuget SPID.AspNetCore.Authentication(NuGet) < 3.4.0; <= 3.3.0; = 1.0.0; = 1.0.1 +37 more 3.4.0 Fixed
italia spid-aspnetcore = < 3.4.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
nuget SPID.AspNetCore.Authentication(NuGet) < 3.4.0 3.4.0
nuget SPID.AspNetCore.Authentication(NuGet) = 1.0.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.0.1 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.0.2 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.1.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.1.1 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.1.2 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.1.3 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.1.4 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.1.5 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.2.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.2.1 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.1 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.10 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.11 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.12 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.12-prerelease No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.2 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.3 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.4 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.5 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.6 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.7 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.7-prerelease No fix listed
Show 17 more
ProductAffected versionsFixed in
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.8 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 1.3.9 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 2.0.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 2.0.0-prerelease No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 2.0.1 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 2.0.2 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 2.0.3 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 2.0.3-preview No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 2.0.4 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 3.0.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 3.1.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 3.1.1 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 3.2.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 3.3.0 No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) = 3.3.0-prerelease No fix listed
nuget SPID.AspNetCore.Authentication(NuGet) <= 3.3.0 No fix listed
italia spid-aspnetcore = < 3.4.0 No fix listed

References