Two critical 0-days in Citrix NetScaler: RCE through logs and memory overflow in DTLS
Attack Techniques & Methods2026-10-14, 13:03
Two critical 0-days in Citrix NetScaler: RCE through logs and memory overflow in DTLS
Researchers at watchTowr Labs analyzed two vulnerabilities, CVE-2026-88771 and CVE-2026-88772,in Citrix NetScaler ADC and Gateway—products used for load balancing, VPN connectivity, and remote access. Both vulnerabilities can be exploited without authentication and were actively exploited in the wild as zero-days.
• CVE-2026-88771: Command Injection via Log Poisoning
The vulnerability affects the default NetScaler configuration and resides in the Perl script
ns_monuploadd_err.pl, which processes diagnostic logs to identify Packet Engine (nsppe) crashes.
An attacker sends an HTTP request containing a malicious string, for example, in the login parameter of /nf/auth/doAuthentication.do.
The string is recorded in the logs and crafted to resemble an nsppe crash message. The script processes the log using grep, tail, sed, and awk, extracting what it assumes is a core dump filename without validating the extracted fields.
The resulting value is interpolated into a find command executed through a shell. Shell metacharacters in the attacker-controlled value allow additional commands to execute.
Impact: arbitrary command execution with root privileges. The researchers confirmed this by executing id.
The attack is not limited to the login endpoint. Other HTTP parameters and headers, including User-Agent, can also supply attacker-controlled log content.
A distinctive feature is delayed execution: the diagnostic script may take up to 24 hours to run. watchTowr identified a method to trigger processing remotely but did not disclose the technique.• CVE-2026-88772: DTLS Buffer Overflow
The second vulnerability resides in
nsppe and affects DTLS processing. Exploitation requires DTLS to be enabled, which is the default for NetScaler VPN virtual servers.
DTLS supports fragmenting handshake messages across multiple records. The vulnerability arises because the reassembly code tracks the declared fragment lengths but retains substantially more data in its internal NetScaler Buffer (NSB) chain.
The researchers constructed 120 malicious DTLS records. Each declared a one-byte fragment of a 120-byte handshake message, but the server retained nearly the entire record in an NSB.
Once the handshake message was considered complete, nsppe copied the accumulated NSB chain into a fixed-size scratch buffer in its .bss section without checking the total size.
The result:
173,665 bytes copied;
35,840-byte destination buffer;
137,825 bytes written beyond the buffer boundary.
The initial overflow corrupted a global linked-list pointer and caused a crash. The researchers restored that pointer to its expected value, then used the remaining overflow to forge an object and redirect a virtual method call, gaining control of instruction execution.
Because NX protection prevented direct execution from writable memory, they used a ROP chain to call mprotect, change the memory page permissions, and execute shellcode.
Exploitation was simplified by the absence of PIE in the examined nsppe binary, which made code addresses predictable.
The researchers demonstrated code execution on NetScaler 14.1-73.30. The published detection artifact uses offsets specific to that build.• Fixes and Recommendations
Both vulnerabilities were addressed in:
NetScaler ADC / Gateway 14.1: 14.1-73.37 and later;
NetScaler ADC / Gateway 13.1: 13.1-64.23 and later;
NetScaler ADC 14.1-FIPS: 14.1-73.37 FIPS and later;
NetScaler ADC 13.1-FIPS / 13.1-NDcPP: 13.1-37.279 and later.
For CVE-2026-88771, Citrix added strict validation of core dump filenames and changed how
find is invoked to avoid shell interpretation.
For CVE-2026-88772, the patch checks the remaining scratch-buffer capacity before copying each NSB.
Both vulnerabilities have a Critical CVSS 4.0 score, and exploitation in the wild has been confirmed. Updating externally accessible NetScaler appliances should be a priority.Article (CVE-2026-88771): https://labs.watchtowr.com/oh-look-the-foot-gun-went-off-again-citrix-netscaler-preauth-command-injection-cve-2026-88771/
Article (CVE-2026-88772): https://labs.watchtowr.com/here-we-go-again-citrix-netscaler-dtls-preauth-memory-overflow-cve-2026-88772/
PoCs / Detection artifacts: