home / blog

2026-11-23 · high

CVE-2026-134830: Memory Exhaustion Vulnerability in Casdoor

Critical vulnerability in Casdoor allows memory exhaustion attacks via DEFLATE-compressed SAML messages

CVE-2026-134830: Memory Exhaustion Vulnerability in Casdoor

CVE-2026-134830 is a critical vulnerability in Casdoor affecting the decodeSamlMessage function. Unauthenticated attackers can send DEFLATE-compressed SAML messages to the /api/saml/logout/:owner/:application endpoint that, when decompressed, can expand to gigabytes of data causing memory exhaustion and server crash or stall.

The vulnerability has a CVSS score of 7.5, classifying it as high severity. The patch is available in Casdoor version 4.27.1. Technical signals on GitHub confirm the existence of exploits leveraging this vulnerability, indicating that small compressed messages can cause significant memory consumption increase (from 21 KB to 16 MiB).

IT teams should promptly apply the update to Casdoor version 4.27.1 or higher. For installations that cannot be immediately updated, it's possible to implement mitigations such as limiting incoming SAML payload size or using reverse proxies to block suspicious requests. Monitor logs closely for any exploitation attempts.

At a glance

What
Resource consumption vulnerability in decodeSamlMessage that allows unauthenticated attackers to exhaust memory by sending unbounded DEFLATE-compressed SAML messages
Severity
High (CVSS 7.5)
Affected versions
Casdoor before version 4.27.1
Fix
Update to Casdoor version 4.27.1 or later
Status
Published on NVD on 2026-11-22, patch available
Action
Promptly apply the update to version 4.27.1 or higher

Sources: NVD, CVE-2026-134830

← All articles