On 17 June 2025, Citrix published a security bulletin for CVE-2025-5777, a memory over-read in NetScaler ADC and NetScaler Gateway that allows an unauthenticated attacker to leak process memory — including session identifiers — via a crafted login request. The flaw was quickly dubbed "CitrixBleed 2" because it mirrors the 2023 CitrixBleed (CVE-2023-4966) pattern: no RCE, but a reliable path to session hijacking and MFA bypass. This article walks through how the bug manifests on the wire, which HTTP log fields expose exploitation, and gives you Sigma and Suricata rules you can deploy today in front of NetScaler appliances.
Background: What CVE-2025-5777 Actually Is
CVE-2025-5777 is an insufficient input validation issue in the NetScaler ADC and NetScaler Gateway authentication flow that results in an out-of-bounds memory read. When an attacker sends a malformed login request to an endpoint that processes login form submissions, the appliance returns a response that includes uninitialized memory from the NetScaler process. That memory can contain session tokens, authentication cookies, and other users' data.
Citrix's advisory rates the issue as Critical with a CVSS v4.0 score of 9.3 (CVSS v3.1: 9.4). The attack vector is network, no privileges are required, and no user interaction is needed. The confidentiality impact is High; integrity and availability are None. This is a pure information-disclosure bug — but the leaked material is exactly what an attacker needs to bypass MFA and impersonate users.
"Insufficient input validation leading to memory overread on NetScaler ADC and NetScaler Gateway when configured as a Gateway (VPN virtual server, ICA Proxy, CVPN, RDP Proxy) or AAA virtual server." — Citrix Security Bulletin CTX693420
The bug is not the same as CVE-2023-4966. CVE-2023-4966 was a buffer over-read in the same product family that was exploited by Volt Typhoon and others; CVE-2025-5777 is a distinct code path in the login handler. Treat them as the same operational class, not the same signature.
Affected Versions and Exposure
Citrix's bulletin lists the following affected branches:
- NetScaler ADC and NetScaler Gateway 14.1 before 14.1-43.56
- NetScaler ADC and NetScaler Gateway 13.1 before 13.1-58.32
- NetScaler ADC 13.1-FIPS before 13.1-37.235
- NetScaler ADC 12.1-FIPS before 12.1-55.328
- NetScaler ADC 12.1-NDcPP before 12.1-55.328
Appliance configurations that are not exposed: NetScaler ADC or Gateway configured as a load balancer, content switching, or cache redirection virtual server without Gateway or AAA functionality. If you are running a Gateway or AAA vServer, you are in scope.
NetScaler is widely deployed as the front door for Citrix Virtual Apps and Desktops, and for third-party VPN-style access. The 2023 CitrixBleed campaign showed that internet-exposed Gateway vServers are a high-value target for initial access brokers and nation-state actors alike. Citrix added CVE-2025-5777 to its bulletin on 17 June 2025 and updated it as exploitation was reported.
Attacker TTPs
The exploitation pattern is short and loud in the right telemetry. Public reporting and the Citrix advisory describe the following sequence:
- T1190 — Exploit Public-Facing Application: The attacker sends a POST to
/p/u/doAuthentication.do(or the equivalent Gateway login endpoint) with a body that omits or malforms theloginparameter. The response contains leaked memory. - T1552.001 — Unsecured Credentials: Credentials In Files: The attacker parses the response body for
NSC_AAAC,NSC_TASS, orcitrix_ns_idcookie values and replays them. - T1078 — Valid Accounts: The stolen session cookie is used to authenticate without MFA, because the session was already post-authentication.
- T1539 — Steal Web Session Cookie: The whole objective of CVE-2025-5777 is web session cookie theft.
Observed tradecraft in public reporting includes high-volume, single-request probes followed by a pause, then targeted replay of stolen cookies from a different source IP. Some actors have used residential proxy networks to make the replay look like a legitimate roaming user.
Detection: What to Look For in HTTP and NetScaler Logs
The single most useful signal is a POST to the login endpoint that returns HTTP 200 with a body containing a session cookie prefix, where the request did not carry valid credentials. On a healthy appliance, an unauthenticated POST to doAuthentication.do returns a redirect or a 401, not a 200 with a Set-Cookie.
NetScaler ns.log and HTTP access logs
NetScaler's HTTP access log (enabled via set ns httpProfile -accessLogEnabled ENABLED) captures method, URL, status, and client IP. The ns.log AAA audit messages record authentication outcomes. Correlate the two: a 200 on doAuthentication.do with no corresponding AAA LOGIN SUCCESS in ns.log is the anomaly.
# Pseudo-pipeline: join HTTP access log and AAA audit
# HTTP log line: 2025-06-18 03:14:07 203.0.113.42 POST /p/u/doAuthentication.do 200
# ns.log line: 06/18/2025:03:14:07 AAA LOGIN FAILURE user= client=203.0.113.42
# Alert when status=200 AND no matching LOGIN SUCCESS within 2sSigma rule: CitrixBleed 2 login probe
title: Possible CitrixBleed 2 (CVE-2025-5777) Memory Disclosure Probe
detection:
selection:
cs-method: 'POST'
cs-uri-stem|endswith: '/doAuthentication.do'
sc-status: 200
filter_legit:
cs-uri-query|contains: 'login='
condition: selection and not filter_legit
fields:
- c-ip
- cs-uri-stem
- sc-status
- cs(User-Agent)
falsepositives:
- Health checks against the login endpoint
level: highSuricata rule: leaked session cookie in response
alert http any any -> $EXTERNAL_NET any (
msg:"Possible CitrixBleed 2 (CVE-2025-5777) session token leak in response";
flow:established,to_client;
http.method; content:"POST";
http.uri; content:"/doAuthentication.do"; nocase;
http.response_body; content:"NSC_AAAC"; nocase;
http.stat_code; content:"200";
reference:cve,2025-5777;
reference:url,support.citrix.com/s/article/CTX693420;
classtype:attempted-user;
sid:10005777;
rev:1;
)
YARA for NetScaler support bundles
If you pull ns.log or support bundles into a forensic pipeline, use YARA to flag leaked tokens that were later written to disk:
rule CitrixBleed2_Leaked_Session_Cookie
{
meta:
description = "Detects NSC_AAAC/NSC_TASS cookie material in NetScaler logs or support bundles"
cve = "CVE-2025-5777"
author = "CybernytronX"
strings:
$aaac = /NSC_AAAC=[A-Za-z0-9%_\-\.]{20,}/
$tass = /NSC_TASS=[A-Za-z0-9%_\-\.]{20,}/
condition:
any of them
}
Mitigation and Patch Guidance
Citrix's remediation is straightforward: upgrade to a fixed build. The bulletin lists 14.1-43.56, 13.1-58.32, 13.1-37.235 (FIPS), and 12.1-55.328 (FIPS/NDcPP) as the first fixed versions. There is no configuration-only workaround that fully removes the risk for an internet-exposed Gateway vServer; Citrix's guidance is to patch.
If you cannot patch immediately, Citrix's bulletin and subsequent updates recommend:
- Restrict access to the Gateway vServer to known IP ranges or a VPN.
- Enable WAF protections on the NetScaler or an upstream WAF, and deploy a virtual patching rule that rejects POSTs to
doAuthentication.dowithout aloginparameter. - Invalidate all active sessions after patching — stolen cookies remain valid until expiry. Citrix's
kill icaconnection -allandkill aaa session -allcommands terminate active sessions. - Rotate any credentials, MFA seeds, or certificates that could have been exposed in leaked memory.
Because the bug leaks memory, assume that anything in the NetScaler process address space could have been exposed — including cached credentials from other modules. Treat post-patch credential rotation as mandatory, not optional.
Why This Matters for Defenders
CitrixBleed 2 is a reminder that not all critical vulnerabilities are RCE. A memory disclosure that leaks session tokens is functionally an authentication bypass, and it defeats MFA because the stolen session is already past the MFA challenge. The detection problem is harder than it looks: the exploit request is a single, syntactically valid HTTP POST, and the only anomalous artifact is a 200 status and a response body containing a cookie prefix.
That means your detection stack needs HTTP response-body visibility, not just request metadata. If your WAF or load balancer only logs request lines, you are blind to the most important half of this bug. Push for response-body logging on the Gateway vServer, or deploy a Suricata sensor with TLS termination in front of it. Combine that with NetScaler AAA audit logs so you can distinguish a legitimate 200 from a leaked one. Finally, build a session-token replay detector: a cookie that authenticates from two ASNs within minutes is a strong post-exploitation signal regardless of which CVE got it there.
Sources
- Citrix Security Bulletin CTX693420 — CVE-2025-5777 — authoritative advisory listing affected versions, fixed builds, and CVSS score.
- NVD entry for CVE-2025-5777 — CVSS v3.1 and v4.0 scoring and CWE classification.
- CISA Known Exploited Vulnerabilities Catalog — confirms whether CVE-2025-5777 has been added to KEV and the corresponding remediation due date.
- Citrix advisory CTX579459 — CitrixBleed (CVE-2023-4966) — prior CitrixBleed bulletin, useful for comparing the two memory-disclosure classes.
Frequently Asked Questions
Is CVE-2025-5777 the same as CitrixBleed (CVE-2023-4966)?
No. They are distinct vulnerabilities in different code paths of NetScaler ADC and Gateway. CVE-2023-4966 was a buffer over-read exploited in 2023; CVE-2025-5777 is a separate insufficient input validation issue in the login handler disclosed in June 2025. The operational impact — session token theft and MFA bypass — is similar, which is why it is nicknamed CitrixBleed 2.
Does the exploit require authentication?
No. The Citrix advisory states the attack vector is network with no privileges required. The attacker sends an unauthenticated POST to the Gateway login endpoint and receives leaked memory in the response.
What log sources do I need to detect exploitation?
At minimum: NetScaler HTTP access logs with response status and response body (or a Suricata sensor with response-body inspection), plus NetScaler ns.log AAA audit records. Request-only logs are insufficient because the exploit looks like a normal POST.
Does patching invalidate stolen session cookies?
No. Patching closes the leak but does not revoke sessions that were already stolen. Citrix recommends terminating active sessions after upgrade using kill aaa session -all and kill icaconnection -all, and rotating any credentials that may have been in leaked memory.
Is there a WAF virtual patch?
You can block POSTs to /p/u/doAuthentication.do that lack a login parameter, which is the shape of the known exploit. Treat this as a stopgap only; Citrix's guidance is to upgrade to a fixed build.
Need expert help with this?
If you are running NetScaler as your remote-access front door, the window between disclosure and patch is where breaches happen. CybernytronX can help you validate exposure, build response-body detection into your SOC pipeline, and rehearse session-revocation runbooks. Our Ethereon AI threat-detection platform ingests NetScaler, WAF, and proxy telemetry to surface token-replay anomalies that signature rules miss. Reach out at cybernytronx.com/contact or explore Ethereon.