# CVE-2026-20337: A crafted ZIP file crashes ClamAV scanning, exploit code is public

An out-of-bounds heap write in ClamAV's ZIP parser lets anyone who can get a file scanned crash the scanner. Cisco says proof-of-concept code is public; it affects ClamAV 1.5.x and Cisco Secure Endpoint connectors.

- Vendor: Cisco, ClamAV and Cisco Secure Endpoint (ZIP parser)
- Severity: HIGH (CVSS 3.1 7.5)
- Exploited (CISA KEV): not listed
- EPSS: 0.6% on 2026-11-23
- Public exploit: yes
- Patch available: yes
- Vendor advisory: cisco-sa-clamav-WuuvVd26, https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-clamav-WuuvVd26
- Published: 2026-08-07; updated: 2026-10-13
- Page: https://patchtonight.com/cve/CVE-2026-20337/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| ClamAV 1.5.0 to 1.5.3 | 1.5.4 or later |
| Secure Endpoint Connector for Windows | 8.6.3, or 7.5.24.21780 on the 7.5 branch |
| Secure Endpoint Connector for Mac | 1.27.4 or later |
| Secure Endpoint Connector for Linux | 1.29.2 or later |
| Secure Endpoint Private Cloud | Not affected itself; deploy fixed connectors (supported from 4.2.8) |
| ClamAV 1.4.x | Not affected by this CVE |

## What it is

ClamAV's ZIP parser tracks the capacity of its catalogue of entries incorrectly. While indexing the local file headers of a crafted ZIP file, it can **write past the end of a heap allocation**. The scanning process crashes, which stops scanning. Cisco scores it 7.5 and calls it a denial of service. Kevin Stubbings of the GitHub Security Lab reported it.

The attacker doesn't need an account. They only need ClamAV to scan their file: an email attachment on a mail gateway running ClamAV, an upload to a web application that scans files, or a download onto an endpoint with Cisco Secure Endpoint.

Cisco says **proof-of-concept exploit code is public** for this bug and its sibling [CVE-2026-20338](/cve/CVE-2026-20338/), and that it knows of no malicious use. Cisco rates the advisory **High on Windows**, where the scanning process runs privileged, and Medium on Linux and Mac.

## Am I affected?

**Yes, if you run ClamAV 1.5.0 to 1.5.3**, directly or inside another product, or an unpatched Cisco Secure Endpoint Connector (table above). ClamAV 1.4.x does not have this bug, according to the ClamAV project.

ClamAV is often bundled: check mail servers and gateways, file-upload services, NAS devices and containers that ship it, and ask those vendors for their fixed versions.

## What to do

1. **Upgrade ClamAV to 1.5.4.** Packages are on the ClamAV downloads page, GitHub and Docker Hub. If you're on 1.4.x, upgrade to 1.4.6 anyway: it fixes other bugs from the same advisory.
2. **Update Secure Endpoint connectors:** Windows to 8.6.3 (or 7.5.24.21780 on the 7.5 branch), Mac to 1.27.4, Linux to 1.29.2. Private Cloud customers deploy the fixed connectors from release 4.2.8.
3. **There is no workaround,** according to Cisco.
4. **Make sure a scanner crash fails safe.** If a mail gateway or upload service lets files through when ClamAV is down, a crash also means unscanned files get in. Configure it to hold or reject them instead.

## Detection

No indicators of compromise have been published.

- **ClamAV or `clamd` crashes and restarts**, and scan errors on ZIP files, especially repeated ones from the same sender or uploader.
- **Secure Endpoint scanning stopping or restarting** on endpoints.
- **Mail or upload logs showing files passed unscanned** around the time of a crash.

## Sources

- [Cisco advisory cisco-sa-clamav-WuuvVd26](https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-clamav-WuuvVd26)
- [CVE record](https://cveawg.mitre.org/api/cve/CVE-2026-20337)
- [ClamAV blog, 1.5.4 and 1.4.6 security patch releases](https://blog.clamav.net/2026/08/)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
