Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-20337

CVE-2026-20337: ClamAV Zip Parser DoS Vulnerability

CVE-2026-20337 is a denial of service flaw in ClamAV's zip archive parser caused by improper boundary checks. Attackers can crash the scanning process with crafted zip files. This article covers technical details.

Published:

CVE-2026-20337 Overview

CVE-2026-20337 is a denial-of-service vulnerability in the ZIP archive parser of ClamAV, the open-source antivirus engine maintained by Cisco. The flaw allows an unauthenticated, remote attacker to terminate the ClamAV scanning process by submitting a crafted ZIP file for scanning. The issue stems from improper boundary checks on content within ZIP files, which produces an out-of-bounds write condition [CWE-120] during parsing.

Critical Impact

A remote, unauthenticated attacker can crash the ClamAV scanning engine by delivering a single malformed ZIP file, disrupting any workflow that relies on ClamAV for content inspection, including mail gateways and file upload scanners.

Affected Products

  • ClamAV (Cisco-maintained open-source antivirus engine)
  • Products embedding vulnerable ClamAV versions for ZIP scanning
  • Refer to the Cisco Security Advisory for the fixed-version matrix

Discovery Timeline

  • 2026-08-07 - CVE-2026-20337 published to NVD
  • 2026-08-11 - Last updated in NVD database

Technical Details for CVE-2026-20337

Vulnerability Analysis

The vulnerability resides in the ClamAV ZIP archive parser, which is invoked whenever the scanning engine inspects the contents of a ZIP container. During parsing, the code fails to validate the size or offset of embedded content against the destination buffer boundaries. A crafted ZIP entry can therefore trigger a write past the end of an allocated buffer.

The out-of-bounds write corrupts adjacent memory and reliably causes the clamd scanning process to abort. Because ClamAV frequently runs as a long-lived daemon that inspects files on behalf of mail servers, web proxies, and file storage services, a single malformed archive can suspend malware scanning across an entire pipeline. The Cisco advisory characterizes the impact as availability loss only, with no evidence of code execution or data disclosure.

EPSS currently scores this issue at 0.362% (29.187 percentile), and no public exploit has been observed.

Root Cause

The root cause is a classic buffer boundary miscalculation classified under [CWE-120]. The ZIP parser trusts size or length values derived from the archive structure without cross-checking them against the target buffer capacity, allowing crafted metadata to steer writes beyond safe memory regions.

Attack Vector

Exploitation requires only that a malicious ZIP file reach the ClamAV scanner. Attackers can deliver the payload through any channel that feeds ClamAV, including email attachments processed by security gateways, files uploaded to a web application, or samples routed to an on-demand scanning API. No authentication or user interaction is required for the scanner to process the file. See the Cisco Security Advisory for technical specifics on the affected parsing path.

Detection Methods for CVE-2026-20337

Indicators of Compromise

  • Unexpected termination or crash logs from the clamd or clamscan process, particularly with signals such as SIGSEGV or SIGABRT during ZIP handling.
  • Scanning pipelines reporting stalled queues, timeouts, or repeated restarts of ClamAV workers after processing inbound archives.
  • Recurrent submission of ZIP files from a single sender or source IP that coincide with scanner failures.

Detection Strategies

  • Monitor ClamAV log files (clamd.log, freshclam.log) for abnormal exit codes and parser errors referencing ZIP handling.
  • Correlate mail gateway or upload service logs with ClamAV process restarts to identify the file that triggered the crash.
  • Retain and quarantine the offending ZIP samples for offline analysis rather than allowing automatic retry loops.

Monitoring Recommendations

  • Alert on process crashes and service restarts of ClamAV daemons using host telemetry or systemd status monitoring.
  • Track scanning latency and queue depth on mail and web content gateways to detect availability degradation.
  • Instrument upstream services to fail closed and log the originating source when ClamAV returns a scan error.

How to Mitigate CVE-2026-20337

Immediate Actions Required

  • Upgrade ClamAV to a fixed version as listed in the Cisco Security Advisory.
  • Inventory all products and appliances that bundle ClamAV and apply vendor updates as they become available.
  • Configure scanning pipelines to fail closed so that a crashed scanner blocks, rather than passes, unscanned content.

Patch Information

Cisco has published fixed ClamAV releases addressing the ZIP parser boundary check. Administrators should review the Cisco Security Advisory for the specific fixed versions and update all deployed instances, including third-party appliances that embed ClamAV.

Workarounds

  • Disable ZIP archive scanning in clamd.conf by setting ScanArchive no where operationally acceptable, understanding that this reduces malware coverage.
  • Enforce archive size and nesting limits (MaxFileSize, MaxScanSize, MaxRecursion) to reduce exposure to malformed inputs while a patch is being deployed.
  • Run the ClamAV daemon under a supervisor that automatically restarts the process, and rate-limit repeated submissions from the same source to prevent sustained outages.
bash
# Configuration example: harden clamd.conf while patching is in progress
ScanArchive yes
MaxFileSize 25M
MaxScanSize 100M
MaxRecursion 10
MaxFiles 1000
# Optional: disable ZIP scanning entirely as a temporary measure
# ArchiveBlockEncrypted yes

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.