CVE-2023-4966
High · 7.5 CISA KEV · ransomwareCVSS
7.5
EPSS
100.0%
Published
Oct 10, 2023
CISA due date
Nov 8, 2023
Cloudanix analysis
Attackers can steal active remote-access sessions from vulnerable Citrix gateway systems and use them to get inside without needing a password.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Trivial
- Impact
- Data Exposure
- Component
- Network Service
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
CVE-2023-4966, widely known as Citrix Bleed, is an unauthenticated information disclosure flaw in NetScaler ADC and NetScaler Gateway appliances when configured as a Gateway virtual server, including VPN virtual server, ICA Proxy, Clientless VPN, RDP Proxy, or as an AAA virtual server. A remote attacker can send crafted HTTP requests to vulnerable appliances and cause sensitive memory contents to be returned in the response. In real-world exploitation, the most important leaked data has been valid NetScaler session tokens, which can allow attackers to hijack authenticated user sessions without knowing credentials or completing MFA. The vulnerability primarily impacts confidentiality, but stolen session material can lead to unauthorized access through the gateway and follow-on compromise of internal resources reachable through that session.
Why it matters to the business
Successful exploitation can let an external attacker bypass normal login controls and impersonate legitimate remote-access users, creating a high risk of unauthorized access to business applications, desktops, and internal systems exposed through NetScaler Gateway. Because this vulnerability is in CISA KEV, has an extremely high EPSS score, is known to be actively exploited in the wild, and has been associated with ransomware activity, exposed systems should be treated as urgent even long after publication. Operational consequences may include account takeover, data theft, VPN abuse, lateral movement, incident response costs, emergency session resets, and possible business disruption if attackers use the access for ransomware deployment or extortion.
How an attack unfolds
An attacker first identifies an internet-facing NetScaler ADC or NetScaler Gateway configured for VPN, ICA Proxy, Clientless VPN, RDP Proxy, or AAA services. The attacker sends specially crafted unauthenticated HTTP requests that trigger the information disclosure condition and cause the appliance to return fragments of process memory. The attacker repeatedly collects and parses leaked memory for session cookies or authentication tokens such as NetScaler AAA session identifiers. If valid session material is found, the attacker replays it to the gateway and assumes the session of an already authenticated user, potentially bypassing MFA because the session was already established. From there, the attacker accesses applications or virtual desktops available to that user, establishes persistence where possible, harvests additional credentials or data, and may move laterally or stage ransomware activity.
How to fix it
Upgrade all affected NetScaler ADC and NetScaler Gateway appliances to vendor-fixed builds for the deployed release train. Because no exact fixed versions were provided in the input, consult the Citrix advisory for CTX579459 / CVE-2023-4966 and apply the latest supported fixed build for each appliance version. Appliances should not be considered fully remediated until they are upgraded and all active and persistent sessions are terminated, because tokens stolen before patching can remain usable. After patching, force logout of all users, clear active ICA/VPN/AAA sessions, invalidate persistent sessions, and rotate credentials for accounts suspected of compromise. If immediate patching is not possible, restrict internet exposure to trusted source IPs, place affected services behind additional access controls where feasible, disable unnecessary Gateway or AAA virtual servers, increase monitoring, and prepare for emergency maintenance. Mitigation alone should be considered temporary due to active exploitation and ransomware association.
How to confirm the fix worked
Confirm the appliance build is a Citrix-supported fixed version for CVE-2023-4966 and verify that every internet-facing and internal NetScaler ADC/Gateway instance has been assessed, including HA pairs, disaster recovery appliances, test systems, and appliances running Gateway or AAA virtual servers. Validate that all active sessions were terminated after the upgrade and that users were required to reauthenticate. From the management plane, review configured VPN, ICA Proxy, CVPN, RDP Proxy, and AAA virtual servers to ensure no exposed vulnerable configuration remains. Use external scanning to verify no unpatched NetScaler Gateway or ADC services are reachable from the internet. Review change records, appliance version output, and session tables to ensure patching and session invalidation occurred after the last possible exploitation window. Where possible, run vendor-recommended checks and compare observed versions against Citrix’s fixed-build matrix.
Typical attack path
- Scan the internet for exposed NetScaler ADC or NetScaler Gateway appliances with Gateway or AAA virtual server functionality enabled.
- Fingerprint the appliance and identify vulnerable versions or behavior consistent with the Citrix Bleed flaw.
- Send crafted unauthenticated HTTP requests designed to leak appliance memory contents.
- Extract valid session cookies, authentication tokens, or other sensitive values from the leaked response data.
- Replay stolen session tokens to hijack an authenticated user session, often bypassing password and MFA checks.
- Access internal applications, VPN resources, published desktops, or administrative interfaces available through the hijacked session.
- Perform follow-on actions such as credential theft, data discovery, lateral movement, persistence, exfiltration, or ransomware staging.
How to detect it
Look for signs of both the initial memory-leak exploitation and subsequent session hijacking. Relevant log sources include NetScaler ADC/Gateway HTTP access logs, VPN/AAA authentication logs, ICA Proxy logs, syslog exports, WAF or reverse-proxy logs, identity provider sign-in logs, EDR telemetry from accessed desktops or servers, and downstream application access logs. Initial exploitation may appear as repeated unauthenticated HTTP requests to the appliance with unusual headers, malformed request patterns, abnormal response sizes, or high-volume probing from internet hosts. Session hijacking is often more detectable than the memory disclosure itself: hunt for valid sessions used from new IP addresses, ASN changes, impossible travel, user-agent changes, access after a user’s normal logout time, or sessions continuing after patching but before forced invalidation. Pay special attention to sessions established before remediation that remain active afterward. Investigate access from VPS, hosting, proxy, or anonymization providers; unusual access to published applications; creation of new accounts; privileged application use through the gateway; and any ransomware precursor activity such as discovery commands, credential dumping, remote management tooling, archive creation, or bulk file access. Because this vulnerability has been exploited at scale, absence of obvious crash logs or authentication failures does not rule out compromise; attackers can reuse legitimate session tokens and appear as authenticated users.
- Cookie: NSC_AAAC
- Cookie: NSC_USER
- Cookie: NSC_TASS
- Cookie: NSC_TMAS
- NSC_AAAC=
- NSC_USER=
- NSC_TASS=
- NSC_TMAS=
- /var/log/ns.log
- /var/log/httpaccess.log
- /var/log/httperror.log
- /var/log/vpn.log
- /var/log/aaad.debug
- /var/log/audit.log
- /var/log/messages
- SSLVPN LOGIN
- SSLVPN LOGOUT
- AAA LOGIN
- AAA LOGOUT
- VPN vserver
- ICA Proxy
- Clientless VPN
- RDP Proxy
What your security team should do
- Treat all exposed vulnerable NetScaler ADC and NetScaler Gateway appliances as potentially compromised due to active exploitation, KEV listing, ransomware association, and near-certain EPSS likelihood.
- Immediately upgrade to the Citrix fixed build for the deployed release train, prioritizing internet-facing Gateway and AAA virtual servers.
- After upgrading, terminate all active sessions and persistent sessions; patching without session invalidation may leave previously stolen tokens usable.
- Hunt for evidence of session hijacking, anomalous VPN use, unusual source IP changes within a session, impossible travel, and access from hosting providers or unfamiliar geographies.
- Review NetScaler, VPN, AAA, web access, WAF, identity provider, EDR, and downstream application logs for suspicious access beginning before the patch date and continuing afterward.
- Reset credentials and revoke tokens for users with suspicious sessions or privileged access through the gateway.
- Restrict management interfaces and Gateway access to approved networks where operationally possible, and disable unused Gateway, VPN, ICA Proxy, CVPN, RDP Proxy, and AAA virtual server functionality.
- Increase monitoring for post-exploitation behavior including credential dumping, remote access tool deployment, data staging, lateral movement, and ransomware precursors.
- If evidence of exploitation is found, initiate incident response rather than treating the event as a simple patching task.
The record
Sensitive information disclosure in NetScaler ADC and NetScaler Gateway when configured as a Gateway (VPN virtual server, ICA Proxy, CVPN, RDP Proxy) or AAA ?virtual?server.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|