# CVE-2025-5777: CitrixBleed 2 leaks memory from NetScaler Gateways, exploited

Insufficient input validation in NetScaler ADC and Gateway leaks memory to unauthenticated attackers on Gateway and AAA virtual servers, which lets them hijack sessions. Exploitation began in June 2025, CISA lists it in KEV with known ransomware use, and public PoCs exist.

- Vendor: NetScaler, NetScaler ADC and Gateway (Gateway and AAA virtual servers)
- Severity: CRITICAL (CVSS 4.0 9.3)
- Exploited (CISA KEV): yes, added 2025-07-10, known ransomware use
- EPSS: 99.9% on 2026-11-23
- Public exploit: yes
- Patch available: yes
- Vendor advisory: CTX693420, https://support.citrix.com/support-home/kbsearch/article?articleNumber=CTX693420
- Published: 2025-06-17; updated: 2026-10-12
- Page: https://patchtonight.com/cve/CVE-2025-5777/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| NetScaler ADC and Gateway 14.1 before 14.1-43.56 | 14.1-43.56 or later |
| NetScaler ADC and Gateway 13.1 before 13.1-58.32 | 13.1-58.32 or later |
| NetScaler ADC and Gateway 13.0 (end of life) | No fix. Upgrade to a supported fixed version |

## What it is

CVE-2025-5777, nicknamed **CitrixBleed 2**, is an out-of-bounds read in NetScaler ADC and Gateway (CWE-125). Citrix rates it 9.3 under CVSS 4.0. An unauthenticated attacker sends a malformed login request and gets back a small piece of the appliance's memory. watchTowr found that a POST to the login endpoint with a `login` parameter but no `=` or value returns memory inside an `<InitialValue>` tag. Each request leaks only a few bytes, so attackers repeat it.

The aim is **session hijacking**. watchTowr and Horizon3 showed that repeated requests can expose session tokens, as BleepingComputer summarises. Huntress saw a user log in at 13:07 UTC, then the same session driven from an attacker's address at 13:28 UTC, with no successful login from that address. A stolen session skips the password and MFA.

Exploitation began before most people knew about it. Beaumont dates the first access to 20 June 2025, three days after the advisory, while Citrix said on 26 June it had no evidence of exploitation. CISA added the CVE to KEV on 10 July 2025 and lists ransomware use. Huntress later tied the bug to six intrusions in 2026, one ending in DragonForce ransomware. The attacker was in the network within about an hour of the first access in one case.

The same Gateway and AAA conditions applied to CVE-2025-6543, fixed in the same period. The sources I opened treat that as a separate bug, exploited as a zero-day.

## Am I affected?

You need **both** of these:

- A build older than 14.1-43.56 or 13.1-58.32.
- The appliance configured as a **Gateway** (VPN virtual server, ICA Proxy, CVPN or RDP Proxy) or as an **AAA virtual server**.

Versions 13.0 are end of life and get no fix. The NetScaler blog says 12.0 and 13.0 are end of life, while BleepingComputer says 12.1 and 13.0. The CVE record lists neither, but they are unsupported either way. Citrix-managed cloud services and Adaptive Authentication are already upgraded. This page does not cover the 13.1 FIPS and NDcPP builds; the sources I opened give no build numbers for them, so check Citrix bulletin CTX693420.

Compare your build with the list above and check which virtual server types you run.

## What to do

1. **Upgrade** to 14.1-43.56, 13.1-58.32 or later. Citrix says there are **no mitigations** and that WAF signatures can't fix this bug.
2. **After the upgrade, kill active sessions.** Citrix says to run its kill-sessions commands for this CVE once the fixed firmware is running, and not to export the session list first. Take the exact commands from bulletin CTX693420. Huntress and Beaumont both warn that stolen tokens can survive patching. Beaumont also advises ending RDP, SSH, Telnet, connection and AAA sessions.
3. **Move off end-of-life branches** such as 13.0. They get no fix.
4. **Forward NetScaler logs to a SIEM.** Huntress notes they rotate quickly.
5. **If the appliance was exposed while vulnerable, assume sessions were stolen.** Huntress's cases went from a hijacked session to a local admin account, a rogue remote-management tool and ransomware. Review the Citrix hosts and domain behind the Gateway (see Detection), reset credentials for users with sessions on the appliance, and rebuild any host where you find the signs below.

## Detection

**On the NetScaler:**

- **POSTs to `/p/u/doAuthentication.do`** (or equivalents) with a `login` parameter and no value, often with `Content-Length: 5` (Beaumont, watchTowr). Bursts from one source address matter most.
- **`AAA LOGIN_FAILED` events in `ns.log` with unprintable bytes in the User field.** Huntress counted 5,937 in about five hours on one appliance.
- **Logoff entries with odd usernames**, for example containing `#`, or memory contents in the wrong fields (Beaumont).
- **Citrix's July 2025 log guidance:** messages such as "Authentication is rejected for" and "AAA Message" with non-ASCII bytes (0x80 to 0xFF), as reported by BleepingComputer.
- **A session without a matching login:** a client IP in the VPN logs that differs from the source address, or a session used from an address that never authenticated.
- Search back to at least **17 June 2025**, and further if your logs allow.

**On Citrix hosts and the network behind them (Huntress):**

- Check the Application log (MetaFrameEvents provider) and `TerminalServices-LocalSessionManager/Operational`. Correlate session IDs with client names and source IPs, and look for the hostnames in the indicators section.
- Alert on `sc start AppMgmt` or `gpupdate /force` launched from unsigned executables in user-writable paths.
- Audit new local Administrators members, the account names in the indicators section, and unexpected ScreenConnect, Zoho Assist or Netbird installs.
- Look for PsExec with `-s`, Impacket against domain controllers, and Mimikatz.
- Registry: `SymbolicLinkValue` (REG_LINK) entries under the RdpBus device class `{28d78fad-5a12-11d1-ae5b-0000f803a8c2}`.

## Sources

- [CVE record (Citrix CNA), references Citrix bulletin CTX693420](https://cveawg.mitre.org/api/cve/CVE-2025-5777)
- [NetScaler blog on CVE-2025-6543 and CVE-2025-5777](https://www.netscaler.com/blog/news/netscaler-critical-security-updates-for-cve-2025-6543-and-cve-2025-5777/)
- [CISA Known Exploited Vulnerabilities catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-5777)
- [watchTowr Labs analysis](https://labs.watchtowr.com/how-much-more-must-we-bleed-citrix-netscaler-memory-disclosure-citrixbleed-2-cve-2025-5777/)
- [BleepingComputer, exploited weeks before PoCs](https://www.bleepingcomputer.com/news/security/citrix-bleed-2-exploited-weeks-before-pocs-as-citrix-denied-attacks/)
- [Huntress, CitrixBleed 2 to DragonForce](https://www.huntress.com/blog/citrixbleed-2-dragonforce-ransomware)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
