Description
In Casdoor versions 2.362.0 and earlier, the SAML service provider implementation does not validate the AudienceRestriction element in SAML assertions. The buildSp function in object/saml_sp.go never sets AudienceURI on the gosaml2 SAMLServiceProvider struct and never inspects WarningInfo.NotInAudience. This allows assertions issued for other service providers to be accepted by Casdoor.
Published: 2026-05-28
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Casdoor’s SAML service provider implementation fails to validate the AudienceRestriction element in SAML assertions. Because the buildSp function never sets the AudienceURI or examines WarningInfo.NotInAudience, assertions issued for other service providers are accepted without question. This flaw allows an attacker to forge or replay SAML assertions designed for a different target, potentially obtaining unauthorized access to Casdoor‑managed resources or impersonating legitimate users.

Affected Systems

The vulnerability affects the Casdoor application, specifically versions 2.362.0 and earlier. All deployments of Casdoor within that version range that rely on the SAML service provider component are potentially exposed.

Risk and Exploitability

The EPSS score of 0.00017 indicates a very low probability of exploitation, and the vulnerability is not listed in CISA’s KEV catalog. The impact of accepting unauthorized assertions is significant. The CVSS base score is 9.8, indicating critical severity. An attacker could exploit the flaw by presenting a crafted SAML assertion to the Casdoor endpoint, bypassing the intended audience check. While the low EPSS score suggests that exploitation events are rare, any Casdoor deployment with a reachable SAML endpoint remains susceptible to this remote attack.

Generated by OpenCVE AI on June 3, 2026 at 04:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest Casdoor release that applies proper AudienceURI validation
  • Verify that all SAML IdP configurations enforce AudienceRestriction checks and that the Service Provider’s AudienceURI matches the IdP’s expected value
  • Temporarily block or allow only assertions from known, trusted IdPs until the patch is applied
  • Enable detailed logging for SAML assertions to detect and investigate suspicious claims

Generated by OpenCVE AI on June 3, 2026 at 04:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 03 Jun 2026 02:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-285

Tue, 02 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 28 May 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Casdoor
Casdoor casdoor
Weaknesses CWE-285
Vendors & Products Casdoor
Casdoor casdoor

Thu, 28 May 2026 17:00:00 +0000

Type Values Removed Values Added
Description In Casdoor versions 2.362.0 and earlier, the SAML service provider implementation does not validate the AudienceRestriction element in SAML assertions. The buildSp function in object/saml_sp.go never sets AudienceURI on the gosaml2 SAMLServiceProvider struct and never inspects WarningInfo.NotInAudience. This allows assertions issued for other service providers to be accepted by Casdoor.
Title CVE-2026-9093
References

cve-icon MITRE

Status: PUBLISHED

Assigner: certcc

Published:

Updated: 2026-06-02T16:44:14.889Z

Reserved: 2026-05-20T15:04:21.545Z

Link: CVE-2026-9093

cve-icon Vulnrichment

Updated: 2026-06-02T15:48:12.459Z

cve-icon NVD

Status : Deferred

Published: 2026-05-28T17:16:34.210

Modified: 2026-06-02T17:16:38.620

Link: CVE-2026-9093

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-03T04:30:05Z

Weaknesses

No weakness.