
CVE-2025-5777 Research writeup
Research writeup by Sentinel AI Defense. Defensive analysis only — no working exploit or PoC is published here.
The sequel to the original CitrixBleed: an out-of-bounds read on NetScaler ADC/Gateway authentication endpoints that hands an unauthenticated attacker fragments of server memory — including session tokens — straight back in the HTTP response.
📄 Full writeup: https://sentinelaidefense.com/posts/cve-2025-5777-citrixbleed-2.html
CVE-2025-5777 (commonly referred to as CitrixBleed 2) is an out-of-bounds read vulnerability
(CWE-125 / CWE-457) in Citrix NetScaler ADC and NetScaler Gateway. It results from insufficient input
validation when processing specially crafted HTTP requests to authentication endpoints. This allows
an unauthenticated remote attacker to leak fragments of server memory, including sensitive data such
as session tokens (e.g., NSC_AAAC cookies).
The vulnerability is a follow-on to the original CitrixBleed (CVE-2023-4966). Exploitation enables session hijacking and MFA bypass without requiring further interaction. CVSS v3/v4 score: 9.3 (Critical). It was added to the CISA KEV catalog on July 10, 2025.
Vulnerable when configured as Gateway (VPN virtual server, ICA Proxy, CVPN, RDP Proxy) or AAA virtual server:
Patched builds were released starting June 17, 2025 (with updates in late June / early July).
The flaw resides in the authentication request handler (notably the /p/u/doAuthentication.do
endpoint). When processing HTTP POST requests with a malformed parameter (e.g., login present but
without a proper value or equals sign), the backend C code skips proper initialization of a stack
buffer.
As a result, the response (often in an XML <InitialValue> tag) reflects ~127 bytes of
uninitialized stack memory from previous operations. Repeated requests yield different memory
fragments. This is a classic case of use of an uninitialized variable combined with out-of-bounds read
due to missing bounds checking and zeroing of buffers.
No authentication or complex interaction is needed — the leak occurs pre-authentication.
NSC_AAAC) to hijack active VPN/Gateway sessions,
often bypassing MFA.Exploitation was observed in the wild as early as June 23, 2025 (before the public PoC on July 4). Targeted scanning and APT activity (including zero-day use) were confirmed by GreyNoise, Amazon MadPot, and others.
/p/u/doAuthentication.do (or similar auth endpoints) with
malformed parameters (missing values, unusual header/body structures).NSC_AAAC cookies or unusual session activity on Gateway/VPN portals.<InitialValue> tags.YARA rules and Snort/Suricata signatures targeting the request patterns are available from research publications.
/p/u/doAuthentication.do with parameters like login (without
value).NSC_AAAC=.Consult the Citrix security bulletin and CISA alerts for full, updated IoC lists.
Treat this as high-priority due to the ease of exploitation and direct impact on remote access infrastructure.
This repository is published for defensive and educational purposes only. It contains analysis, detection logic, and mitigation guidance. No functional exploit code is provided. Use this information only on systems you are authorized to test and defend.
Maintained by Sentinel AI Defense · Findings shared responsibly under coordinated disclosure.