An issue was discovered in the base64d function in the SMTP listener in Exim before 4.90.1.
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.
- Published
- Feb 8, 2018
- Updated
- Jun 16, 2026
- EPSS
- 82.1% · 100th percentile
- CWE
- CWE-120
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
94
Now
Patch today or shut off access.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 30 / 30 · Listed
- EPSS
- 25 / 30 · 82.1%
CISA SSVC decision
- Exploitation
- active
- Automatable
- yes
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Actively exploited in the wild
CISA added this to its Known Exploited Vulnerabilities catalog on Nov 3, 2021. That signals real attacks, not theory.
Remediation deadline for government agencies: May 3, 2022.
Known to be used in ransomware campaigns.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| exim | exim | cpe:2.3:a:exim:exim |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
Using exim? Add it to your stack and be the first to know about CVEs like this one. (Email server)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- exim eximbefore 4.90.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | exim4 | before 4.90.1-1 | 4.90.1-1 |
| Debian:7 | exim4 | before 4.80-7+deb7u6 | 4.80-7+deb7u6 |
| Debian:8 | exim4 | before 4.84.2-2+deb8u5 | 4.84.2-2+deb8u5 |
| Debian:9 | exim4 | before 4.89-2+deb9u3 | 4.89-2+deb9u3 |
| openSUSE:Leap 15.2 | exim | before 4.94.2-lp152.8.3.1 | 4.94.2-lp152.8.3.1 |
| openSUSE:Tumbleweed | exim | before 4.94.2-4.2 | 4.94.2-4.2 |
| SUSE:Package Hub 15 SP1 | exim | before 4.94.2-bp151.2.4.1 | 4.94.2-bp151.2.4.1 |
| SUSE:Package Hub 15 SP1 | libspf2 | before 1.2.10-bp151.4.1 | 1.2.10-bp151.4.1 |
| SUSE:Package Hub 15 SP2 | exim | before 4.94.2-bp152.6.4.1 | 4.94.2-bp152.6.4.1 |
| SUSE:Package Hub 15 SP2 | libspf2 | before 1.2.10-bp152.5.1 | 1.2.10-bp152.5.1 |
Same product
exim: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-10149A flaw was found in Exim versions 4.87 to 4.91 (inclusive).KEV99Now
- CVE-2010-4344Heap-based buffer overflow in the string_vformat function in string.c in Exim before 4.70 allows remote attackers to execute arbitrary code KEV91Now
- CVE-2019-16928Exim 4.92 through 4.92.2 allows remote code execution, a different vulnerability than CVE-2019-15846.KEV81Now
- CVE-2010-4345Exim 4.72 and earlier allows local users to gain privileges by leveraging the ability of the exim user account to specify an alternate confiKEV66This week
- CVE-2025-26794Exim 4.98 before 4.98.1, when SQLite hints and ETRN serialization are used, allows remote SQL injection.62This week
- CVE-2020-28018Exim 4 before 4.94.2 allows Use After Free in smtp_reset in certain situations that may be common for builds with OpenSSL.56Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Debian:exim4 | 4.90.1-1 · Debian:12 | Package registry (OSV) |
| openSUSE:exim | 4.94.2-lp152.8.3.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| SUSE:exim | 4.94.2-bp151.2.4.1 · SUSE:Package Hub 15 SP1 | Package registry (OSV) |
| SUSE:libspf2 | 1.2.10-bp151.4.1 · SUSE:Package Hub 15 SP1 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Exploit-DB entry ×2
- Proof-of-concept repository on GitHub ×5
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | remote | 2018-10-24 |
| Exploit-DB entry | remote | 2018-05-02 |
| Proof-of-concept repository on GitHub | stars:0 | 2018-03-16 |
| Proof-of-concept repository on GitHub | stars:3 | 2018-11-08 |
| Proof-of-concept repository on GitHub | stars:10 | 2019-10-10 |
| Proof-of-concept repository on GitHub | stars:11 | 2020-03-02 |
| Proof-of-concept repository on GitHub | stars:2 | 2023-08-05 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+35 d
- CISA KEV+1363 d
- TodaySep 29, 2026+3155 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
When data is copied, the source length is not compared with the size of the destination buffer. Excess data overwrites adjacent memory.
The bug in code
The whole CWE-120 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
char buf[256];memcpy(buf, pkt->data, pkt->len);Fixed
char buf[256];if (pkt->len > sizeof(buf)) { return -EINVAL;}memcpy(buf, pkt->data, pkt->len);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
- Overflow Variables and TagsCAPEC-46likelihood: High · High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- openwall.com/lists/oss-security/2018/02/10/2
- www.openwall.com/lists/oss-security/2018/02/07/2
- www.securityfocus.com/bid/103049
- www.securitytracker.com/id/1040461
- exim.org/static/doc/security/CVE-2018-6789.txt
- git.exim.org/exim.git/commit/cf3cd306062a08969c41a1cdd32c6855f1abecf1
- lists.debian.org/debian-lts-announce/2018/02/msg00009.html
- usn.ubuntu.com/3565-1/
- www.debian.org/security/2018/dsa-4110
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-6789
Vendor advisories and official records. Exploit/PoC links are deliberately left out.