CVE-2025-24895

Source
https://cve.org/CVERecord?id=CVE-2025-24895
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-24895.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-24895
Aliases
Published
2025-02-18T18:39:39.096Z
Modified
2025-12-05T08:52:56.028101Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
SAML Response Signature Verification Bypass in CIE.AspNetCore.Authentication
Details

CIE.AspNetCore.Authentication is an AspNetCore Remote Authenticator for CIE 3.0. Authentication using Spid and CIE is based on the SAML2 standard which provides two entities: 1. 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; 2. 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 library cie-aspnetcore refers to the second entity, the SP, and implements the validation logic of SAML assertions within SAML responses. In affected versions 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 issue has been addressed in version 2.1.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Database specific
{
    "cwe_ids": [
        "CWE-287"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24895.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/italia/cie-aspnetcore

Affected ranges

Type
GIT
Repo
https://github.com/italia/cie-aspnetcore
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.1.0"
        }
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.1.0
1.1.2
1.2.0
2.*
2.0.0
2.0.1
2.0.2
2.0.3
2.0.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-24895.json"