# CVE-2025-6543: NetScaler memory overflow, exploited as a zero-day since May 2025

A memory overflow in NetScaler ADC and Gateway causes unintended control flow and denial of service on Gateway and AAA setups. Citrix confirmed exploitation before the fix, and the Dutch NCSC found webshells on compromised appliances.

- Vendor: NetScaler, NetScaler ADC and Gateway (Gateway and AAA virtual servers)
- Severity: CRITICAL (CVSS 4.0 9.2)
- Exploited (CISA KEV): yes, added 2025-06-30
- EPSS: 9.6% on 2026-11-23
- Public exploit: none reported
- Patch available: yes
- Vendor advisory: CTX694788, https://support.citrix.com/support-home/kbsearch/article?articleNumber=CTX694788
- Published: 2025-06-25; updated: 2026-10-12
- Page: https://patchtonight.com/cve/CVE-2025-6543/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| NetScaler ADC and Gateway 14.1 before 14.1-47.46 | 14.1-47.46 or later |
| NetScaler ADC and Gateway 13.1 before 13.1-59.19 | 13.1-59.19 or later |
| NetScaler ADC 13.1-FIPS and 13.1-NDcPP before 13.1-37.236 | 13.1-37.236 or later |

## What it is

CVE-2025-6543 is a **memory overflow** in NetScaler ADC and Gateway that leads to unintended control flow and denial of service. Citrix rates it 9.2 under CVSS 4.0, with high attack complexity and no login needed. The CISA assessment lists the technical impact as total.

It was a **zero-day**. Citrix said exploits on unmitigated appliances had been observed when it released the fix on 25 June 2025. The Dutch NCSC (NCSC-NL) says forensics point to exploitation from early May 2025, against multiple critical organisations in the Netherlands. It describes the attackers as one or more actors with an advanced approach.

The attackers left **webshells** on compromised appliances and deleted traces to hinder forensics. NCSC-NL says patching does not remove existing access. NCSC-NL discusses this CVE together with CVE-2025-5777 and CVE-2025-5349, and says not every vulnerable system was exploited.

## Am I affected?

You need **both** an affected build (see the table above) and one of these configurations:

- NetScaler configured as a **Gateway** (VPN virtual server, ICA Proxy, CVPN or RDP Proxy).
- NetScaler configured as an **AAA virtual server**.

Compare your appliance's build with the table above, then check your virtual server types. The CVE record lists no other branches. Check Citrix bulletin CTX694788 for the status of end-of-life branches.

## What to do

1. **Upgrade** to 14.1-47.46, 13.1-59.19, 13.1-FIPS or NDcPP 13.1-37.236, or later. The CVE record lists no workarounds or mitigations.
2. **After upgrading, end all sessions.** NCSC-NL recommends killing active and persistent sessions, for example:

```
kill aaa session -all
```

3. **Check for new accounts**, especially ones with elevated privileges (NCSC-NL).
4. **If the appliance was exposed while vulnerable, assume it may be compromised.** Exploitation began before the fix, so this covers appliances that were exposed from May 2025. Run the NCSC-NL scripts (below), rotate secrets the appliance held or could read, and rebuild it if you find anything.
5. **Keep logs and backups off the appliance** so you can investigate later. NCSC-NL stresses forensic readiness because attackers delete traces.

## Detection

No indicator list was published. What exists:

- **Run the NCSC-NL check scripts** from `github.com/NCSC-NL/citrix-2025`. There are three: `core-dump-checks`, `disk-image-checks` and `live-host-bash-check`. NCSC-NL says they contain indicators from its forensic work that were not shared before. Run them on live appliances, backups and core dumps. Review the output before sharing it, as it can hold sensitive data.
- **Look for webshells.** NCSC-NL says signs are unusual `.php` files in NetScaler system folders: files with an odd creation date, files sharing a name with a file of another extension, or files in folders that hold few or no PHP files.
- **Check for new privileged accounts.**
- **Search back to at least early May 2025.** If you find indicators, NCSC-NL asks for contact at cert@ncsc.nl, or contact your national CSIRT.

## Sources

- [CVE record (Citrix CNA), references Citrix bulletin CTX694788](https://cveawg.mitre.org/api/cve/CVE-2025-6543)
- [CISA Known Exploited Vulnerabilities catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-6543)
- [NCSC-NL, Citrix vulnerability case](https://www.ncsc.nl/actueel/nieuws/2025/07/22/casus-citrix-kwetsbaarheid)
- [NCSC-NL check scripts on GitHub](https://github.com/NCSC-NL/citrix-2025)
- [Help Net Security](https://www.helpnetsecurity.com/2025/08/12/citrix-netscaler-exploitation-zero-day-cve-2025-6543/)

---

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.
