The Sequels Are Never As Good, But We're Still In Pain (Citrix NetScaler CVE-2026-3055 Memory Overread)
A memory overread in Citrix NetScaler's SAML IdP handling causes uninitialised or leftover memory to be echoed back in the NSC_TASS cookie when the AssertionConsumerServiceURL is omitted. An attacker could read fragments of memory from previous requests, potentially including sensitive data.
Published on labs.watchtowr.com
This research is a glimpse into the capability powering the watchTowr Platform, a Preemptive Exposure Management solution. We enable organizations to autonomously validate and mitigate their exposure to emerging threats, ahead of in-the-wild exploitation.
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
Likely insufficient input validation in the C XML/SAML parsing code, which fails to check that the AssertionConsumerServiceURL is present and properly terminated before copying it into the response cookie.
Impact
An attacker could read small fragments of leftover memory from the appliance, which may contain data from previous requests; exploitation is limited to 100 bytes per field, stops at a null byte, and was intermittent in the low-traffic lab, though the authors expect it to be more reliable in production.
What the attacker needed
Appliance configured as a SAML IdP; ability to send POST requests to /saml/login; vulnerable NetScaler version
The fix
Citrix released patched versions (14.1-60.58, 14.1-66.59 and later, 13.1-62.23 and later, and 13.1-FIPS/NDcPP 13.1.37.262 and later) and recommends upgrading.
How it was found
- Configure the NetScaler as a SAML IdP and send a POST to /saml/login with a base64 SAMLRequest that omits the AssertionConsumerServiceURL.
- Observe the response sets an NSC_TASS cookie containing leftover memory such as an ID from a previous request and 0xdeadbeef.
- Send the same request to a patched appliance and note it returns a parsing error instead of a cookie.
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.
When a program reads past the end of a piece of text it was given, it can pick up whatever happened to be sitting in memory next to it. Here, the NetScaler builds a cookie from a SAML login request, and if a field is missing it copies leftover memory into that cookie instead of stopping. That means someone sending crafted requests could see bits of other people's data that the appliance had recently handled.
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.