The appliance exists so that hostile email can be opened somewhere other than a user's mailbox. On September 14 Cisco confirmed that opening one hostile message is enough to take the appliance itself, as root, from anyone who can send mail to your domain.
Cisco advisory cisco-sa-esa-inj-2bLVGmhX covers CVE-2026-76461, a SQL injection in the email parsing logic of AsyncOS for Cisco Secure Email Gateway. It scores 9.8 on CVSS 3.1 with the vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. No credentials, no user interaction, no click by anyone inside the company. Cisco's own wording is that "the Cisco PSIRT became aware of active exploitation of this vulnerability" in September 2026. There is no workaround, and the advisory says the condition is present regardless of how the device is configured.
CISA added it to the Known Exploited Vulnerabilities catalog the same day, with a federal remediation date of September 17. The catalog entry also carries a field most KEV rows do not: forensic triage, set to yes.
Who this is for, and who can stop reading
This is yours if mail addressed to your domain passes through a Cisco Secure Email Gateway that you or your provider operate, in either the physical C-series or the virtual ESAv form, on release 15.5 or earlier, 16.0, or 16.5. The fixed builds are 15.5.5-0141, 16.0.4-3021 and 16.5.0-780.
If your MX records resolve to Microsoft 365 or Google Workspace and nothing of yours parses a message before them, this one is not for you. Go back to the September patch queue. Cisco Secure Email and Web Manager and Cisco Secure Web Appliance are outside the affected set. Cloud Gateway customers on Cisco-hosted appliances were moved to 16.5.0-780 by Cisco.
The awkward case is the third one. A company of sixty people that buys managed mail filtering does not always know what the filtering runs on. If your provider handles inbound mail before it reaches your tenant, the question worth sending today is short: do you operate Cisco Secure Email Gateway, on what AsyncOS build, and when did it move to a fixed release. A provider that cannot answer both halves by tomorrow has told you something.
One number in the coverage deserves correction in practice. BleepingComputer reports Shadowserver tracking over 400 of these appliances exposed to the internet. That count measures management surfaces reachable from outside. It is the wrong denominator for this bug. The exploit arrives as a message, through the port the appliance opens on purpose, from any sender on the internet. An appliance whose web interface has never left the management VLAN is still reachable by anyone with an SMTP client. Exposure here means accepting mail, and every one of these devices accepts mail.
A SQL statement inside a message the appliance has to open
The mechanism is stated plainly in the advisory and in the NVD record: insufficient validation in email parsing lets a crafted message carry SQL statements into the database behind AsyncOS, and executing those statements leads to command execution with root privileges on the underlying operating system. The weakness class is CWE-89. Cisco tracks it as bug CSCwu56234 and shipped Snort coverage as rules 67109 and 67110.
The step between "arbitrary SQL" and "root shell" is worth naming, because Cisco names it indirectly. The hunting indicator the advisory gives administrators is a search of the mail logs for COPY followed by TO PROGRAM. That is PostgreSQL syntax. COPY ... TO PROGRAM pipes the result of a query into a shell command run by the database process, and on this platform that process holds root. So the chain has three links and no branches: parse a message, reach the database, spawn a command as root. An attacker who gets the first link gets all three in one delivery.
That matters for how you reason about blast radius. There is no privilege escalation stage to detect, no lateral movement inside the box to interrupt, and no user to train. The message either lands on a vulnerable build or it does not.
Establish the build, then read the logs off the box
Two checks, in this order. Run them on every device in a cluster, because each member parses its own mail and writes its own mail_logs.
# On the AsyncOS CLI of each appliance.
# 1. Which build is running? Compare against 15.5.5-0141 / 16.0.4-3021 / 16.5.0-780.
version
# 2. Cisco's published indicator: the PostgreSQL command-execution primitive.
grep -i -e "COPY.*TO PROGRAM" mail_logs
# 3. Widen it. These are our additions, not Cisco's, and they are noisy by design:
# other PostgreSQL file and command primitives, plus statement terminators
# appearing inside a header or body where they have no business.
grep -i -e "pg_read_file" -e "pg_ls_dir" -e "lo_export" -e "CREATE FUNCTION" mail_logs
grep -i -e "UNION SELECT" -e "; DROP " -e "; CREATE " mail_logs
# 4. Administrative state you did not create.
userconfig
sshconfig
Any hit on check 2 is an incident, not a maintenance ticket. Treat checks 3 and 4 as leads rather than verdicts.
The evidence that root cannot edit
Cisco's advisory says the quiet part out loud: an attacker with root may remove traces of the activity, so administrators should cross-check network and firewall logs for suspicious uploads or downloads to external addresses. Take that instruction literally, because it is the only check in this response that an attacker on the appliance cannot rewrite.
A mail gateway has a small and boring outbound profile. It speaks SMTP to the internet and to your internal mail servers, DNS to your resolvers, NTP, syslog to your collector, and HTTPS to Cisco update and reputation services. Pull the firewall and proxy records for the appliance address over the last thirty days and sort by destination. Anything outside that list is the finding. A single outbound connection to a host nobody can explain is worth more than a clean pass over the mail logs.
Patch in place, or rebuild
Everyone has to do the upgrade. The real decision is what happens after it, and the two answers cost very different amounts.
Patch in place means the upgrade command or System Administration > System Upgrade, a reload, and mail queued at the sending side for the duration. It closes the hole against the next attempt. It settles nothing about the previous ten days, and on a box where an attacker held root it leaves any persistence they installed exactly where they put it.
Rebuild means standing up the appliance fresh on a fixed build and restoring configuration from a saved copy you trust, then rotating every credential the old device held. On an ESAv this is inexpensive: deploy the current image, load the configuration file, cut the MX or the internal relay back. On a physical C-series it is a reimage and a longer outage, which is why the standby path is worth arranging before you start rather than during.
My rule for sequencing is the same one I would apply to any edge device that runs code as root: patch first because the clock is real and the upgrade stops new attempts, then decide about rebuilding on evidence rather than on comfort. A patched appliance is a patched appliance, and calling it a clean one requires the evidence above.
Rebuild if any of these are true
- Any match on the
COPY ... TO PROGRAMsearch, on any cluster member. - Any outbound connection from the appliance to a destination outside its normal profile.
- An administrative account, SSH key, or log subscription that no change record explains.
- A gap in
mail_logsthat does not line up with a rollover or a reboot you performed. - No usable off-box logs at all, on an appliance that has accepted internet mail on a vulnerable build since early September. Absence of evidence is a reason to rebuild, not a reason to relax.
CISA reached the same conclusion for federal agencies and wrote it into the directive. BOD 26-04 sets risk-based remediation timelines, and for its highest-risk category it requires an agency to remediate within three days and carry out a forensic triage to determine whether a compromised system exists. The KEV entry for this CVE sits in that category. Federal agencies are being told to patch by Wednesday and then go look. The instruction is sound outside government too, and nobody will send it to you.
What the appliance held, and what now has to be rotated
If you land on rebuild, the credential list is longer than the admin password, because a mail gateway is a junction of other systems' secrets:
- The LDAP or Entra bind account used for recipient validation and directory harvest prevention. It usually reads more of the directory than anyone remembers granting.
- SMTP authentication credentials for upstream relays and for delivery into the internal mail servers.
- Private keys for the TLS certificates the appliance presents on inbound and outbound STARTTLS.
- Local administrator passwords, SSH keys, SNMP communities, and any API credentials joining it to Secure Email and Web Manager.
Then there is the content. A mail gateway sees message bodies in the clear before delivery, and it holds some of them: spam and policy quarantines, and whatever sits in the delivery queue. Password reset links, invoices with bank details, contracts, one-time codes. Everything that transited a compromised appliance should be treated as read by someone else. That is the part that turns a device incident into a notification question, and it is the reason the triage is worth the afternoon.
Pull the mail logs off the appliance before you upgrade it
The upgrade reboots the device and rolls the logs. If the only copy of mail_logs lives on the appliance, the upgrade that fixes the vulnerability is also the event that destroys your ability to answer whether it was used. Copy the logs to a host the appliance does not control first. Then upgrade to the fixed build, then run the two searches, then pull the firewall records for the appliance address. In that order, tonight, on every cluster member.
If you get a hit and there is no written sequence for what happens next, that gap matters more than this CVE does. We build and test incident response playbooks with teams who have to run them on their own equipment, without a retainer standing by.
Need an incident response plan before the next attack?
We help organizations build and test incident response playbooks. Book a session with our team.
