CVE-2017-15705
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.
What to do
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | spamassassin | Fixed | 3.4.2-0ubuntu0.18.04.1 | UBUNTU-CVE-2017-15705 |
| Ubuntu 16.04 | spamassassin | Fixed | 3.4.2-0ubuntu0.16.04.1 | UBUNTU-CVE-2017-15705 |
| Ubuntu 14.04 | spamassassin | Fixed | 3.4.2-0ubuntu0.14.04.1 | UBUNTU-CVE-2017-15705 |
| Debian 14 | spamassassin | Fixed | 3.4.2-1 | DEBIAN-CVE-2017-15705 |
| Debian 13 | spamassassin | Fixed | 3.4.2-1 | DEBIAN-CVE-2017-15705 |
| Debian 12 | spamassassin | Fixed | 3.4.2-1 | DEBIAN-CVE-2017-15705 |
| Red Hat Enterprise Linux 8 | spamassassin | Not affected | ||
| Red Hat Enterprise Linux 7 | spamassassin | Fixed | 0:3.4.0-4.el7_5 | RHSA-2018:2916 |
| Red Hat Enterprise Linux 6 | spamassassin | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | spamassassin | Will not fix Will not fix | ||
| Alpine Linux 3.24 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.23 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.22 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.21 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.20 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.19 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.18 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.17 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.16 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.15 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.14 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.13 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.12 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.11 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.10 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.9 | spamassassin | Fixed | 3.4.2-r0 | ALPINE-CVE-2017-15705 |
| Alpine Linux 3.8 | spamassassin | Fixed | 3.4.3-r0 | ALPINE-CVE-2017-15705 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache SpamAssassin: affected: all modern versions before 3.4.2
Vendor advisories:
- https://usn.ubuntu.com/3811-2/ (vendor-advisory)
- https://usn.ubuntu.com/3811-1/ (vendor-advisory)
- https://security.gentoo.org/glsa/201812-07 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2916 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00002.html (vendor-advisory)
References
- https://usn.ubuntu.com/3811-2/
- https://usn.ubuntu.com/3811-1/
- https://security.gentoo.org/glsa/201812-07
- https://lists.apache.org/thread.html/7f6a16bc0fd0fd5e67c7fd95bd655069a2ac7d1f88e42d3c853e601c%40%3Cannounce.apache.org%3E
- https://access.redhat.com/errata/RHSA-2018:2916
- http://www.securityfocus.com/bid/105347
- https://lists.debian.org/debian-lts-announce/2018/11/msg00016.html
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00002.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.