On this page (6 sections)

Ubuntu has published USN-9086-1, a security notice for SA-Exim, the package that lets the Exim mail server call SpamAssassin while a message is still being received over SMTP. The notice says SA-Exim could be made to run programs if it loaded specially crafted SpamAssassin rules.

If you run a mail server on Ubuntu 18.04 LTS with Exim and sa-exim installed, this is worth a quick check. The risk depends on who can write to your SpamAssassin configuration, so it is mainly a concern for shared or multi-user mail setups.

What Ubuntu says happened

According to the notice, SA-Exim unsafely evaluated the parameters of its greylisting SpamAssassin rule. Ubuntu describes the impact this way: an attacker able to write SpamAssassin configuration files or rules could possibly use the issue to execute arbitrary code. The notice references CVE-2019-19920 and lists a related earlier notice, USN-4520-1.

The notice was published on 12 November 2026. At the time of writing, this is the only source in our research, so details such as a CVSS score, the original discovery timeline or any exploitation reports are not available to us. We are not filling those gaps with guesses.

The weakness in plain terms

The notice describes unsafe evaluation of rule parameters. In general terms, this class of bug happens when a program treats text from a configuration file as something to be interpreted and run, rather than as plain data. If someone can control that text, they can steer what the program executes.

The important condition in this notice is the precondition: the attacker must be able to write SpamAssassin configuration files or rules. That is a meaningful barrier. A remote sender who only emails your server is not described as being able to trigger the flaw by itself.

Who is realistically exposed

  • Ubuntu 18.04 LTS (bionic) systems with the sa-exim package installed. The notice lists no other Ubuntu release.
  • Mail servers where more than one person or process can edit SpamAssassin rules, for example per-user rule files on shared hosting or a mail platform where customers manage their own filters.
  • Servers where a separate weakness, such as a compromised account or a writable configuration directory, could give an attacker write access to the rule files. The notice does not describe such a chain; this is a general risk consideration.
  • Single-admin servers where only trusted staff can edit SpamAssassin rules face a lower practical risk, but should still update.
The notice says the fix for Ubuntu 18.04 LTS is available through Ubuntu Pro via ESM Apps. If Ubuntu Pro is not enabled on your machine, you may not receive the updated package through your normal update channel.

How to check your exposure

These read-only commands show whether sa-exim is installed and which version you have. Run them on the mail server. A version below 4.2.1-16ubuntu0.1~esm1 on Ubuntu 18.04 means the fix is not yet applied.

Show the installed sa-exim package and version (Ubuntu/Debian)Shell
dpkg -l sa-exim
Show installed and candidate versions, and which repository provides them (Ubuntu)Shell
apt-cache policy sa-exim
Check whether Ubuntu Pro and ESM Apps are enabled on this machine (Ubuntu)Shell
pro status

Also review who has write access to your SpamAssassin configuration and rule files, since that access is the condition the notice describes. Look for files owned by or writable by accounts that should not be changing mail filtering.

What to do now

Caution. Updating the package on a live mail server can interrupt mail processing if services restart. Schedule the update in a quiet window and confirm that Exim is accepting and delivering mail afterwards.
  1. Confirm the server runs Ubuntu 18.04 LTS and has sa-exim installed (dpkg -l sa-exim).
  2. Make sure Ubuntu Pro with ESM Apps is enabled, since the fix is delivered there. Ubuntu says Pro is free for up to five machines.
  3. Update the sa-exim package to 4.2.1-16ubuntu0.1~esm1 or later using a standard system update.
  4. Verify the new version with apt-cache policy sa-exim or dpkg -l sa-exim.
  5. Review who can write SpamAssassin configuration files and rules, and remove write access that is not needed.
  6. Check your mail logs after the update to confirm greylisting and delivery still work as expected.

The notice says a standard system update applies the fix. On Ubuntu, that means refreshing package lists and upgrading the package. This updates only sa-exim and leaves other packages as they are.

Refresh package lists and upgrade only sa-exim (Ubuntu 18.04 with ESM Apps enabled)Shell
sudo apt update
sudo apt install --only-upgrade sa-exim
Tip. If you cannot enable Ubuntu Pro, the notice says a community fix might become publicly available in the future. Until then, tightening write access to SpamAssassin rules is the most useful interim step, since that access is the condition the notice describes.

Detection and monitoring afterwards

The notice does not describe indicators of compromise, so we cannot offer a reliable signature for this issue. What you can do is watch for unexpected change in the places an attacker would need to reach.

  • Track modification times and ownership of SpamAssassin configuration and rule files, and investigate changes you did not make.
  • Watch for unusual processes started by the mail transport or filtering services.
  • Review Exim and SpamAssassin logs for errors that begin right after a rule file changes.
  • Keep an inventory of servers running Ubuntu 18.04 so that future advisories, like the related USN-4520-1, are not missed.

For the public side of your mail and web infrastructure, a free SSL certificate checker and monitoring can help you notice certificate or DNS changes. These do not detect this SA-Exim issue, which is a local configuration matter on the server.

For broader habits that limit the damage from a single weak spot, see our guides on small business website security and what to do if a website is hacked.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. USN-9086-1: SA-Exim vulnerability | Ubuntu security notices | Ubuntuubuntu.com ·
  • Ubuntu
  • SA-Exim
  • Exim
  • SpamAssassin
  • USN
  • CVE-2019-19920