Skip to content

CVE-2025-5777: OOB Memory Disclosure and MFA Session Hijacking in Citrix NetScaler ADC & Gateway (CitrixBleed 2)

HERMES

HERMES THREAT SCORE & GATEWAY EXPOSURE

Target: Citrix NetScaler ADC & NetScaler Gateway 14.1 / 13.1
Confidence: 99%
99 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 20 / 20
Threat Activity 20 / 20
Weaponization 20 / 20
Exposure 20 / 20
Prevalence 19 / 20
Impact 20 / 20
Exploit Maturity 20 / 20
Attack Chain Potential 20 / 20
⚖️ Divergence & Operational Rationale

Hermes assesses CVE-2025-5777 at the maximum HTS of 99 (CRITICAL SEVERITY). Known as CitrixBleed 2, this out-of-bounds read flaw allows unauthenticated remote attackers to overread packet engine heap memory, stealing active session cookies (NSC_AAAC / NSC_TMAS) and completely bypassing Multi-Factor Authentication (MFA).

🕸️ Connected Knowledge Graph & Provenance

CVE-2025-5777: OOB Memory Disclosure and MFA Session Hijacking in Citrix NetScaler ADC & Gateway (CitrixBleed 2)VULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTCitrix NetScaler ADC
98% VERY_HIGH

Software platform affected by security vulnerabilities and agentic attack patterns.

🔍 Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in Citrix NetScaler ADC documented in Hermes dossier.”

Supporting Verified Evidence:
ParameterTechnical SpecificationOperational Impact
CVE IdentifierCVE-2025-5777Official NVD / MITRE record
Common NameCitrixBleed 2Multi-session heap memory harvesting
Associated CWECWE-125: Out-of-bounds ReadPacket Engine (nsppe) memory leak
CVSS v4.0 Score9.3 CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L
CVSS v3.1 Score9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Applicable CPEscpe:2.3:a:citrix:netscaler_adc:*:*:*:*:*:*:*:*
cpe:2.3:a:citrix:netscaler_gateway:*:*:*:*:*:*:*:*
Enterprise application delivery controllers and VPN gateways
Affected Versions14.1 < 14.1-43.56, 13.1 < 13.1-58.32, 13.1-FIPS < 13.1-37.240, 12.1-FIPS < 12.1-55.320NetScaler configured as Gateway or AAA virtual server
Fixed Versions14.1-43.56, 13.1-58.32, 13.1-37.240, 12.1-55.320 (CTX693420)Critical security updates released by Citrix

  • CISA KEV: Added on July 10, 2025 with 24-hour remediation mandate; known ransomware campaign usage confirmed.
  • EPSS Score: 0.99953 (Percentile: 99.974% — among the highest in EPSS history).
  • Operational Status: Global active exploitation verified by incident response teams worldwide.
  • PoC & Weaponization: Weaponized public scripts sending malformed HTTP GET/POST headers returning 32-64 KB memory chunks per request.
  • Access Conditions: Pre-authentication; public HTTPS network access (port 443); trivial attack complexity.

  • Threat Actors: State-sponsored APTs (Volt Typhoon, UNC3886) and ransomware operators (LockBit, Akira, Medusa, RansomHub).
  • Observed Campaigns: Automated scraping campaigns scanning all exposed NetScaler appliances to stockpile valid enterprise session tokens.
  • Associated Malware: In-memory session replay tools and Cobalt Strike beacon payloads.
  • Exploitation Timeline: Discovered exploited in the wild in early July 2025; addressed in security bulletin CTX693420 on July 8, 2025.

  • Anomalous HTTP Traffic: Repeated requests to /vpn/ or /logon/ endpoints with oversized headers generating unusually large HTTP 200 responses.
  • Orphaned Authenticated Sessions: Active VPN connections recorded without corresponding logon or MFA challenge events in AAA logs.
title: CitrixBleed 2 Memory Disclosure Attempt (CVE-2025-5777)
id: f1a2b3c4-5777-4a8b-9012-123456789abc
status: test
description: Detects abnormal requests to NetScaler Gateway triggering out-of-bounds heap memory disclosure
references:
- https://support.citrix.com/support-home/kbsearch/article?articleNumber=CTX693420
- https://labs.watchtowr.com/how-much-more-must-we-bleed-citrix-netscaler-memory-disclosure-citrixbleed-2-cve-2025-5777/
author: Hermes Codex Research
date: 2026-09-10
logsource:
category: webserver
definition: WAF or NetScaler HTTP access logs
detection:
selection:
cs_method:
- 'GET'
- 'POST'
cs_uri_stem|startswith:
- '/vpn/'
- '/logon/'
- '/oauth/idp/'
sc_status: 200
sc_bytes|gt: 20000
condition: selection
falsepositives:
- Legitimate downloads of large static Citrix portal assets by remote clients
level: critical
rule Exploit_CitrixBleed_2_Memory_Leak_CVE_2025_5777 {
meta:
description = "Detects NetScaler memory disclosure responses containing sensitive session cookies"
author = "Hermes Codex Research"
date = "2026-09-10"
reference = "CVE-2025-5777"
strings:
$cookie1 = "NSC_AAAC=" ascii
$cookie2 = "NSC_TMAS=" ascii
$citrix_env = "Citrix Receiver" ascii
$mem_leak = { 00 00 00 00 [4-16] 4E 53 43 5F 41 41 41 43 }
condition:
($cookie1 or $cookie2) and ($citrix_env or $mem_leak)
}
alert http $EXTERNAL_NET any -> $NETSCALER_GATEWAY any (msg:"HERMES - Citrix NetScaler CitrixBleed 2 Memory Leak Attempt (CVE-2025-5777)"; flow:to_server,established; content:"/vpn/"; http_uri; pcre:"/Host:\s*[^
]{500,}/H"; classtype:attempted-recon; sid:20255777; rev:1;)
  • NetScaler Logs (/var/log/ns.log): Inspect for abnormal TCP-CONN-TERMINATE messages or packet engine crashes (nsppe) producing core files in /var/crash/.
  • Active Sessions Inspection: Review active sessions via NetScaler CLI (show aaa user) and cross-reference with IdP authentication logs.
  • MITRE ATT&CK: T1190 (Exploit Public-Facing Application), T1539 (Steal Web Session Cookie), T1556 (Modify Authentication Process), T1133 (External Remote Services).

  1. Apply Firmware Updates Immediately: Update to NetScaler 14.1-43.56, 13.1-58.32, or relevant fixed builds.
  2. Terminate All Active Sessions: Patching alone does not revoke stolen cookies. Terminate all active sessions via CLI: kill aaa session -all and kill icaconnection -all.
  3. Reboot All Appliances: Perform a full reboot of primary and secondary appliances to clear physical RAM buffers.
  4. Revoke and Rotate Tokens: Invalidate all active session tokens at your Identity Provider (Azure AD, Okta, Duo) and revoke certificate keys if exposure is suspected.
  5. Conduct Forensic Review: Correlate active NetScaler session IDs with MFA authentication records to identify hijacked sessions.

”What happens if this vulnerability is exploited in an enterprise?”

Section titled “”What happens if this vulnerability is exploited in an enterprise?””
  1. Silent Memory Harvesting: The attacker sends automated requests to the internet-facing NetScaler Gateway. Overreading internal memory, the adversary continuously harvests session tokens from connected employees.
  2. Admin Session Capture: Among the exfiltrated memory chunks, the attacker discovers a valid NSC_AAAC cookie belonging to a network administrator who completed MFA minutes prior.
  3. Instant MFA Bypass: Injecting the cookie into an external browser, the attacker connects directly through the VPN gateway without requiring passwords or MFA prompts.
  4. Internal Network Reconnaissance: Operating from inside the corporate network, the attacker runs Active Directory reconnaissance tools (BloodHound), mapping privilege escalation paths to Domain Controllers.
  5. Ransomware Deployment & Lockout: The adversary deploys Akira ransomware across hypervisors, file shares, and domain controllers, while locking out legitimate administrative VPN access to delay incident response.