CVE-2026-134822 in Saml2
Summary
by MITRE • 11/23/2026
Sustainsys.Saml2 before 1.0.4 and 2.x before 2.11.1 contains an improper signature verification vulnerability that allows attackers to tamper with signed parameters by exploiting mis-parsing in CheckSignature() of Saml2RedirectBinding.cs. Attackers can append data after an extra '=' in RelayState of an intercepted or replayed Redirect-binding message, causing applications to trust the tampered value.
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 within Sustainsys.Saml2 versions prior to 1.0.4 and 2.x prior to 2.11.1 represents a critical failure in cryptographic signature verification logic, specifically located within the CheckSignature method of the Saml2RedirectBinding.cs component. This flaw stems from an improper parsing mechanism that fails to correctly validate the integrity of signed parameters when processing SAML Redirect binding messages. In standard Security Assertion Markup Language operations, the Redirect binding is commonly used for Single Sign-On flows where HTTP GET requests carry encoded assertions and state data. The core technical deficiency lies in how the library handles base64-encoded strings containing padding characters during signature validation. Specifically, an attacker can exploit a mis-parsing behavior by appending arbitrary data after an extra equals sign within the RelayState parameter of an intercepted or replayed Redirect-binding message. This manipulation allows the application to bypass strict signature checks and trust tampered values that were not originally signed by the identity provider.
From a technical perspective, this issue is classified under CWE-347, which denotes Improper Verification of Cryptographic Signature. The vulnerability arises because the validation logic does not strictly enforce the structure of the base64 padding or correctly isolate the signed payload from appended tampered data. When an attacker injects additional characters after a redundant equals sign in the RelayState field, the signature verification process may incorrectly conclude that the message is authentic and unaltered. This bypasses the intended security controls designed to ensure data integrity and authenticity during authentication exchanges. The flaw effectively allows for parameter tampering where the application accepts modified state information or assertion parameters as valid, undermining the trust model established by SAML-based federated identity systems.
The operational impact of this vulnerability is severe, particularly in environments relying on Sustainsys.Saml2 for implementing Single Sign-On solutions. An attacker who can intercept network traffic or manipulate client-side requests could forge RelayState values to redirect users to malicious endpoints, alter session states, or potentially escalate privileges if the tampered parameters influence authorization decisions downstream. This capability facilitates authentication bypass attacks and man-in-the-middle exploits where the integrity of the SAML assertion is compromised without detection. Organizations utilizing these affected versions are at risk of unauthorized access, data leakage, and disruption of identity management workflows due to the inability to reliably verify the origin and content of incoming SAML responses.
To mitigate this vulnerability, organizations must immediately upgrade Sustainsys.Saml2 to version 1.0.4 or later for the legacy branch, or version 2.11.1 and above for the current major release line. These updated versions contain patches that correct the signature verification logic in Saml2RedirectBinding.cs, ensuring that padding characters are handled correctly and that any tampering with signed parameters is detected and rejected. Additionally, security teams should implement defense-in-depth strategies by validating RelayState values against expected formats using allowlists where possible, rather than relying solely on cryptographic signatures for state integrity. Monitoring logs for unusual patterns in SAML redirect requests can also aid in detecting potential exploitation attempts while patching efforts are underway. This incident highlights the importance of rigorous input validation and secure coding practices in handling base64-encoded data within authentication protocols to prevent signature bypass attacks as categorized under MITRE ATT&CK techniques related to credential access and defense evasion.