
Reproduction toolkit for CVE-2025-5777 (CitrixBleed 2) memory disclosure vulnerability in Citrix NetScaler ADC/Gateway. Includes PoC, affected version details, and session hijacking methodology.
CVSS 9.3 — Critical — Active exploitation in the wild
CitrixBleed 2 is a memory disclosure vulnerability in Citrix NetScaler ADC and NetScaler Gateway. Insufficient input validation in the authentication endpoint causes a memory overread (CWE-125), allowing an unauthenticated attacker to leak sensitive memory contents — including session cookies, cryptographic material, and other secrets.
| Field | Value |
|---|---|
| CVE | CVE-2025-5777 |
| CVSS | 9.3 (Critical) |
| CWE | 125 — Out-of-bounds Read |
| Affected | NetScaler ADC / Gateway (specific versions below) |
| Exploitation | Confirmed in the wild |
| Discovered | 2025 |
| Type | Memory Disclosure / Information Leak |
The vulnerability resides in the authentication endpoint:
POST /p/u/doAuthentication.do
By sending a request with an empty login parameter, the server's input validation is bypassed, causing it to copy uninitialized memory into the response. The leaked data appears inside <InitialValue> XML elements in the HTTP response.
An attacker can chain the memory leak with a session-hijacking attack by extracting NSC_AAAC session cookies from the leaked memory.
NSC_AAAC, NSC_TEMP, etc.)Only appliances configured as Gateway (VPN / ICA / CVPN / RDP Proxy) or AAA virtual server are affected. Appliance mode (L2/L3) is not vulnerable.
/p/u/doAuthentication.do with an empty login parameter.<InitialValue> element values.NSC_AAAC cookie is found, use it to impersonate the victim session.POST /p/u/doAuthentication.do HTTP/1.1
Host: target.example.com
Content-Type: application/x-www-form-urlencoded
login=&passwd=foo
The response will contain <InitialValue> tags with leaked memory contents. On a patched system, <InitialValue> should simply be empty.
/p/u/doAuthentication.do with empty parameters.| Product | Vulnerable | Fixed |
|---|
| NetScaler ADC 14.1 | < 14.1-30.59 | 14.1-30.59+ |
| NetScaler ADC 13.1 | < 13.1-56.27 | 13.1-56.27+ |
| NetScaler ADC 13.0 | < 13.0-92.24 | 13.0-92.24+ |
| NetScaler Gateway 14.1 | < 14.1-30.59 | 14.1-30.59+ |
| NetScaler Gateway 13.1 | < 13.1-56.27 | 13.1-56.27+ |
| NetScaler Gateway 13.0 | < 13.0-92.24 | 13.0-92.24+ |