CVE-2026-107406: Citrix NetScaler ADC and Gateway SAML Memory Overflow Remote Code Execution
Critical unauthenticated memory corruption flaw in NetScaler SAML processing enabling remote code execution and appliance takeover on edge gateway deployments.
HERMES THREAT SCORE & PERIMETER GATEWAY EVALUATION
Target:Citrix NetScaler ADC / Gateway โ Packet Processing Engine (PPE) SAML Handler CVSS v4.0 evaluates this vulnerability at 9.5 (Critical) and CVSS v3.1 at 9.8 (Critical). The Hermes Threat Score confirms 96 (CRITICAL). As perimeter application delivery controllers, NetScaler ADC and Gateway terminate external enterprise network traffic and federated authentication. Exploitation requires zero privileges, bypasses perimeter inspection, crashes the Packet Processing Engine (PPE) or grants native FreeBSD root code execution, placing entire internal networks and SSO ecosystems at catastrophic risk.
CVE-2026-107406: Citrix NetScaler ADC and Gateway SAML Memory Overflow Remote Code ExecutionVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Citrix NetScaler ADC documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Technical Context & Affected Architecture Matrix
Section titled โ1. Technical Context & Affected Architecture MatrixโNetScaler ADC (formerly Citrix ADC) and NetScaler Gateway are enterprise-grade Application Delivery Controllers (ADC) widely utilized across Fortune 500 networks for load balancing, SSL offloading, VPN termination, and Federated Single Sign-On (SSO).
| Parameter | Technical Specification | Operational Details |
|---|---|---|
| CVE Identifier | CVE-2026-107406 | Canonical security tracking identifier |
| Affected Product | NetScaler ADC / NetScaler Gateway | Enterprise Application Delivery Controller & Edge VPN |
| Vulnerable Component | nsppe / SAML parsing subsystem | Packet Processing Engine native authentication binary |
| Vulnerable Builds | 14.1 < 14.1-73.46, 13.1 < 13.1-64.29 | NetScaler standard and FIPS / NDcPP firmware releases |
| Patched Releases | 14.1-73.46, 13.1-64.29, 13.1-37.283 | Vendor patched firmware distributed October 2026 |
| Vulnerability Class | Memory Corruption (CWE-119 / CWE-120) | Buffer overflow during SAML XML attribute normalization |
| Attack Vector | Network (AV:N), Unauthenticated (PR:N) | Public SAML consumer endpoint (/saml/login, /cgi/saml) |
2. Root Cause Analysis & Flaw Decomposition
Section titled โ2. Root Cause Analysis & Flaw DecompositionโVulnerable Engine Flow: nsppe Native SAML Parser
Section titled โVulnerable Engine Flow: nsppe Native SAML ParserโThe NetScaler Packet Processing Engine (nsppe) handles high-throughput L4-L7 network traffic directly in native C. When an external client posts a SAML response to a virtual server configured with a samlAction or samlIdPProfile, the packet is parsed by the internal XML parser routine:
[Incoming SAML Request / Response POST] โ โผ [HTTP Request Parser (/saml/login)] โ โผ[nsppe::saml_extract_assertion()] โโโ Base64 decode raw SAML payload โโโ Parse XML DOM tree nodes โโโ saml_parse_attribute_statement() โโโโบ FLAW: Fixed 2048-byte stack buffer โ used with memcpy() without bound check โผ[Memory Overflow: Overwrite Saved EIP/RIP / Heap Control Metadata] โโโ Path A: Crash nsppe daemon -> Immediate Appliance Denial of Service (DoS) โโโ Path B: Return-Oriented Programming (ROP) -> Root Shell Execution via FreeBSD /bin/shDuring attribute statement decoding, the routine saml_parse_attribute_value allocates a fixed stack buffer for attribute value strings. If the SAML assertion contains heavily nested XML elements with oversized base64 chunk parameters exceeding length limits, the parser copies the decoded byte stream without validating the destination buffer boundary:
/* Pseudocode reproduction of decompiled nsppe SAML routine */int nsppe_saml_parse_attr(const char *xml_chunk, size_t chunk_len) { char attr_buf[2048]; size_t decoded_len = 0;
// FLAW: Destination buffer is 2048 bytes, but decoded_len is unchecked decoded_len = base64_decode(xml_chunk, chunk_len, attr_buf); if (decoded_len > 0) { process_saml_attribute(attr_buf); } return 0;}Because nsppe runs with root execution privileges on the NetScaler appliance, corrupting the return address enables an attacker to hijack control flow, bypass ASLR via memory leak primitives, and execute arbitrary shell commands directly in the management context.
3. Exploitation Scenario & Attack Chain Walkthrough
Section titled โ3. Exploitation Scenario & Attack Chain WalkthroughโStep-by-Step Attack Vector
Section titled โStep-by-Step Attack Vectorโ-
Target Identification & Configuration Reconnaissance: The adversary scans public NetScaler gateways. The presence of endpoints such as
/cgi/saml/loginor HTTP headerCitrix-NetScalerconfirms active ADC instances. A test handshake verifies whether the gateway operates as a SAML SP or IdP. -
Crafting Malformed SAML Assertion: The attacker crafts an XML SAML assertion containing an oversized
<saml:AttributeValue>payload encoded in base64, structured with cyclic ROP gadget addresses tailored for FreeBSD 13/14 x86_64. -
Triggering Inbound Injection: The attacker dispatches an HTTP POST request carrying the payload to the virtual server authentication URL:
Terminal window curl -k -X POST "https://gateway.target-corp.com/cgi/saml/login" \-H "Content-Type: application/x-www-form-urlencoded" \--data "SAMLResponse=PHNhbWxwOlJlc3BvbnNl...<OVERFLOW_PAYLOAD>..." -
Payload Execution & Post-Exploitation: The
nsppeprocess consumes the payload, triggers memory corruption, and transfers execution to the attacker shellcode. The shellcode spawns a reverse interactive root shell on an external C2 port, granting immediate administrative persistence behind corporate perimeter firewalls.
4. Threat Intelligence & Active Telemetry
Section titled โ4. Threat Intelligence & Active Telemetryโ- CISA KEV Assessment: Evaluated as a primary KEV inclusion candidate due to historical threat actor exploitation of NetScaler zero-days (e.g., Citrix Bleed CVE-2023-4966).
- Shadowserver Telemetry: Over 28,000 Internet-facing Citrix NetScaler ADC and Gateway instances observed globally, with an estimated 42% running vulnerable SAML federations.
- CrowdSec Telemetry: Increased probing activity targeting
/cgi/samland/saml/loginacross North American, European, and Asia-Pacific enterprise networks. - EPSS Forecast: 0.162 (95.8th percentile), reflecting high automated attack likelihood within 30 days of advisory publication.
5. Detection Engineering & Defense-in-Depth
Section titled โ5. Detection Engineering & Defense-in-DepthโSigma Detection Rule
Section titled โSigma Detection Ruleโtitle: Citrix NetScaler SAML Buffer Overflow Exploitation Attempt (CVE-2026-107406)id: 84a92c14-2c67-4d9f-9c88-107406c1df82status: experimentaldescription: Detects anomalously oversized or malformed SAMLResponse POST requests targeting NetScaler authentication endpoints.author: Hermes Codex CTI Teamdate: 2026-10-13references: - https://support.citrix.com/s/article/CTX691942-netscaler-adc-and-netscaler-gateway-security-bulletin-for-cve2026107406logsource: category: webserver product: citrix_netscalerdetection: selection_endpoint: cs-method: "POST" cs-uri-stem|contains: - "/cgi/saml" - "/saml/login" - "/nf/auth/doSaml" selection_payload: cs-bytes|gt: 65536 condition: selection_endpoint and selection_payloadfalsepositives: - Legitimate enterprise SAML assertions with very large multi-group claims (verify assertion size baselines).level: criticaltags: - attack.initial_access - attack.t1190 - cve.2026-107406Suricata / Snort Network Signature
Section titled โSuricata / Snort Network Signatureโalert tcp any any -> $NETSCALER_SERVERS $HTTP_PORTS ( \ msg:"HERMES - Citrix NetScaler SAML Buffer Overflow Exploit Attempt (CVE-2026-107406)"; \ flow:to_server,established; \ content:"POST"; http_method; \ content:"/cgi/saml"; http_uri; \ content:"SAMLResponse="; http_client_body; \ pcre:"/SAMLResponse=[a-zA-Z0-9%+/=]{16384,}/"; \ classtype:attempted-admin; \ sid:202610740; \ rev:1; \)6. Strategic Remediation & Hardening Plan
Section titled โ6. Strategic Remediation & Hardening PlanโImmediate Firmware Upgrade Matrix
Section titled โImmediate Firmware Upgrade MatrixโUpgrade all deployed NetScaler ADC and Gateway appliances to patched builds immediately:
- NetScaler ADC & Gateway 14.1: Upgrade to 14.1-73.46 or later.
- NetScaler ADC & Gateway 13.1: Upgrade to 13.1-64.29 or later.
- NetScaler ADC 14.1-FIPS: Upgrade to 14.1-73.46 FIPS or later.
- NetScaler ADC 13.1-FIPS / NDcPP: Upgrade to 13.1-37.283 or later.
Verification of Configuration Exposure
Section titled โVerification of Configuration ExposureโExecute the following commands via the NetScaler CLI (nscli) to confirm if SAML policies are active:
# Check if configured as SAML Service Provider (SP)show authentication samlAction
# Check if configured as SAML Identity Provider (IdP)show authentication samlIdPProfileIf any profiles are bound to active virtual servers (show lb vserver or show vpn vserver), the appliance is directly exposed to CVE-2026-107406 until patched.