Zum Hauptinhalt springen
LIVE Intel Feed
"Not a Pentest" Notice: Remediation guide for your own Ivanti infrastructure only.
Academy · CVE FeedCRITICAL · CVSS 9.0 · NATION-STATE EXPLOITATION

CVE-2025-22457

Ivanti Connect Secure — Stack Overflow → Unauthenticated RCE (exploited by UNC5221)

Impact: Stack buffer overflow enabling unauthenticated RCE in Ivanti Connect Secure, Policy Secure and ZTA Gateways. Actively exploited by China-nexus threat actor UNC5221 using SPAWN malware family for persistent access. Patch: ICS 22.7R2.5 / IPS 22.7R1.3 / ZTA 22.8R2.3.

9.0
CVSS Score
CRITICAL
Severity
UNC5221
Threat actor
22.7R2.5
Fixed ICS

Step-by-Step Fix Runbook

1
Check Ivanti product versions — identify vulnerable systems
# Affected products and versions:
# Ivanti Connect Secure (ICS): 22.7R2 through 22.7R2.4  ← VULNERABLE
# Ivanti Policy Secure (IPS): 22.7R1 through 22.7R1.2   ← VULNERABLE
# Ivanti ZTA Gateways:        22.8R2 through 22.8R2.2   ← VULNERABLE

# Fixed versions:
# ICS:  22.7R2.5 or later
# IPS:  22.7R1.3 or later
# ZTA:  22.8R2.3 or later

# Check version via Ivanti Admin UI:
# System → System Information → Version

# Check via command line (if you have admin shell access):
# cat /etc/build_version
# Or: admin> show version

# List your Ivanti appliances and versions:
# Ivanti Neurons for ZTA → Dashboard → Gateways → Version column

# CVE requires: network access to the web interface
# Attack is unauthenticated for RCE (stack overflow via crafted HTTP request)
# NOT the same as CVE-2023-46805 / CVE-2024-21887 (previous Ivanti zero-days)
2
Apply Ivanti security patch immediately
# Download patch from Ivanti Support Portal:
# https://forums.ivanti.com/s/article/CVE-2025-22457

# Ivanti Connect Secure patch:
# Target version: ICS 22.7R2.5
# Download: Ivanti Support → Downloads → Connect Secure → 22.7R2.5

# Apply via Ivanti Admin Console:
# Maintenance → System Upgrade → Upload and Install
# Select downloaded .img file → Upgrade
# System will reboot after upgrade (~10-15 minutes downtime)

# Verify upgrade:
# System → System Information → confirm version 22.7R2.5

# For ZTA Gateways managed by Neurons:
# Neurons console → Gateways → select gateway → Actions → Upgrade
# Or: bulk upgrade all gateways to 22.8R2.3

# IMPORTANT: Ivanti recommends factory reset + clean config restore
# after this patch IF you suspect prior compromise:
# Maintenance → Factory Reset → Restore from config backup
# (This removes any webshells or persistence installed by attackers)
3
Immediate workaround: restrict external access to Ivanti web interface
# If patching has a delay, restrict attack surface at firewall

# Block ALL external (internet) access to Ivanti management interface
# Ivanti ICS should NEVER be directly internet-exposed on management port

# Allow only from known corporate IPs / VPN ranges:
# At your perimeter firewall:
iptables -I INPUT -p tcp --dport 443 -s 203.0.113.0/24 -j ACCEPT  # Corporate IP range
iptables -I INPUT -p tcp --dport 443 -s 10.0.0.0/8 -j ACCEPT     # Internal
iptables -A INPUT -p tcp --dport 443 -j DROP                      # Block rest

# Cloud environments (AWS Security Group):
aws ec2 revoke-security-group-ingress \
  --group-id sg-ivanti \
  --protocol tcp --port 443 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress \
  --group-id sg-ivanti \
  --protocol tcp --port 443 --cidr YOUR.CORP.IP/32

# Check if ICT (Integrity Checking Tool) reports anomalies:
# Run Ivanti ICT BEFORE patching to detect prior compromise:
# Maintenance → Integrity Check → Run ICT → Download report
# Review for unexpected file modifications in /home/webserver/ or /tmp/
4
Check for indicators of compromise (UNC5221 TTPs)
# Threat actors (UNC5221/China-nexus) use Ivanti zero-days for espionage
# IoC hunting on the Ivanti appliance:

# 1. Check for SPAWN malware family (attributed to UNC5221):
# SPAWNANT, SPAWNMOLE, SPAWNSNAIL — persistence implants
find /home/webserver -name "*.cgi" -newer /etc/build_version 2>/dev/null
find /tmp -name "*.py" -o -name "*.sh" -o -name "*.so" 2>/dev/null | head -20

# 2. Check for webshells in web-accessible directories:
find /home/webserver/htdocs -name "*.cgi" -newer /etc/build_version 2>/dev/null |
  xargs grep -l "system|exec|popen|subprocess" 2>/dev/null

# 3. Check admin log for unexpected configuration changes:
# Admin UI: Log/Monitoring → Events → Admin Access
# Look for: unexpected admin logins, config exports, cert changes

# 4. Network IoCs: unusual outbound from Ivanti appliance:
# Ivanti appliances should have very limited outbound connections
# Expected: Ivanti license servers, NTP, DNS
# Suspicious: connections to non-standard IPs, data volume spikes

# 5. Check for DSLOG (diagnostic support log) exfiltration attempt:
# Attackers attempt to exfiltrate credentials/configs via:
# /api/v1/totp/user-backup-code/../../system/maintenance/logsnapshot
# Check access logs for this path pattern

# Run Ivanti's ICT tool — generates integrity report:
# Available from Ivanti Support Portal
5
Post-patch hardening — reduce Ivanti attack surface
# Harden Ivanti Connect Secure after patching:

# 1. Enable Ivanti ICT scheduled runs:
# Security → Integrity Checking → Schedule daily checks

# 2. Restrict admin interface access:
# System → Network → Network Configuration
# Management Interface → restrict to internal management VLAN only
# Disable: external admin access, FIPS on public interface

# 3. Configure syslog export to SIEM:
# Log/Monitoring → Client Logs → Syslog
# Export: admin events, authentication events, system events
# Enables: detection of future compromise via external monitoring

# 4. Enable Trusted Platform Module (TPM) attestation if available:
# Ensures appliance hasn't been tampered with at hardware level

# 5. Implement network-based anomaly detection for Ivanti traffic:
# Baseline: what does normal Ivanti traffic look like?
# Alert on: unusual data volumes, connections to new destinations,
#           requests to admin API paths from non-admin source IPs

# 6. Subscribe to Ivanti security advisories:
# https://forums.ivanti.com/s/security-advisories
# Target: patch critical Ivanti advisories within 24 hours of release
# (Ivanti has been repeatedly targeted — fast patching is critical)

Frequently Asked Questions

Is Ivanti Connect Secure CVE-2025-22457 the same as the 2024 Ivanti zero-days?

No — CVE-2025-22457 is a distinct vulnerability from the 2024 Ivanti zero-days (CVE-2023-46805 authentication bypass + CVE-2024-21887 command injection). 2024 Ivanti zero-days: targeted the ICS web interface with auth bypass + command injection — very wide exploitation. Heavily documented and attributed to UNC5221. CVE-2025-22457: stack buffer overflow in a different component. Initially assessed as low severity (thought to be unexploitable), but researchers discovered it was exploitable for unauthenticated RCE. Also attributed to UNC5221 — same China-nexus threat actor. Pattern: Ivanti VPN/gateway products have been repeatedly targeted because: 1) They sit at the network perimeter with full access to internal resources. 2) They often cannot run traditional EDR agents (appliance-based). 3) Compromise enables persistent, hard-to-detect access to the corporate network. Organisations running Ivanti products should maintain aggressive patching cadence and monitor for all published Ivanti CVEs.

What is UNC5221 and why do they target Ivanti products?

UNC5221 is a China-nexus espionage threat actor tracked by Mandiant/Google Threat Intelligence. Key characteristics: Targets: government, defence, technology, telecommunications sectors globally. Tools: SPAWN malware family (SPAWNANT installer, SPAWNMOLE tunneler, SPAWNSNAIL SSH backdoor), BUSHFIRE, LIGHTWIRE, WIREFIRE. Motivation: espionage — credential harvesting, network access for lateral movement, long-term persistent access. Why Ivanti: VPN/gateway products are ideal persistence points because: they handle authentication for the entire corporate network, they often receive delayed patches (complex change management), they're not monitored with the same rigor as server infrastructure, compromise provides pre-authentication access to internal resources. UNC5221 has exploited multiple Ivanti zero-days including CVE-2023-46805, CVE-2024-21887, and now CVE-2025-22457. If your organisation is in a targeted sector and runs Ivanti products, assume you are a target and harden accordingly.

Should I do a factory reset of my Ivanti appliance after patching?

Ivanti and Mandiant recommend a factory reset + clean config restore IF there is any indication of prior compromise OR if your appliance was internet-exposed during the vulnerability window. Reasons to factory reset: IoCs found during investigation (unexpected files, anomalous logs). Appliance was directly internet-accessible when the CVE was being exploited. You cannot confirm the appliance integrity via ICT. Reasons factory reset may not be necessary: Appliance was not internet-exposed (internal only). ICT shows no anomalies. You can confirm the appliance has been patched and isolated before any exploitation activity. Process for factory reset: Export current config (backup). Run ICT — document findings. Perform factory reset via Maintenance → Factory Reset. Re-apply clean config from backup (NOT the potentially compromised config if you found IoCs). Apply latest patch. Verify ICT clean. Note: factory reset + clean restore removes attacker persistence but does NOT undo credential theft that may have already occurred — rotate all credentials accessible through the Ivanti appliance.

How do I monitor Ivanti Connect Secure for future compromise attempts?

Monitoring strategy for Ivanti appliances: 1) Syslog to SIEM: export all Ivanti logs to an external SIEM — admin events, authentication events, system events. If the appliance is compromised, local logs may be tampered with; external logging provides tamper-resistant evidence. 2) NetFlow/traffic analysis: baseline the appliance's normal traffic patterns. Alert on: unusual data volumes outbound, connections to new external IPs, traffic outside normal hours. 3) ICT scheduled runs: run the Ivanti Integrity Checking Tool on a daily schedule. Alert on any unexpected file changes. 4) Authentication monitoring: alert on admin authentication from unexpected IPs or unusual hours. Alert on mass authentication failures (credential stuffing) or unusual successful authentications. 5) API monitoring: alert on access to admin API endpoints (/api/v1/...) from non-admin source IPs. 6) Threat intel integration: subscribe to threat intel feeds for new Ivanti IoCs — UNC5221 TTPs are well-documented and new IoCs are published rapidly after each campaign.

Further Resources

🔒 Quantum-Resistant Mycelium Architecture
🛡️ Kuratierte Runbooks – EU-gehostet in Frankfurt
🌐 Zero Known Breaches – Powered by Living Intelligence
🏛️ DSGVO Art. 25 & 32 • SOC 2 & ISO 27001 in Vorbereitung
⚡ Real-Time Global Mycelium Network – 347 Bedrohungen in 60 Minuten
🧬 Trusted by SecOps Leaders worldwide