CVE DatabaseCVE-2023-3519
한국어 권고문 →
CVE-2023-35199.8/CRITICALCISA KEVCWE-94CWE-94

Citrix NetScaler ADC and Gateway Unauthenticated Remote Code Execution Vulnerability (CVE-2023-3519) Security Advisory

⚡ Jump to Patch
Affected Vendors
citrix
Affected Components
netscaler adc, netscaler gateway
Published Date
2023-07-19
CVSS v3.1
9.8
CRITICAL
EPSS (30d)
99.8%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Citrix NetScaler ADC and NetScaler Gateway appliances configured as a SAML SP or SAML IdP

Impact

Unauthenticated remote attackers can execute arbitrary code with elevated privileges on the appliance, leading to full system compromise

Mitigation

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

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)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

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

bash
# 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
reboot

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

bash
# 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_OVERRIDE

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

bash
# 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.log
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Due to active exploitation of this critical vulnerability, immediately verify your SAML configuration and apply the latest security patches.

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

90% Attack Surface Reduction · Hardware-Free

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

Frequently Asked SecOps Questions (CVE-2023-3519)

FAQ

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

SECOPS WORKBENCH INTEGRATION

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.

Generate Report →

🔗 Related Advisories in Similar Stack (citrix)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2023-3519 Citrix NetScaler ADC and Gateway Unauthenticated Remote Code Execution Vulnerability (CVE-2023-3519) Security Advisory (CVSS 9.8) - Patch & Workaround | CVE Pulse