UNC5221 Exploits Ivanti Connect Secure Flaw CVE-2025-22457

CVE-2025-22457 is a critical stack-based buffer overflow (CVSS 9.0) in Ivanti Connect Secure, Policy Secure and ZTA Gateways that lets an unauthenticated attacker run code remotely. Ivanti fixed Connect Secure in version 22.7R2.6 on 11 February 2025, at first treating the bug as a denial of service issue.

Apr 05, 2025 - 11:18
Updated: 
102.4k

Cyber Threats, Scams & Online Safety in Cybersecurity & Ethical Hacking · News & analysis

UNC5221 Exploits Ivanti Connect Secure Flaw CVE-2025-22457

Quick answer: CVE-2025-22457 is a critical stack-based buffer overflow (CVSS 9.0) in Ivanti Connect Secure, Policy Secure and ZTA Gateways that lets an unauthenticated attacker run code remotely. Ivanti fixed Connect Secure in version 22.7R2.6 on 11 February 2025, at first treating the bug as a denial of service issue. On 3 April 2025 Google Threat Intelligence Group (GTIG) and Mandiant reported that UNC5221, a suspected China-nexus espionage group, had exploited it since mid-March 2025 to deploy the TRAILBLAZE dropper and BRUSHFIRE backdoor. CISA added it to the KEV catalogue on 4 April 2025. Upgrade, run the Integrity Checker Tool and retire end-of-support Pulse Connect Secure 9.x devices.

Key takeaways

  • The flaw allows unauthenticated remote code execution on VPN appliances.
  • Connect Secure 22.7R2.6 or later fixes it; the patch shipped on 11 February 2025.
  • Exploitation was first observed in mid-March 2025, mostly against unpatched and legacy devices.
  • Pulse Connect Secure 9.1x reached end of support and will not get a fix.
  • Patching alone is not enough if a device was already compromised; check integrity and rotate secrets.

Table of Contents

What happened with CVE-2025-22457?

Ivanti published an advisory on 3 April 2025 for a buffer overflow in the web component of its secure access gateways. The bug sits in how the appliance processes a header value. Ivanti had already changed the code in Connect Secure 22.7R2.6 in February 2025, but the issue was first judged to be a low-risk denial of service because the overflow only accepted a narrow set of characters. Attackers proved otherwise.

The same day, the GTIG and Mandiant report said exploitation began in mid-March 2025. Mandiant assessed that the actor likely studied the February patch to work out that the bug could be used for code execution. CISA added the CVE to the Known Exploited Vulnerabilities catalogue on 4 April 2025 with a remediation due date of 11 April for US federal agencies.

Which versions are affected and fixed?

ProductAffectedFixed versionFix date
Ivanti Connect Secure22.7R2.5 and earlier22.7R2.611 February 2025
Pulse Connect Secure9.1R18.9 and earlierNone (end of support)Migrate to a supported release
Ivanti Policy Secure22.7R1.3 and earlier22.7R1.421 April 2025
Ivanti ZTA Gateways22.8R2 and earlier22.8R2.219 April 2025

The versions match the Canadian Centre for Cyber Security alert and CERT-EU advisory 2025-016. Policy Secure is not meant to face the internet, which lowers its exposure. Always check the current Ivanti advisory, since later 2025 releases fixed further CVEs.

Who is UNC5221 and what malware did it use?

UNC5221 is the name Mandiant uses for a suspected China-nexus espionage cluster with a long record of targeting edge devices, including earlier Ivanti zero-days in 2024. GTIG described two new malware families in this campaign:

MalwareTypeRole
TRAILBLAZEIn-memory dropperInjects code into the appliance web process
BRUSHFIREPassive backdoorWaits for specially crafted requests and runs attacker commands
SPAWN familyKnown ecosystemLog tampering, tunnelling and persistence tools seen before

The initial access technique maps to MITRE ATT&CK T1190, Exploit Public-Facing Application.

Who is affected?

Any organisation running an internet-facing Connect Secure appliance below 22.7R2.6, or any Pulse Connect Secure 9.x device, should treat itself as exposed. Ivanti said at disclosure that a limited number of customers had been exploited. No verified public list of victims exists, so this post does not name any.

How do you check if your appliance was compromised?

  1. Confirm the running version in the admin console and compare it with the table above.
  2. Run Ivanti's external Integrity Checker Tool (ICT) as advised in CISA's mitigation instructions, and review periodic internal ICT results.
  3. Look for web server crashes and unexpected process restarts, which GTIG flagged as a possible sign of exploitation attempts.
  4. Hunt for the indicators of compromise published in the GTIG report across firewall, proxy and SIEM logs.

How do you fix and harden Ivanti appliances?

  • Upgrade Connect Secure to 22.7R2.6 or a later supported release.
  • If ICT shows signs of compromise, follow CISA's guidance: factory reset, rebuild on a clean image, and treat the device as fully compromised.
  • Reset credentials and secrets stored on or passing through the appliance, including service accounts and API keys.
  • Replace Pulse Connect Secure 9.x, which no longer receives patches.
  • Restrict admin interfaces to management networks and forward appliance logs to a central store.

What should Indian organisations do?

Exploitation of a VPN gateway is a reportable incident. The CERT-In directions of April 2022 require reporting within 6 hours and keeping ICT logs for 180 days within India. If personal data was reachable through the VPN, also assess obligations under the DPDP Act 2023. For background on similar state-linked campaigns, see our analysis of Chinese hackers breaching US telecom networks and our guide to how exposed remote access leads to breaches. Teams that want hands-on incident response and patch management skills can ask about our SOC analyst training.

References

Frequently Asked Questions

It is a critical stack-based buffer overflow in Ivanti Connect Secure, Policy Secure and ZTA Gateways that allows unauthenticated remote code execution.

Ivanti Connect Secure 22.7R2.6, released on 11 February 2025, fixes it, and any later supported release also contains the fix.

Google Threat Intelligence Group reported that the earliest observed exploitation of CVE-2025-22457 took place in mid-March 2025, before public disclosure.

UNC5221 is Mandiant’s name for a suspected China-nexus espionage cluster that has repeatedly exploited edge devices, including Ivanti appliances.

TRAILBLAZE is an in-memory dropper and BRUSHFIRE is a passive backdoor that GTIG observed being installed on exploited Ivanti appliances.

No. Pulse Connect Secure 9.1x reached end of support, so organisations must migrate to a supported Ivanti Connect Secure release.

No. A compromised appliance should be factory reset and rebuilt, and stored credentials and secrets should be rotated, as CISA advises.

Yes. Exploitation of an internet-facing VPN is a reportable incident under the CERT-In directions, which require reporting within six hours.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.