What is Citrix NetScaler ADC and Gateway?
Citrix NetScaler ADC (Application Delivery Controller) and NetScaler Gateway are enterprise network appliances providing load balancing, SSL offloading, application acceleration, and VPN remote access for large organizations. NetScaler Gateway (formerly Citrix Access Gateway) enables remote employees to access internal applications through a web-based portal. NetScaler appliances sit at the network perimeter handling all web application and VPN traffic, making their compromise equivalent to losing the front door of the organization — an attacker with NetScaler access can intercept decrypted VPN sessions, harvest credentials, and pivot directly into the internal network.
Overview
CVE-2023-3519 is a critical unauthenticated code injection vulnerability in Citrix NetScaler ADC and NetScaler Gateway that allows pre-authentication remote code execution when the appliance is configured as a Gateway (VPN virtual server, ICA Proxy, CVPN, or RDP Proxy). Disclosed as a zero-day on July 18, 2023, it was immediately exploited at scale — Shadowserver identified over 2,000 compromised NetScaler appliances with web shells installed within weeks of disclosure. CISA added it to KEV the same day it was formally published and released a separate advisory covering exploitation specifics.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| NetScaler ADC and NetScaler Gateway 13.1 | < 13.1-49.13 | 13.1-49.13 |
| NetScaler ADC and NetScaler Gateway 13.0 | < 13.0-91.13 | 13.0-91.13 |
| NetScaler ADC 13.1-FIPS | < 13.1-37.159 | 13.1-37.159 |
| NetScaler ADC 12.1-FIPS | < 12.1-55.297 | 12.1-55.297 |
| NetScaler ADC 12.1-NDcPP | < 12.1-55.297 | 12.1-55.297 |
The vulnerability is only exploitable when the appliance is configured as a Gateway or AAA virtual server.
Technical Details
CWE-94 (Improper Control of Code Generation / Code Injection). The NetScaler Gateway web interface contains a code injection vulnerability in the pre-authentication code path — reachable before any credentials are required. A specially crafted HTTP request to the vulnerable endpoint causes the appliance to process attacker-controlled content as executable code, achieving RCE in the context of the NetScaler process.
Observed post-exploitation actions:
- Web shell installation: PHP/Python web shells uploaded to the NetScaler's web root directory for persistent access
- Credential harvesting: Dumping NetScaler configuration files containing VPN credentials, LDAP/AD integration passwords, and other secrets
- Session token theft: Accessing active VPN session cookies (pre-dating the separate "Citrix Bleed" CVE-2023-4966, which specifically targeted session tokens)
- Lateral movement: Using harvested credentials to pivot into Active Directory and internal applications
Discovery
Exploited as a zero-day before Citrix's disclosure. Multiple security researchers analyzed the vulnerability immediately after the patch, and active web shell implantation was documented within days of disclosure. CISA released a dedicated advisory covering indicators of compromise and forensic guidance for affected appliances.
Exploitation Context
CVE-2023-3519 was one of the most broadly exploited VPN appliance vulnerabilities of 2023. Exploitation was observed from multiple threat actor categories:
- Ransomware groups: Multiple ransomware operators used NetScaler access as initial entry points for corporate network intrusions
- Nation-state actors: China-nexus and other APT groups targeted government and critical infrastructure NetScaler deployments
- Cryptocurrency miners: Automated exploitation for cryptomining
Over 2,000 Citrix appliances were confirmed web-shell compromised by mid-August 2023 according to Shadowserver data. Many organizations patched the vulnerability while leaving existing web shells in place — requiring separate forensic review and remediation of the persistent access.
Remediation
- Apply Citrix patches per CTX561482 immediately to all affected NetScaler ADC and Gateway appliances.
- Critical: Patching alone does not remediate existing web shell installations. After patching, perform a forensic review to identify and remove any web shells installed prior to patching.
- Check for web shell files in NetScaler's web directories:
/netscaler/ns_gui/,/var/vpn/themes/, and similar locations. Look for PHP or shell script files with recent modification timestamps. - Review NetScaler access logs for POST requests to unexpected paths, particularly around the gateway URL handlers.
- Rotate all credentials stored in NetScaler configuration: LDAP/AD bind passwords, RADIUS secrets, VPN pre-shared keys, and SSL certificate private keys.
- Restrict NetScaler management (NSIP) access to trusted management networks — admin access should never be internet-accessible.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2023-3519 |
| Vendor / Product | Citrix — NetScaler ADC and NetScaler Gateway |
| NVD Published | 2023-07-19 |
| NVD Last Modified | 2025-10-24 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-94 find similar ↗ |
| CISA KEV Added | 2023-07-19 |
| CISA KEV Deadline | 2023-08-09 |
| Known Ransomware Use | ⚠️ Yes |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2023-07-18 | Citrix releases CTX561482 patching CVE-2023-3519 — disclosed as a zero-day already being exploited |
| 2023-07-19 | CVE-2023-3519 published; CISA adds to KEV same day |
| 2023-08-09 | CISA BOD 22-01 remediation deadline |
| 2023-08-15 | Shadowserver reports 2,000+ NetScaler appliances with web shells installed via CVE-2023-3519 |
References
| Resource | Type |
|---|---|
| Citrix Security Bulletin CTX561482 — CVE-2023-3519 | Vendor Advisory |
| CISA Alert — Citrix NetScaler ADC and Gateway Zero-Day | US Government |
| NVD — CVE-2023-3519 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |