CVE-2026-134830 in Casdoorinfo

Summary

by MITRE • 11/23/2026

Casdoor before 4.27.1 contains an uncontrolled resource consumption vulnerability in decodeSamlMessage that allows unauthenticated attackers to exhaust memory by sending unbounded DEFLATE-compressed SAML messages. Attackers can send a small, highly compressed SAMLRequest or SAMLResponse to the /api/saml/logout/:owner/:application endpoint, which inflates to gigabytes and crashes or stalls the server.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability identified in Casdoor versions prior to 4.27.1 represents a critical uncontrolled resource consumption flaw located within the decodeSamlMessage function. This security defect specifically impacts the authentication flow by allowing unauthenticated actors to trigger excessive memory allocation on the target server. The root cause lies in the handling of SAML messages that utilize DEFLATE compression without implementing adequate size constraints or decompression limits. When a client submits an XML document compressed using the DEFLATE algorithm, the system attempts to inflate it for processing. However, because there is no upper bound on the resulting uncompressed data size, attackers can craft maliciously small input files that expand into massive amounts of memory when decompressed. This technique exploits the fundamental property of compression algorithms where highly repetitive or structured data can yield a significantly larger output than its compressed counterpart, effectively turning a tiny network payload into a server-crashing event.

The operational impact of this vulnerability is severe and directly affects the availability of Casdoor instances that are exposed to untrusted networks. By sending specially crafted SAMLRequest or SAMLResponse payloads to the /api/saml/logout/:owner/:application endpoint, an attacker can cause the application process to consume excessive amounts of RAM. This rapid memory exhaustion leads to a denial-of-service condition where the server becomes unresponsive, crashes entirely, or stalls under the load. Since this vulnerability is accessible without authentication, it poses a significant risk to any public-facing deployment of Casdoor that accepts SAML-based single sign-on requests. The ability for an external actor to disrupt service with minimal effort and bandwidth consumption makes this a high-severity availability threat that requires immediate attention from system administrators and security teams responsible for identity management infrastructure.

From a classification perspective, this vulnerability aligns closely with CWE-400 Uncontrolled Resource Consumption, as the application fails to properly limit the resources consumed during input processing. It also relates to CWE-770 Allocation of Resources Without Limits or Throttling in Cloud Environments if deployed within such architectures, and potentially CWE-1325 Incorrectly Implemented Compression Algorithm if the issue stems from how the compression library is invoked without safeguards. In terms of offensive security frameworks, this attack vector corresponds to MITRE ATT&CK technique T1496 Resource Hijacking, specifically under the sub-category of Denial of Service via resource exhaustion. The exploitation method involves sending a small payload that results in disproportionate server-side processing and memory usage, which is characteristic of compression bomb attacks often seen in formats like ZIP or GZIP but here applied to SAML XML data streams.

To mitigate this vulnerability, organizations running Casdoor must upgrade immediately to version 4.27.1 or later where the issue has been addressed by implementing strict limits on decompressed message sizes. Until an upgrade is feasible, administrators should consider deploying a Web Application Firewall in front of the application to inspect and block unusually large SAML responses or restrict access to the /api/saml/logout endpoint based on IP reputation if possible. Additionally, configuring server-side timeouts and memory limits for the specific service handling SAML requests can provide a layer of defense against such resource exhaustion attempts. It is also advisable to review logging mechanisms to detect patterns of repeated small payloads that may indicate an ongoing exploitation attempt allowing for rapid incident response before total system failure occurs.

Responsible

VulnCheck

Reservation

11/22/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!