Skip to content

CVE-2026-107406: Citrix NetScaler ADC and Gateway SAML Memory Overflow Remote Code Execution

Density:
C-Level Executive Briefing CVE-2026-107406 CRITICAL SCORE 96/100

Critical unauthenticated memory corruption flaw in NetScaler SAML processing enabling remote code execution and appliance takeover on edge gateway deployments.

HYBRID

HERMES THREAT SCORE & PERIMETER GATEWAY EVALUATION

Target: Citrix NetScaler ADC / Gateway โ€” Packet Processing Engine (PPE) SAML Handler
Confidence: 98%
96 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 20 / 20
Threat Activity 19 / 20
Weaponization 19 / 20
Exposure 20 / 20
Prevalence 19 / 20
Impact 20 / 20
Exploit Maturity 19 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-107406: Citrix NetScaler ADC and Gateway SAML Memory Overflow Remote Code ExecutionVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTCitrix NetScaler ADC
98% VERY_HIGH

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.”

Supporting Verified Evidence:

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).

ParameterTechnical SpecificationOperational Details
CVE IdentifierCVE-2026-107406Canonical security tracking identifier
Affected ProductNetScaler ADC / NetScaler GatewayEnterprise Application Delivery Controller & Edge VPN
Vulnerable Componentnsppe / SAML parsing subsystemPacket Processing Engine native authentication binary
Vulnerable Builds14.1 < 14.1-73.46, 13.1 < 13.1-64.29NetScaler standard and FIPS / NDcPP firmware releases
Patched Releases14.1-73.46, 13.1-64.29, 13.1-37.283Vendor patched firmware distributed October 2026
Vulnerability ClassMemory Corruption (CWE-119 / CWE-120)Buffer overflow during SAML XML attribute normalization
Attack VectorNetwork (AV:N), Unauthenticated (PR:N)Public SAML consumer endpoint (/saml/login, /cgi/saml)

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/sh

During 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.


  1. Target Identification & Configuration Reconnaissance: The adversary scans public NetScaler gateways. The presence of endpoints such as /cgi/saml/login or HTTP header Citrix-NetScaler confirms active ADC instances. A test handshake verifies whether the gateway operates as a SAML SP or IdP.

  2. 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.

  3. 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>..."
  4. Payload Execution & Post-Exploitation: The nsppe process 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.


  • 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/saml and /saml/login across 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.

title: Citrix NetScaler SAML Buffer Overflow Exploitation Attempt (CVE-2026-107406)
id: 84a92c14-2c67-4d9f-9c88-107406c1df82
status: experimental
description: Detects anomalously oversized or malformed SAMLResponse POST requests targeting NetScaler authentication endpoints.
author: Hermes Codex CTI Team
date: 2026-10-13
references:
- https://support.citrix.com/s/article/CTX691942-netscaler-adc-and-netscaler-gateway-security-bulletin-for-cve2026107406
logsource:
category: webserver
product: citrix_netscaler
detection:
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_payload
falsepositives:
- Legitimate enterprise SAML assertions with very large multi-group claims (verify assertion size baselines).
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026-107406
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; \
)

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.

Execute the following commands via the NetScaler CLI (nscli) to confirm if SAML policies are active:

Terminal window
# Check if configured as SAML Service Provider (SP)
show authentication samlAction
# Check if configured as SAML Identity Provider (IdP)
show authentication samlIdPProfile

If 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.