Summary
CVE-2026-134830 is an uncontrolled resource consumption (data amplification, CWE-409) vulnerability in the decodeSamlMessage function of Casdoor, the open-source identity and SSO platform. An unauthenticated remote attacker can send a small, highly compressed SAML message that inflates to gigabytes in memory, crashing or stalling the server. The CVSS v4.0 score is 8.7 (High).
Technical details
- Root cause:
decodeSamlMessagedecompresses DEFLATE-compressed SAML messages without bounding the decompressed size (CWE-409, Improper Handling of Highly Compressed Data). - Trigger conditions: a crafted, highly compressed
SAMLRequestorSAMLResponsesent to the SAML logout endpoint (/api/saml/logout/:owner/:application). No authentication or user interaction is required. - Attack vector: network, low complexity.
- Impact: memory exhaustion leading to a crash or disruption of the Casdoor service, which can stop users from authenticating to dependent applications. Availability only; no confidentiality or integrity impact is reported.
- No exploitation in the wild was known at the time of research.
Affected software
- Casdoor (
github.com/casdoor/casdoor) – all versions before 4.27.1
Severity
- CVSS v4.0: 8.7 (High) –
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 7.5 (High) –
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Mitigation and recommended actions
- Immediate: upgrade Casdoor to version 4.27.1 or later.
- If you cannot patch immediately: restrict network access to the SAML endpoints (for example
/api/saml/*) where SAML is not in use, and apply request-size limits and memory limits or automatic restart policies on the Casdoor service. These are general hardening measures, not vendor-published workarounds.

