← Lab /Systems

Unauthenticated heap overflow in NetScaler SAML processing enables remote code execution

Citrix NetScaler ADC/Gateway versions before 13.1-63.18 and 14.1-72.61 allow an unauthenticated attacker to trigger a heap overflow that leads to remote code execution

Systems watchTowr Labs 14 Aug 2026 Disclosure Prototype evidence

Published as “You’re Back In The Room (Citrix NetScaler Pre-Auth RCE CVE-2026-8452(?))”

Why it matters

Enterprises running unpatched NetScaler ADC/Gateway with SAML enabled are remotely exploitable without authentication, allowing full system compromise.

Summary

The authors reverse-engineered the NetScaler nsppe binary and identified a heap overflow in the SAML SignedInfo canonicalization routine, where an oversized PrefixList attribute overwrites adjacent heap metadata. By controlling the overflow they obtain a write-what-where primitive, overwrite a function pointer (tx_pkt_complete_fptr) and gain full RIP control. They then execute shellcode to drop a PHP webshell and neutralize the watchdog pitboss process, achieving persistent root-level code execution on the appliance. The exploit is demonstrated on a lab NetScaler 13.1 appliance with SAML enabled.

What they found 1

  1. The overflow occurs because NetScaler copies attacker-controlled SignedInfo data into a fixed-size global buffer without length checks

    “During signature canonicalization, earlier versions of the NetScaler solution copy attacker-controlled data from the SAML message's ds:SignedInfo element into a fixed-size global buffer, without checking whether it actually fits.”

Caveats 4

  • The authors admit they cannot confirm the CVE number and label the association as speculative
  • They were unable to obtain an information leak, requiring them to disable pitboss instead of repairing corrupted state
  • The analysis was performed on a single NetScaler 13.1 appliance configured as a SAML SP/IdP; other configurations were not tested
  • The CVE identifier is speculative; the authors could not verify the exact advisory number

What’s new here 4

  • First public exploit for the pre-auth SAML heap overflow in NetScaler (CVE-2026-8452?)
  • Detailed reverse-engineering of the nsppe packet engine and its allocator
  • Construction of a write-what-where primitive via overflow of neighboring network buffer metadata
  • Bypassing the pitboss watchdog by disabling its signal handlers from shellcode

In the news