Citrix NetScaler ADC and Gateway Unauthenticated Remote Code Execution Vulnerability (CVE-2023-3519) Security Advisory
Executive & SecOps Summary
SECOPS ASSESSMENTCitrix NetScaler ADC and NetScaler Gateway appliances configured as a SAML SP or SAML IdP
Unauthenticated remote attackers can execute arbitrary code with elevated privileges on the appliance, leading to full system compromise
Immediately apply the official security patches provided by Citrix and run compromise assessment scripts to detect potential Indicators of Compromise (IoCs)
Affected Products & Version Scope
Remediation & Live Workaround Commands
PATCH & WORKAROUND1. Official Patch & Version Upgrade Commands
Follow the official Citrix advisory to upgrade your appliance to the latest secure build. Below is an example of performing a firmware upgrade via the CLI.
# 1. Upload the new firmware image to /var/nsinstall/ and extract it
cd /var/nsinstall/
tar -zxvf build_tgz_file.tgz
# 2. Run the installation script and reboot the appliance
./installns
reboot2. Temporary Workaround & Hardening Configuration
If immediate patching is not feasible, temporarily disable SAML features or restrict access to SAML endpoints from untrusted external IPs using NetScaler Responder policies.
# Example: Create and bind a responder policy to drop external requests to SAML endpoints
add responder policy app_block_saml_policy 'HTTP.REQ.URL.CONTAINS("/saml")' DROP
bind responder global app_block_saml_policy 100 END -type REQ_OVERRIDE3. Log Audit & IoC Verification Commands
To verify if your system has already been compromised, inspect the NetScaler shell for unauthorized web shells and anomalous process logs.
# 1. Search for recently modified or created suspicious files in web directories
find /var/netscaler/logon/ /netscaler/ns_gui/ -type f -mtime -30 -name '*.php'
# 2. Check system logs for anomalous SAML-related requests
fgrep -i 'saml' /var/log/ns.logStop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access
Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.
Technical Root Cause & Exploitation Mechanics
1. Vulnerability Overview & Root Cause
This vulnerability (CVE-2023-3519) is an unauthenticated remote code execution (RCE) vulnerability residing in the SAML (Security Assertion Markup Language) processing logic of Citrix NetScaler ADC and Gateway. When the appliance is configured to function as a SAML Service Provider (SP) or Identity Provider (IdP), insufficient input validation on incoming malicious requests leads to memory corruption (such as stack-based buffer overflow), allowing attackers to bypass authentication and execute code within the system context.
2. Exploitation Mechanics & Attack Scenario
An attacker exploits this vulnerability by sending a specially crafted HTTP request to the SAML endpoints (e.g., /saml/consume) of the target NetScaler appliance. By supplying excessively long values in specific fields within the request headers or SAML payload, the attacker triggers a buffer overflow in the internal parser. This overwrites the instruction pointer, redirecting execution flow to attacker-controlled shellcode, enabling them to deploy web shells, establish backdoor accounts, and conduct reconnaissance.
3. Infrastructure & Business Impact
NetScaler ADC and Gateway serve as critical perimeter infrastructure controlling remote access (VPN) and traffic distribution. With a CVSS score of 9.8, this vulnerability is highly critical and has been actively exploited in the wild, leading to its inclusion in the CISA KEV catalog. Compromise of these appliances allows attackers to decrypt TLS traffic, harvest user credentials, and establish a persistent foothold to perform lateral movement into the internal corporate network (such as Active Directory), posing an existential threat to business operations.
Official Vendor Advisories & References
Unauthenticated remote code execution
Frequently Asked SecOps Questions (CVE-2023-3519)
FAQQ1. How critical is CVE-2023-3519 and is it actively exploited in the wild?
CVE-2023-3519 is rated CVSS 9.8 (CRITICAL) with a 30-day EPSS exploitation probability of 99.8%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.
Q2. Which vendors and products are affected by CVE-2023-3519?
Primary impacted vendors include citrix across netscaler adc, netscaler gateway. Scope summary: Citrix NetScaler ADC and NetScaler Gateway versions 13.1, 13.0, 12.1, and NetScaler ADC 13.1-FIPS, 12.1-FIPS (when configured with SAML)
Q3. What temporary mitigations or workarounds exist for CVE-2023-3519 before patching?
[Mitigation] Immediately apply the official security patches provided by Citrix and run compromise assessment scripts to detect potential Indicators of Compromise (IoCs) Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.
Generate an Internal Engineering Notice or CISO Report for CVE-2023-3519
Instantly format this advisory into an executive CISO summary or engineering patch ticket.
🔗 Related Advisories in Similar Stack (citrix)
View Category →Citrix NetScaler ADC and Gateway Unauthenticated Remote Code Execution (RCE) Vulnerability (CVE-2026-88771)
[Affected Scope] Citrix NetScaler ADC and Gateway versions prior to 14.1-73.37 and 13.1-64.23, including FIPS/NDcPP variants.
Citrix NetScaler ADC and Gateway Authentication Bypass and RCE Vulnerability (CVE-2026-19490)
[Affected Scope] NetScaler ADC and Gateway versions 14.1 (prior to 73.32) and 13.1 (prior to 63.21)
Citrix NetScaler ADC and Gateway Memory Overflow Vulnerability (CVE-2026-8452) Critical Security Advisory
[Affected Scope] Citrix NetScaler ADC and NetScaler Gateway appliances configured as a Gateway (SSL VPN, ICA Proxy, CVPN, RDP Proxy) or AAA virtual server
Citrix NetScaler ADC & Gateway SAML IDP Memory Overread Vulnerability (CVE-2026-3055) Security Advisory
[Affected Scope] Citrix NetScaler ADC and NetScaler Gateway appliances configured to act as a SAML Identity Provider (IDP)
Subscribe to Daily Vulnerability Briefings & KEV Alerts
Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.