No Crash Required: Verifying the Citrix NetScaler SAML Patch for CVE-2026-8452
A heap overflow in Citrix NetScaler's SAML canonicalization code allows an unauthenticated attacker to corrupt memory via a single HTTP request, potentially leading to remote code execution. The bug is triggered by an oversized PrefixList field before signature verification.
bishopfox.com
Published on bishopfox.com
On June 30, 2026, Citrix published CTX696604, covering six vulnerabilities in NetScaler ADC and Gateway. CVE-2026-8452 scores CVSS 8.8, described non-specifically as a “memory overflow vulnerability leading to unpredictable or erroneous behavior and denial of service” on a Gateway or AAA virtual server.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The SAML canonicalization step copies an attacker-controlled PrefixList into a fixed-size buffer without checking its length, and this happens before signature verification.
Impact
An unauthenticated attacker could crash the packet engine, dropping all sessions, and potentially achieve remote code execution, though the exploit chain must be built per version.
What the attacker needed
SAML configured on the virtual server; SAML policy attached to the virtual server; Network access to the virtual server
The fix
The fix caps the PrefixList at 512 bytes and adds size checks around related buffers, and it was shipped in builds 13.1-63.18 and 14.1-72.61.
How it was found
- Identify the appliance by checking for Citrix-specific URI schemes in the Content-Security-Policy header.
- Send a signed AuthnRequest with a 575-byte PrefixList to /saml/login on the Identity Provider route.
- If no answer, fall back to the Service Provider route by sending a SAMLResponse with the same 575-byte PrefixList to /cgi/samlauth.
- Repeat the request with a 35-byte PrefixList as a control and compare the answers.
- Report a verdict based on whether the answers differ.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
SAML is a way for websites to log you in using another service. Before checking that a SAML message is genuine, the NetScaler appliance rewrites part of it, and one field in that message can be made too long, overflowing a fixed-size memory buffer. An attacker can send a single request without logging in to crash the appliance or possibly run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.