# CVE-2026-20338: ClamAV ZIP double free crashes scanning, exploit code is public

A double free when ClamAV merges ZIP catalogue records 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-20338/

## 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

When ClamAV merges the catalogue records of a ZIP archive, it mishandles who owns a piece of memory, and a malformed archive makes it **free the same memory twice** (CWE-415). The scanning process crashes, which stops scanning. Cisco scores it 7.5 and calls it a denial of service. Daggolu Rakesh and Yazdan Soltani reported it independently.

The attacker doesn't need an account, only a way to get ClamAV to scan their file: an email attachment, a file upload, 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-20337](/cve/CVE-2026-20337/), 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.

Check where ClamAV is bundled: mail servers and gateways, file-upload services, NAS devices and containers. Ask those vendors for their fixed versions.

## What to do

1. **Upgrade ClamAV to 1.5.4.** If you're on 1.4.x, upgrade to 1.4.6 for the other bugs in 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 passes files when ClamAV is down, 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.
- **Files passed unscanned** in mail or upload logs 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-20338)
- [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.
