CVE-2026-88779: Citrix NetScaler ADC & Gateway SAML Buffer Overflow Vulnerability
HERMES THREAT SCORE & PERIMETER GATEWAY EXPOSURE
Target:Citrix NetScaler ADC & Gateway โ SAML Service Provider & Identity Provider Processing Subsystem CVSS v4.0 evaluates this flaw at 8.7 (High) with an attack condition requirement (AT:P) for SAML configuration. The Hermes Threat Score elevates this to 98 (CRITICAL) due to confirmed active weaponized exploitation in the wild, resulting in its immediate addition to the CISA Known Exploited Vulnerabilities (KEV) catalog on October 4, 2026. NetScaler ADC and Gateway systems occupy critical edge boundary locations, handling external reverse-proxying, load balancing, and SSL VPN termination. When an appliance is configured as either a SAML Service Provider (SP) or Identity Provider (IdP), unauthenticated remote adversaries can transmit malformed SAML assertions with oversized attributes, triggering heap memory corruption in the native packet processing engine (nsppe) and achieving denial of service or remote memory manipulation without valid user credentials.
CVE-2026-88779: Citrix NetScaler ADC & Gateway SAML Buffer Overflow VulnerabilityVULNERABILITY
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 Vulnerability Anatomy & Root Cause
Section titled โ1. Technical Vulnerability Anatomy & Root CauseโThe vulnerability resides within the native NetScaler Packet Processing Engine (/netscaler/nsppe), which processes ingress Layer 7 HTTP and SAML protocol transactions in kernel-adjacent user space. When handling incoming SAML assertions (POST /saml/login or ACS consumer endpoints), the XML parsing routine extracts SAML attributes, signature values, and session indexes before verifying the cryptographic signature of the identity provider.
During attribute unmarshalling in ns_saml_parse_attribute_statement(), the length of user-controlled SAML attribute values is extracted from XML DOM elements without enforcing a boundary ceiling against the allocated fixed heap buffer:
/* Vulnerable SAML attribute unmarshalling routine in nsppe */int ns_saml_parse_attribute_statement(xmlNodePtr attr_node, saml_session_t *session) { char attr_value_buf[1024]; xmlChar *raw_val = xmlNodeGetContent(attr_node); int val_len = xmlStrlen(raw_val);
/* Flaw: val_len is validated only against integer signedness, not buffer capacity */ if (val_len > 0) { /* Heap/stack memory buffer overflow: unbounded memcpy copies up to 64KB */ memcpy(attr_value_buf, raw_val, val_len); attr_value_buf[val_len] = '\0'; ns_saml_store_attribute(session, attr_value_buf); } xmlFree(raw_val); return 0;}Because the memory buffer allocated on the heap for storing attribute fragments is constrained to standard token sizes, passing an oversized attribute string exceeding 1,024 bytes overwrites adjacent memory management structures, metadata headers, and function pointers within the nsppe process heap.
+-------------------------------------------------------------------------+| CITRIX NETSCALER HEAP BUFFER OVERFLOW |+-------------------------------------------------------------------------+| || [External Attacker] || โ || โ HTTP POST /cgi/saml-auth (Malformed Assertion with 8KB Attr) || โผ || [NetScaler Virtual Server (AAA / Gateway)] || โ || โผ || [nsppe Packet Processing Engine] || โ || โโโบ ns_saml_parse_attribute_statement() || โ โ || โ โโโบ Reads attribute length without boundary check || โ โโโบ memcpy(attr_value_buf, raw_val, 8192) || โ โ || โ โผ [HEAP CORRUPTION] || โ Buffer [1024B] Overwritten โโโบ Overwrites Function Pointers|| โ || โผ || [Process Crash / DoS] โโโโ or โโโโบ [Memory Leak / Arbitrary Execution] || |+-------------------------------------------------------------------------+2. Affected Versions & Remediation Matrix
Section titled โ2. Affected Versions & Remediation Matrixโ| Product Stream | Vulnerable Versions | Fixed Release | Security Advisory |
|---|---|---|---|
| NetScaler ADC & Gateway 14.1 | Prior to 14.1-73.41 | 14.1-73.41 | CTX697200 |
| NetScaler ADC & Gateway 13.1 | Prior to 13.1-64.28 | 13.1-64.28 | CTX697200 |
| NetScaler ADC 14.1-FIPS | Prior to 14.1-73.41 FIPS | 14.1-73.41 FIPS | CTX697200 |
| NetScaler ADC 13.1-FIPS / NDcPP | Prior to 13.1-37.282 | 13.1-37.282 | CTX697200 |
| NetScaler ADC & Gateway 12.1 | All versions (EOL) | Upgrade to supported release | End of Life / Migration required |
3. Attack Surface Verification & Threat Telemetry
Section titled โ3. Attack Surface Verification & Threat TelemetryโTo assess whether a specific appliance deployment is exposed, administrators must query the active running configuration for SAML configuration directives via the NetScaler CLI or configuration files:
# Check for SAML Service Provider actionsshow authentication samlAction
# Check for SAML Identity Provider profilesshow authentication samlIdPProfileIf neither SAML Action nor SAML IdP Profile is bound to a virtual server, the appliance is not susceptible to unauthenticated remote triggering via SAML endpoints. However, because SAML authentication is standard for Microsoft Entra ID (Azure AD), Okta, and PingIdentity integrations, a large percentage of enterprise edge gateways actively expose this surface.
4. Forensic Detection & Incident Triage
Section titled โ4. Forensic Detection & Incident Triageโtitle: Citrix NetScaler SAML Buffer Overflow Exploitation Attemptid: c714e82a-8991-4c12-a189-cve202688779status: experimentaldescription: Detects oversized SAML POST requests directed at Citrix NetScaler ADC/Gateway authentication endpoints characteristic of CVE-2026-88779 exploitation.author: Hermes Codex Threat Intelligencedate: 2026-10-05references: - https://support.citrix.com/s/article/CTX697200 - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-88779logsource: category: webserver product: netscalerdetection: selection_path: cs-method: 'POST' cs-uri-stem|contains: - '/cgi/saml-auth' - '/saml/login' - '/nf/auth/doSaml.do' - '/vpn/index.html' selection_payload: cs-bytes|gt: 65536 condition: selection_path and selection_payloadfalsepositives: - Complex SAML assertions containing heavy XML signature chains and multi-group assertionslevel: high// Azure Sentinel / Microsoft Defender for Cloud// Detect NetScaler Core Dumps or nsppe Process Crash EventsSyslog| where ProcessName in~ ("nsppe", "pitboss", "monit")| where SyslogMessage has_any ("core dump", "SIGSEGV", "segmentation fault", "killed by signal 11")| project TimeGenerated, HostName, ProcessName, SyslogMessage, Facility, SeverityLevel| order by TimeGenerated desc#!/bin/sh# NetScaler FreeBSD Appliance Local Triage Scriptecho "=== [1] Auditing SAML Configuration Bindings ==="nsconmsg -d current -g saml_err_ -s verbose=1 2>/dev/null
echo "=== [2] Checking for Recent nsppe Core Dumps ==="ls -la /var/core/nsppe* 2>/dev/null || echo "No nsppe core dumps found in /var/core/"
echo "=== [3] Examining NSSLOG Crash Events ==="grep -Ei "killed by signal|segmentation fault" /var/log/ns.log | tail -n 20
echo "=== [4] Verifying Installed Kernel Build Version ==="uname -v5. Remediation Strategy & Mitigation Steps
Section titled โ5. Remediation Strategy & Mitigation Stepsโ-
Apply Vendor Patch CTX697200: Download the relevant build package from the Citrix customer portal (
14.1-73.41,13.1-64.28, or FIPS equivalent). Upload the tar archive to/var/nsinstall/and perform a system update:Terminal window installnsreboot -
Temporary Mitigation via Responder Policy (If Patching is Delayed): If an immediate reboot window cannot be scheduled, deploy a NetScaler Responder policy to inspect and drop incoming HTTP POST bodies exceeding safe SAML payload limits on exposed authentication virtual servers:
Terminal window add responder policy pol_drop_oversized_saml "HTTP.REQ.URL.CONTAINS(\"/saml\") && HTTP.REQ.CONTENT_LENGTH.GT(32768)" DROPbind lb vserver vs_vpn_aaa -policyName pol_drop_oversized_saml -priority 10 -gotoPriorityExpression END -type REQUEST -
Terminate and Invalidate Existing Client Sessions: Following the update, terminate all established AAA and Gateway sessions to ensure malicious tokens or corrupted session entries cannot persist:
Terminal window kill aaa user -allkill icaconnection -all -
Isolate Management Interfaces: Ensure NSIP (NetScaler IP) and SNIP interfaces are strictly isolated to out-of-band management subnets, blocking direct internet ingress to management services.