Citrix Bleed: the patch that was not enough
CVE-2023-4966 leaked session tokens from NetScaler memory, letting attackers skip passwords and MFA entirely. Upgrading did not kill the sessions already stolen.

Most vulnerability advisories end with "apply the update". Citrix Bleed is the case that taught a lot of security teams why that sentence is sometimes a trap. Organizations applied the update, closed the ticket, and were compromised afterwards using sessions stolen before the patch went on.
The vulnerability is CVE-2023-4966, disclosed by Citrix on 10 October 2023 and nicknamed Citrix Bleed for its resemblance to Heartbleed. It affected NetScaler ADC and NetScaler Gateway, the appliances a very large number of enterprises put at the edge of their network to terminate VPN and remote access traffic. Which is to say: the box whose entire job is to decide who gets in.
A defect, exploited as a zero-day
To be clear about the nature of the event: this was a software flaw, not an error by operators and not an outage. It became an incident because attackers found it first. Mandiant reported observing zero-day exploitation in the wild beginning in late August 2023, roughly six weeks before Citrix published a bulletin, followed by heavy n-day exploitation once the fix and the technical details were public.
Mandiant's investigations covered legal and professional services, technology and government organizations, with victims in the Americas, EMEA and Asia-Pacific, and it said it suspected the true number of affected organizations was considerably larger. CISA added the CVE to its Known Exploited Vulnerabilities catalog on 18 October 2023.
How it worked
The mechanism is unusually easy to explain, which is part of why exploitation spread so fast.
An attacker sends an HTTP GET request to a particular endpoint on the appliance with an oversized, crafted Host header. Because of a buffer handling mistake, the appliance's response includes a block of its own process memory rather than only the intended data. That memory is live working memory from a device that is, at that moment, handling authenticated user sessions. Among the bytes returned, attackers frequently found a valid NetScaler AAA session cookie.
A session cookie is a bearer token. It means "this request belongs to a user who has already proved who they are". Replaying a stolen one creates an authenticated session on the appliance without a username, without a password, and without a multi-factor prompt, because from the appliance's point of view the authentication already happened. CISA's advisory states this plainly: multi-factor authentication on the NetScaler does not work as intended against this attack, because the attacker presents a session for an already authenticated user.
From that session, the documented pattern is ordinary intrusion work. Credential harvesting from the virtual desktop or network behind the gateway, reconnaissance, lateral movement, and in the ransomware cases, deployment. Mandiant's investigative guidance notes something defenders should know: requests to the vulnerable endpoint are not logged by the NetScaler web server, so evidence of exploitation has to come from a web application firewall, upstream network device logs, or from the appliance's ns.log where a hijacked session shows a mismatch between the recorded client IP and the source of the traffic.
Affected versions
- NetScaler ADC and NetScaler Gateway 14.1 before 14.1-8.50
- NetScaler ADC and NetScaler Gateway 13.1 before 13.1-49.15
- NetScaler ADC and NetScaler Gateway 13.0 before 13.0-92.19
- NetScaler ADC 13.1-FIPS before 13.1-37.163
- NetScaler ADC 12.1-FIPS and 12.1-NDcPP before 12.1-55.300
- NetScaler ADC and Gateway 12.1, which was end of life and received no fix at all
That last line is the one that stranded people. An end-of-life appliance exposed to the internet during active mass exploitation has no remediation path other than replacement or removal.
The remediation trap
Here is the part that makes this incident worth studying rather than just remembering.
Upgrading the appliance stops new memory from leaking. It does nothing to the session tokens that already left. Those tokens remained valid, and attackers who had harvested them during the zero-day window or in the days after disclosure simply used them later, against patched appliances.
Citrix updated its bulletin to tell administrators to remove all active and persistent sessions after upgrading, providing the specific commands to terminate AAA sessions, ICA and RDP connections and load-balancing persistence. CERT-EU's advisory restated the point: sessions may persist after the update is deployed. Mandiant's remediation guidance made the same case, and Mandiant's own chief technology officer later noted publicly that many organizations had not terminated sessions during remediation, and that sessions whose secrets were stolen before patching were then hijacked after patching.
So the correct remediation was two steps in order: upgrade every appliance in the high-availability pair or cluster, then kill every session. Organizations that did one and not the other were, in a practical sense, unpatched.
Who was hit
On 21 November 2023, CISA, the FBI, MS-ISAC and the Australian Signals Directorate's Australian Cyber Security Centre published joint advisory AA23-325A on LockBit 3.0 affiliates exploiting Citrix Bleed. Boeing voluntarily shared indicators and detection information for that advisory, following its own incident, and is credited as a contributor. That is an unusually constructive thing for a victim organization to do and it is worth noting.
Reporting linked a number of other significant incidents in late 2023 to the same vulnerability, including the US arm of Industrial and Commercial Bank of China, DP World Australia, the law firm Allen & Overy and Toyota Financial Services. The strength of those links varies: in some cases the organization confirmed a cyber incident without naming the vulnerability, and the connection to CVE-2023-4966 came from researchers or from the attackers' own claims. Treat the Boeing contribution to the CISA advisory as confirmed and the rest as reported.
Confirmed versus unknown
Confirmed: the mechanism, the affected versions, the disclosure date, zero-day exploitation from late August 2023, the MFA bypass, the absence of web server logging for the vulnerable endpoint, the need to terminate sessions after upgrading, LockBit 3.0 affiliate use, and the KEV listing.
Not established publicly: the total number of compromised appliances or organizations. Internet scanning counts of unpatched devices circulated widely in October and November 2023 and were useful at the time, but a vulnerable device is not a compromised one. Also unknown is who conducted the original zero-day exploitation in August and September, and whether the espionage-motivated activity Mandiant tracked and the later ransomware activity share any origin.
Why it mattered
It established the pattern for edge-device exploitation. VPN concentrators, gateways and firewalls are attractive for three reasons at once: they are internet-facing by design, they hold authentication material, and they usually run a vendor appliance operating system that your endpoint detection tooling cannot see inside. A compromise there is both high value and low visibility. The same shape recurs across zero-day campaigns against other vendors' edge products.
It demonstrated that MFA is not a layer, it is a step. Multi-factor authentication protects the act of authenticating. It does not protect a session afterwards. Any flaw that yields a session token, whether through memory disclosure here, a stolen HAR file, or infostealer malware on a laptop, routes around it entirely. Session binding, short session lifetimes and re-authentication for sensitive actions are what cover that gap.
It changed what "remediated" means. After Citrix Bleed, the better advisories started separating "stop the bleeding" from "invalidate what leaked". That is now standard phrasing for credential-disclosure vulnerabilities, and it is the single most transferable lesson here.
What to take from it
- For any information-disclosure vulnerability, ask what leaked and invalidate it. Session tokens, API keys, password hashes, certificates. Patch, then rotate or revoke. Write this into your process so it is not a judgment call at 11pm.
- Inventory your edge appliances with versions and end-of-life dates. The organizations in the worst position during this event were running 12.1, for which no fix existed. Knowing in advance which of your internet-facing devices have no remediation path is a vulnerability management basic that is widely skipped.
- Get logs off the appliance and in front of something that inspects requests. Exploitation of this endpoint was invisible in the appliance's own web logs. A web application firewall or reverse proxy in front of the gateway gave defenders the only reliable record of attempts.
- Assume compromise when a vulnerability was exploited before the patch. Six weeks of zero-day exploitation means the question is not whether to hunt but where. CISA's advisory tells responders to assume full administrative compromise of the appliance, and that removing a malicious administrator account may not remove persistence.
- Shorten session lifetimes on remote access. It is unpopular and it directly reduces the value of a stolen token. Paired with network-bound sessions, it is the control that would have blunted this most. Our zero trust guide covers the broader version of this argument.
Unexpected VPN or remote access prompt? A hijacked session sometimes shows up first as a strange login alert. If you get a message or link about your remote access account, paste it into CyberWatch AI Scan for a free check.
There is a quieter point in all this about where organizations place their trust. A NetScaler gateway is bought precisely to be the strong front door, and a great deal of internal architecture is designed on the assumption that it holds. When the strong front door turns out to hand out copies of other people's keys from its own memory, the designs that depended on it have no second line. The organizations that fared best were not the ones that patched fastest. They were the ones for whom a compromised gateway was survivable, because what sat behind it still required authentication, still logged, and still noticed an account behaving strangely. That is the uncomfortable design lesson, and it applies to the next edge appliance as much as this one. Our network security guide works through what that looks like in practice.
Frequently asked questions
Was Citrix Bleed an attack or a product defect?
A product defect that was exploited heavily. CVE-2023-4966 was a genuine flaw in Citrix NetScaler ADC and Gateway. Mandiant observed it being exploited as a zero-day from late August 2023, before Citrix published a fix in October.
What did the vulnerability actually leak?
Memory contents. A crafted HTTP request with an oversized Host header caused the appliance to return a chunk of its own memory, which frequently contained a valid NetScaler AAA session cookie belonging to a legitimate authenticated user.
How did it bypass multi-factor authentication?
It never touched authentication. A session cookie represents a user who has already authenticated. Presenting a stolen one creates an authenticated session with no username, password or second factor required, so MFA on the appliance did not apply.
Why was applying the patch not sufficient?
Because session tokens stolen before the upgrade remained valid afterwards. Citrix updated its guidance to tell administrators to terminate all active and persistent sessions after upgrading. Organizations that patched without killing sessions were hijacked after patching.
Which versions were affected?
NetScaler ADC and Gateway 14.1 before 14.1-8.50, 13.1 before 13.1-49.15, 13.0 before 13.0-92.19, plus 13.1-FIPS before 13.1-37.163 and 12.1-FIPS and 12.1-NDcPP before 12.1-55.300. Version 12.1 was end of life and received no fix.
Who exploited it?
Many groups. CISA, the FBI, MS-ISAC and the Australian Cyber Security Centre published a joint advisory on LockBit 3.0 affiliates using it. Mandiant separately tracked espionage-motivated exploitation against legal and professional services, technology and government organizations.
Which organizations were publicly affected?
Boeing contributed indicators to the CISA advisory after its own incident. Reporting linked incidents at ICBC Financial Services, DP World Australia, Allen & Overy and Toyota Financial Services to the same vulnerability, though not every attribution came from the affected organization.
What is the general lesson?
After any vulnerability that leaks credentials or sessions, remediation has two steps: close the hole, then invalidate everything that could have escaped through it. Patching alone leaves the attacker's existing access intact.
Sources
- Threat Actors Exploiting Citrix CVE-2023-4966 to Implant Webshells (AA23-325A), US Cybersecurity and Infrastructure Security Agency
- NetScaler ADC and NetScaler Gateway Security Bulletin for CVE-2023-4966 and CVE-2023-4967, Citrix
- CVE-2023-4966, CVE Program
- Remediation for Citrix NetScaler ADC and Gateway Vulnerability (CVE-2023-4966), Google Cloud / Mandiant
- Session Hijacking: Citrix NetScaler ADC and Gateway (CVE-2023-4966), Google Cloud Threat Intelligence
- Citrix Bleed: Leaking Session Tokens with CVE-2023-4966, Assetnote
- Critical Vulnerabilities in Citrix NetScaler ADC and NetScaler Gateway, CERT-EU
- Citrix Bleed exploit lets hackers hijack NetScaler accounts, BleepingComputer
- CISA Known Exploited Vulnerabilities Catalog, US Cybersecurity and Infrastructure Security Agency


