Description
A denial of service vulnerability was identified that exists in Apache SpamAssassin before 3.4.2. The vulnerability arises with certain unclosed tags in emails that cause markup to be handled incorrectly leading to scan timeouts. In Apache SpamAssassin, using HTML::Parser, we setup an object and hook into the begin and end tag event handlers In both cases, the "open" event is immediately followed by a "close" event - even if the tag *does not* close in the HTML being parsed. Because of this, we are missing the "text" event to deal with the object normally. This can cause carefully crafted emails that might take more scan time than expected leading to a Denial of Service. The issue is possibly a bug or design decision in HTML::Parser that specifically impacts the way Apache SpamAssassin uses the module with poorly formed html. The exploit has been seen in the wild but not believed to have been purposefully part of a Denial of Service attempt. We are concerned that there may be attempts to abuse the vulnerability in the future.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache SpamAssassin | all modern versions before 3.4.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | spamassassin | 3.4.2-1 | — |
| Debian 13 | spamassassin | 3.4.2-1 | — |
| Debian 12 | spamassassin | 3.4.2-1 | — |
| Debian 8 | spamassassin | 3.4.2-0+deb8u1 | DLA-1578-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | spamassassin | 3.4.2-0ubuntu0.18.04.1 | USN-3811-1 |
| Ubuntu 16.04 LTS | spamassassin | 3.4.2-0ubuntu0.16.04.1 | USN-3811-1 |
| Ubuntu 14.04 LTS | spamassassin | 3.4.2-0ubuntu0.14.04.1 | USN-3811-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | spamassassin | 3.4.0-4.el7_5 | RHSA-2018:2916 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | spamassassin | 3.4.2-7.4.1 | SUSE-SU-2019:2011-1 |
| SLES 12 SP4 | spamassassin | 3.4.2-44.3.1 | SUSE-SU-2019:1961-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP4 | spamassassin | 3.4.2-44.3.1 | SUSE-SU-2019:1961-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | spamassassin | 3.4.6-71.3 | openSUSE-SU-2024:11395-1 |
| openSUSE Leap 15.0 | spamassassin | 3.4.2-lp150.6.3.1 | openSUSE-SU-2019:1831-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.23 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.22 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.21 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.20 | spamassassin | 3.4.2-r0 | — |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.18 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.17 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.16 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.15 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.14 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.13 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.12 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.11 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.10 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.9 | spamassassin | 3.4.2-r0 | — |
| Alpine v3.8 | spamassassin | 3.4.3-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | spamassassin | 3.4.0-4.amzn2 | ALAS2-2018-1103 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | spamassassin | 3.4.0-4.el7_5 | ELSA-2018-2916 |
Advisories 9
- RHSA-2018:2916 Red Hat Security Advisory: spamassassin security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DLA-1578-1 spamassassin - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-3811-1 spamassassin vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2019:1831-1 Security update for spamassassin SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2011-1 Security update for spamassassin SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:1961-1 Security update for spamassassin SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11395-1 perl-Mail-SpamAssassin-3.4.6-71.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2018-1103 Important: spamassassin security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Nov 8, 2018
- ELSA-2018-2916 Important: spamassassin security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Oct 11, 2018
References
- USN-3811-2 vendor-advisory
- USN-3811-1 vendor-advisory
- GLSA-201812-07 vendor-advisory
- [announce] 20180916 [SECURITY] Apache SpamAssassin 3.4.2 resolves CVE-2017-15705, CVE-2016-1238, CVE-2018-11780 & CVE-2018-11781 mailing-list
- RHSA-2018:2916 vendor-advisory
- 105347 vdb-entry
- [debian-lts-announce] 20181113 [SECURITY] [DLA 1578-1] spamassassin security update mailing-list
- openSUSE-SU-2019:1831 vendor-advisory