# CVE-2025-20393: AsyncOS Spam Quarantine unauthenticated root command execution

A crafted HTTP request to the Spam Quarantine feature gives an unauthenticated attacker root command execution on Cisco email appliances. Exploited as a zero-day since late November 2025 by a China-nexus group; fixed releases shipped January 15, 2026.

- Vendor: Cisco, Cisco Secure Email Gateway and Secure Email and Web Manager (AsyncOS Spam Quarantine)
- Severity: CRITICAL (CVSS 3.1 10)
- Exploited (CISA KEV): yes, added 2025-12-17
- EPSS: 30.4% on 2026-11-23
- Public exploit: none reported
- Patch available: yes
- Vendor advisory: cisco-sa-sma-attack-N9bf4, https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sma-attack-N9bf4
- Published: 2025-12-17; updated: 2026-10-12
- Page: https://patchtonight.com/cve/CVE-2025-20393/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| Secure Email Gateway 14.2 and earlier | 15.0.5-016 or later |
| Secure Email Gateway 15.0 | 15.0.5-016 or later |
| Secure Email Gateway 15.5 | 15.5.4-012 or later |
| Secure Email Gateway 16.0 | 16.0.4-016 or later |
| Secure Email and Web Manager 15.0 and earlier | 15.0.2-007 or later |
| Secure Email and Web Manager 15.5 | 15.5.4-007 or later |
| Secure Email and Web Manager 16.0 | 16.0.4-010 or later |
| Secure Email Cloud | Not affected |

## What it is

The Spam Quarantine web interface on Cisco AsyncOS does not validate HTTP requests properly. An **unauthenticated attacker can send a crafted request and run commands as root** on the appliance. Cisco scores it CVSS 10.0.

This was a zero-day. Cisco Talos says a China-nexus group it tracks as **UAT-9686** has exploited it since at least late November 2025. Cisco learned of the campaign on December 10, 2025 and published an advisory with no fix on December 17. Fixed releases came on January 15, 2026. Cisco says the flaw was found while resolving a TAC support case.

After getting in, the attackers installed a persistent Python backdoor (AquaShell), a reverse SSH tunnel (AquaTunnel), the Chisel proxy, and a log-cleaning tool (AquaPurge). Talos describes a limited subset of appliances being compromised, and the goal appears to be espionage. CISA lists ransomware use as unknown.

An email gateway sits on your mail flow, so a root compromise gives an attacker a foothold at your network edge and a view of mail passing through it.

## Am I affected?

An appliance is affected only if **all three** are true:

1. It runs a vulnerable AsyncOS release (see the table above).
2. **Spam Quarantine is configured and enabled.** It is off by default.
3. **Spam Quarantine is reachable from the internet.**

Cisco notes that deployment guides don't require internet exposure of Spam Quarantine.

**Check whether Spam Quarantine is enabled:**

- Secure Email Gateway: **Network > IP Interfaces**, select the interface, and check whether the Spam Quarantine box is ticked.
- Secure Email and Web Manager: **Management Appliance > Network > IP Interfaces**, select the interface, and check the same box.

Then check from outside your network whether the Spam Quarantine port answers.

**Not affected:** Cisco Secure Email Cloud. Cisco knows of no exploitation against Cisco Secure Web.

## What to do

1. **Upgrade.** Move to the first fixed release for your branch or later:
   - Secure Email Gateway: 15.0.5-016, 15.5.4-012 or 16.0.4-016. Releases 14.2 and earlier must move to 15.0.5-016 or later.
   - Secure Email and Web Manager: 15.0.2-007, 15.5.4-007 or 16.0.4-010. Releases 15.0 and earlier must move to 15.0.2-007 or later.

   Use **System Administration > System Upgrade** in the web interface, or the CLI:

   ```
   upgrade
   DOWNLOADINSTALL
   ```

   Each upgrade reboots the appliance. Secure Email Cloud customers can request upgrades through Cisco support.

2. **There is no workaround.** Cisco states that nothing mitigates the flaw directly. Until you patch, **block internet access to the Spam Quarantine interface** or allow only known, trusted hosts. This reduces exposure but is not a fix.

3. **Harden the appliance**, as Cisco recommends: put it behind a firewall, separate mail and management traffic onto different interfaces on Secure Email Gateway, disable HTTP on the main administrator portal and unneeded services such as FTP, and use strong end-user authentication such as SAML or LDAP.

4. **If the appliance was exposed while vulnerable, assume it may be compromised.** Cisco says upgrading clears the persistence mechanisms identified in this campaign, but the upgrade does not tell you whether someone was there. **Open a Cisco TAC case** to verify compromise, and keep remote access enabled on the appliance to speed up the investigation. Cisco urges customers to rebuild any appliance confirmed as compromised. Rotate credentials stored on or used by the appliance.

5. **Forward logs to an external server** and keep them long enough for investigations. AquaPurge removes lines from logs on the device.

## Detection

Start with the exposure window: **late November 2025** until the day you patched.

- Check for the AquaShell backdoor at **`/data/web/euq_webui/htdocs/index.py`**. Talos says it is embedded in an existing file of the Python web server and listens for unauthenticated HTTP POST requests carrying encoded commands.
- Look for connections to the Talos IPs `172.233.67[.]176`, `172.237.29[.]147` and `38.54.56[.]95`, and for the AquaTunnel, AquaPurge and Chisel hashes listed above. A hit means open a TAC case.
- Look for outbound reverse SSH or HTTP tunnel connections from the appliance to unfamiliar servers (AquaTunnel and Chisel).
- Review web logs for unexpected requests to the Spam Quarantine interface. Gaps or missing lines in logs fit AquaPurge, which uses inverted `egrep` to strip lines containing chosen keywords.
- Cisco lists Snort rules **65617, 65643, 65644 and 65645** as associated with this advisory.
- Talos names no log file paths and provides no standalone detection signatures. Cisco does not publish a self-check command, so a clean search is not proof the appliance is clean.

## Sources

- [Cisco advisory cisco-sa-sma-attack-N9bf4](https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sma-attack-N9bf4)
- [CVE record (MITRE)](https://cveawg.mitre.org/api/cve/CVE-2025-20393)
- [CISA Known Exploited Vulnerabilities catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-20393)
- [Cisco Talos, UAT-9686 report](https://blog.talosintelligence.com/uat-9686/)
- [Cisco Talos IOC repository](https://github.com/Cisco-Talos/IOCs/tree/main/2025/12)
- [Help Net Security, fix coverage](https://www.helpnetsecurity.com/2026/01/16/cisco-fixes-asyncos-vulnerability-exploited-in-zero-day-attacks-cve-2025-20393/)

---

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.
