CVE-2017-6418
Medium · 5.5CVSS
5.5
EPSS
1.4%
Published
Aug 7, 2017
CISA due date
—
Cloudanix analysis
A flaw in an email scanning tool can make the program crash when it sees a specially crafted message, interrupting protection against malware.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in libclamav/message.c during email parsing leads to process crash (denial of service).
Why it matters to the business
Scanning of email traffic can be disrupted, potentially allowing malware to go undetected or causing operational interruptions in mail gateways and security appliances.
How an attack unfolds
An attacker crafts a specially formatted email message and delivers it to a target system running ClamAV; when the scanner parses the message it reads past allocated buffer bounds and crashes.
How to fix it
Upgrade ClamAV to a build containing commit 586a5180287262070637c8943f2f7efd652e4a2c or later; for tigera-operator-1.33 (Chainguard or Wolfi) upgrade to 1.33.0-r1 or newer.
How to confirm the fix worked
Confirm the installed ClamAV binary or package reports a version after the listed commit; replay a known triggering email sample in a test environment and verify the process no longer crashes.
Typical attack path
- Craft email with malformed headers or body to trigger the parsing flaw
- Deliver the message via SMTP or other channel monitored by ClamAV
- ClamAV initiates scanning of the incoming message
- Out-of-bounds read occurs resulting in denial of service
How to detect it
Review ClamAV process logs and crash dumps for segmentation faults or out-of-bounds access during email processing; correlate with mail server logs showing sudden scanner restarts around the time of message receipt.
What your security team should do
- Apply the listed fixed versions immediately on all internet-facing or high-volume mail scanners
- Add version checks to continuous compliance scans and package update pipelines
- Monitor upstream ClamAV release notes for any follow-on memory-safety improvements
The record
libclamav/message.c in ClamAV 0.99.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted e-mail message.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | clamav | 0 | 0.99.3~beta1+dfsg-1 |
| Debian:12 | clamav | 0 | 0.99.3~beta1+dfsg-1 |
| Debian:13 | clamav | 0 | 0.99.3~beta1+dfsg-1 |
| Debian:7 | clamav | 0 | 0.99.2+dfsg-0+deb7u4 |
| Debian:7 | clamav | 0 | 0.99.2+dfsg-0+deb7u3 |
| Mageia:5 | clamav | 0 | 0.99.2-1.1.mga5 |
| Mageia:6 | clamav | 0 | 0.99.2-2.2.mga6 |
| SUSE:Linux Enterprise Desktop 12 SP2 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | clamav | 0 | 0.99.3-0.20.3.2 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | clamav | 0 | 0.99.3-0.20.3.2 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | clamav | 0 | 0.99.3-0.20.3.2 |
| SUSE:Linux Enterprise Server 11 SP4 | clamav | 0 | 0.99.3-0.20.3.2 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Server 12 SP2 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Server 12 SP3 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Server 12-LTSS | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | clamav | 0 | 0.99.3-0.20.3.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | clamav | 0 | 0.99.3-33.5.1 |
| SUSE:OpenStack Cloud 6 | clamav | 0 | 0.99.3-33.5.1 |
| Ubuntu:14.04:LTS | clamav | 0 | 0.99.2+addedllvm-0ubuntu0.14.04.2 |
| Ubuntu:16.04:LTS | clamav | 0 | 0.99.2+dfsg-0ubuntu0.16.04.2 |
| openSUSE:Tumbleweed | clamav | 0 | 0.103.3-1.4 |
Related vulnerabilities
- HSEC-2024-0002 out-of-bounds write when there are many bzip2 selectors Also affects clamav
- CVE-2025-20128 A vulnerability in the Object Linking and Embedding 2 (OLE2) decryption routine of ClamAV… Also affects clamav
- CVE-2024-20506 A vulnerability in the ClamD service module of Clam AntiVirus (ClamAV) versions 1.4.0… Also affects clamav
- CVE-2024-20505 A vulnerability in the PDF parsing module of Clam AntiVirus (ClamAV) versions 1.4.0… Also affects clamav
- CVE-2023-20197 A vulnerability in the filesystem image parser for Hierarchical File System Plus (HFS+)… Also affects clamav
- CVE-2023-20052 On Feb 15, 2023, the following vulnerability in the ClamAV scanning library was… Also affects clamav
- CVE-2023-20032 On Feb 15, 2023, the following vulnerability in the ClamAV scanning library was… Also affects clamav
- CVE-2017-11423 The cabd_read_string function in mspack/cabd.c in libmspack 0.5alpha, as used in ClamAV… Also affects clamav