VulnarioBlogExim vulnerabilities
Exim Vulnerabilities: The 10 Most Critical Exim Security Bugs (CVEs)
Exim vulnerabilities are security flaws in Exim that attackers can abuse to steal data, take over a server or interrupt a service. Exim is a mail transfer agent (MTA) used by default on many hosting servers. The National Vulnerability Database (NVD) lists 70 CVEs for Exim, 23 of them rated critical, and 13 were published in the last 12 months. CISA lists 5 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.
This guide lists the 10 most critical Exim security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Exim security basics and a free way to be told about the next Exim CVE as soon as it is published.
Key takeaways
- 5 CVEs are in CISA's KEV catalog, so attackers have exploited them in the wild.
- 23 Exim CVEs are rated critical (CVSS v3), and 13 new ones were published in the last 12 months.
- The newest CVE in this guide is CVE-2026-45185, published May 12, 2026.
- You can monitor Exim for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these Exim CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 10 most critical Exim CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2019-16928 | 9.8 Critical | 2019-09-27 | Exim Out-of-bounds Write | Yes |
| 2 | CVE-2019-10149 | 9.8 Critical | 2019-06-05 | Exim Mail Transfer Agent (MTA) Improper Input Validation | Yes |
| 3 | CVE-2018-6789 | 9.8 Critical | 2018-02-08 | Exim Buffer Overflow | Yes (ransomware use known) |
| 4 | CVE-2010-4344 | 9.8 Critical | 2010-12-14 | Exim Heap-Based Buffer Overflow | Yes |
| 5 | CVE-2010-4345 | 7.8 High | 2010-12-14 | Exim Privilege Escalation | Yes |
| 6 | CVE-2026-45185 | 9.8 Critical | 2026-05-12 | Use after free | No |
| 7 | CVE-2026-40685 | 9.8 Critical | 2026-04-30 | Out-of-bounds write | No |
| 8 | CVE-2025-67896 | 9.8 Critical | 2025-12-14 | Heap buffer overflow | No |
| 9 | CVE-2025-26794 | 9.8 Critical | 2025-02-21 | SQL injection | No |
| 10 | CVE-2023-42115 | 9.8 Critical | 2024-05-03 | Out-of-bounds write | No |
Each Exim CVE explained
1. CVE-2019-16928: Exim Out-of-bounds Write
- What NVD says
- Exim 4.92 through 4.92.2 allows remote code execution, a different vulnerability than CVE-2019-15846. There is a heap-based buffer overflow in string_vformat in string.c involving a long EHLO command.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 4.92 through 4.92.2
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
2. CVE-2019-10149: Exim Mail Transfer Agent (MTA) Improper Input Validation
- What NVD says
- A flaw was found in Exim versions 4.87 to 4.91 (inclusive). Improper validation of recipient address in deliver_message() function in /src/deliver.c may lead to remote command execution.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 4.87 through 4.91
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
3. CVE-2018-6789: Exim Buffer Overflow
- What NVD says
- An issue was discovered in the base64d function in the SMTP listener in Exim before 4.90.1. By sending a handcrafted message, a buffer overflow may happen. This can be used to execute code remotely.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 4.90.1
- What to do
- Upgrade to 4.90.1 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
4. CVE-2010-4344: Exim Heap-Based Buffer Overflow
- What NVD says
- Heap-based buffer overflow in the string_vformat function in string.c in Exim before 4.70 allows remote attackers to execute arbitrary code via an SMTP session that includes two MAIL commands in conjunction with a large message containing crafted headers, leading to improper rejection logging.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 4.70
- What to do
- Upgrade to 4.70 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
5. CVE-2010-4345: Exim Privilege Escalation
- What NVD says
- Exim 4.72 and earlier allows local users to gain privileges by leveraging the ability of the exim user account to specify an alternate configuration file with a directive that contains arbitrary commands, as demonstrated by the spool_directory directive.
- How it can be attacked
- Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- up to and including 4.72
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
6. CVE-2026-45185: Use after free
- What NVD says
- Exim before 4.99.3, in certain GnuTLS configurations, has a remotely reachable use-after-free in the BDAT body parsing path. It is triggered when a client sends a TLS close_notify mid-body during a CHUNKING transfer, followed by a final cleartext byte on the same TCP connection. This can lead to heap corruption. An unauthenticated network attacker exploiting this vulnerability could execute arbitrary code.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 4.97 to before 4.99.3
- What to do
- Upgrade to 4.99.3 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
7. CVE-2026-40685: Out-of-bounds write
- What NVD says
- In Exim before 4.99.2, when JSON lookup is enabled, an out-of-bounds heap write can occur when a JSON operator encounters malformed JSON in an untrusted header, because of an incorrect implementation of \ skipping.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 4.99.2
- What to do
- Upgrade to 4.99.2 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
8. CVE-2025-67896: Heap buffer overflow
- What NVD says
- Exim before 4.99.1, with certain non-default rate-limit configurations, allows a remote heap-based buffer overflow because database records are cast directly to internal structures without validation.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 4.99.1
- What to do
- Upgrade to 4.99.1 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
9. CVE-2025-26794: SQL injection
- What NVD says
- Exim 4.98 before 4.98.1, when SQLite hints and ETRN serialization are used, allows remote SQL injection. (Resolving SQL injection requires an update to 4.99.1 in certain non-default rate-limit configurations.)
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 4.98 to before 4.98.1
- What to do
- Upgrade to 4.98.1 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
10. CVE-2023-42115: Out-of-bounds write
- What NVD says
- Exim AUTH Out-Of-Bounds Write Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Exim. Authentication is not required to exploit this vulnerability. The specific flaw exists within the smtp service, which listens on TCP port 25 by default.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 4.96.1
- What to do
- Upgrade to 4.96.1 or a later release, then restart the service.
How to check if your Exim is vulnerable
Find the exact version first, then compare it with the affected and fixed versions in each CVE above.
exim -bV
On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.
Exim security checklist
- Patch mail software as soon as a fix is out; it is reachable from the whole internet.
- Require TLS and authentication, and never run an open relay.
- Publish SPF, DKIM and DMARC records for every sending domain.
- Rate-limit connections and logins to slow brute-force attempts.
- Keep webmail and admin interfaces behind extra access controls.
- Watch the mail queue and logs for sudden spikes.
Where you run Exim matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating Exim: on most plans the operating system and applications are yours to patch unless the plan says otherwise.
Your stack is bigger than Exim. A flaw anywhere in the chain can be the way in, so also review our guides to Postfix vulnerabilities, Dovecot vulnerabilities and cPanel vulnerabilities.
How to get alerted about new Exim vulnerabilities
NVD received 13 new Exim CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Exim and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run Exim alone. These guides cover the technologies it is most often deployed with.
- Postfix vulnerabilities: Postfix is a widely used open-source mail transfer agent.
- Dovecot vulnerabilities: Dovecot is an open-source IMAP and POP3 mail server.
- cPanel vulnerabilities: cPanel & WHM is the most widely used commercial web hosting control panel for Linux servers.
- MailEnable vulnerabilities: MailEnable is a mail server for Windows.
- Sendmail vulnerabilities: Sendmail is one of the oldest mail transfer agents, still present on many Unix systems.
- Perl vulnerabilities: Perl is a long-standing scripting language still used in system administration and legacy web code.
- ClamAV vulnerabilities: ClamAV is an open-source antivirus engine, common on mail and web servers.
Frequently asked questions about Exim vulnerabilities
What are the most critical Exim vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Exim CVEs include CVE-2019-16928 (CVSS 9.8), CVE-2019-10149 (CVSS 9.8), CVE-2018-6789 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.
Have Exim vulnerabilities been exploited in real attacks?
Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 5 Exim CVEs, including CVE-2019-16928, CVE-2019-10149, CVE-2018-6789. Treat these as the highest priority to patch.
How many vulnerabilities does Exim have?
As of Nov 3, 2026 the National Vulnerability Database lists 70 CVEs for Exim, with 23 rated critical by CVSS v3. 13 were published in the previous twelve months.
How do I check which Exim version I run?
Run exim -bV on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.
How can I get alerted when a new Exim CVE is published?
Add Exim to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Exim and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is Exim secure?
Exim is as secure as its patch level. NVD published 13 new Exim CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2019-16928?
CVE-2019-16928 is a critical Exim vulnerability with a CVSS score of 9.8, published Sep 27, 2019. Exim 4.92 through 4.92.2 allows remote code execution, a different vulnerability than CVE-2019-15846. There is a heap-based buffer overflow in string_vformat in string.c involving a long EHLO command.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.