Addressing Cyberattacks on Citrix Devices Through NetScaler Vulnerability Exploitation
Citrix NetScaler ADC and Gateway code injection flaw CVE-2023-3519 enables unauthenticated remote code execution and has been exploited to steal credentials through modified login pages. Apply Citrix’s July 2023 patches, reimage compromised hosts and issue new credentials. Clean rc.netscaler if attackers used it to restore a web shell on reboot.
Summary written with AI from this article, and checked against it.

At a glanceCVE-2023-3519
CVE-2023-3519 has a CVSS 3.1 base score of 9.8 (Critical) from NVD. It is fixed in Citrix netscaler application delivery controller 12.1-55.297, 13.0-91.13, 13.1-37.159 and 13.1-49.13.
| Severity | 9.8 Critical (CVSS 3.1, NVD) |
|---|---|
| Fixed in | Citrix netscaler application delivery controller 12.1-55.297, 13.0-91.13, 13.1-37.159, 13.1-49.13 |
| Affected | Citrix netscaler application delivery controller 12.1 – before 12.1-55.297; 13.0 – before 13.0-91.13; 13.1 – before 13.1-37.159; 13.1 – before 13.1-49.13 |
| Exploited | Yes: in CISA's Known Exploited Vulnerabilities catalog since July 19, 2023 |
| EPSS | 99.7% chance of exploitation in the next 30 days (FIRST, October 27, 2026) |
| Public exploit | packetstormsecurity.com, packetstormsecurity.com · 13 GitHub repositories name it: proofs of concept, scanners, detections. Unverified: some are fake or malicious. |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Weakness | CWE-94 Code Injection |
| Ubuntu | Listed, no packages yet |
| Debian | Listed, no packages yet |
| Red Hat | Not tracked yet |
| Also in | Citrix netscaler gateway |
Is there a public exploit for CVE-2023-3519?
Yes: CVE-2023-3519 is exploited in the wild. CISA added it to its Known Exploited Vulnerabilities catalog on July 19, 2023. NVD links 2 exploit references and 13 public GitHub repositories name it: proofs of concept, scanners and detections. None of it is verified: some such repositories are fake or carry malware, so read the code before running it, and only against systems you own. FIRST's EPSS puts the chance of exploitation in the next 30 days at 99.7%, higher than 99.9% of scored CVEs.
A critical vulnerability in Citrix NetScaler ADC and Gateway devices has been the focal point of an extensive cyberattack campaign aimed at stealing user credentials. IBM identified "at least 600 unique victim IP addresses hosting modified NetScaler Gateway login pages," primarily situated in the United States and Europe. This article delves into the technical intricacies of the vulnerability, its exploitation, and provides recommendations to counter the threat.
Technical Overview of the Vulnerability
CVE-2023-3519, designated with a CVSS score of 9.8, pertains to a severe code injection vulnerability. Patched by Citrix in July 2023, this flaw could enable unauthenticated remote code execution. For several months, attackers have leveraged this vulnerability to compromise susceptible devices and gain persistent access for future attacks.
Modus Operandi of the Attacks
IBM X-Force discovered this malicious activity. The attackers exploited the NetScaler vulnerability to insert a malevolent script into the HTML content of the authentication web page. This maneuver allows them to capture user credentials. Specifically, they deployed a web shell based on PHP to execute their malicious activities. This PHP web shell enabled them to insert custom code into the NetScaler Gateway login page. This custom code included a reference to a remotely hosted JavaScript file controlled by the attackers.
The Role of JavaScript in Data Harvesting
The embedded JavaScript code aimed to harvest form data containing usernames and passwords. When users attempted to authenticate themselves, this JavaScript code activated and sent the harvested credentials to a remote server via an HTTP POST method.
Recommendations for Countermeasures
- Prompt Patch Application: Organizations should immediately apply patches to mitigate this vulnerability.
- Change of Credentials: All default login credentials should be changed, given that the configuration files of NetScaler contain multiple credentials and certificates.
- Incident Response Measures: Organizations should enact a series of incident response protocols:
- Quarantine or disconnect potentially compromised hosts.
- Reimage hosts that have been compromised.
- Issue new account credentials.
- Inspect artifacts like running processes, unusual authentications, and recent network activities.
- Cleaning rc.netscaler: If the threat actor used
/lash/nsconfig/rc.netscalerto rewrite a web shell during each reboot, it’s imperative to clean the rc.netscaler file as mentioned by the Cybersecurity and Infrastructure Security Agency (CISA).
Final Thoughts
The commencement date of this cyberattack campaign remains uncertain. However, the first observed alteration to a login page occurred on August 11, 2023. This suggests that the campaign has been active for around two months. Interestingly, no specific threat actor or group has yet been definitively linked to this campaign. Given the high CVSS score and the significant number of affected IP addresses, this issue warrants urgent attention and remediation efforts from organizations.
Source
- CVE recordCVE-2023-3519 in the National Vulnerability Database · nvd.nist.gov

