Denial of Service Vulnerability in ClamAV Package - CVE-2022-20770

clamav Updated 02 Oct 2025

Summary

04/05/2022
N/A
Yes i
High
7.5

ALPINE-CVE-2022-20770: On April 20, 2022, the following vulnerability in the ClamAV scanning library versions 0.103.5 and earlier and 0.104.2 and earlier was disclosed: A vulnerability in CHM file parser of Clam AntiVirus (ClamAV) versions 0.1... Affects clamav versions < 0.103.6-r0. Fixed in 0.103.6-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ClamAV is an open-source antivirus engine designed for detecting trojans, viruses, malware, and other malicious threats. It is widely used in various applications to provide security against malware. The package is known for its versatility and effectiveness in scanning files and emails for potential threats. However, certain versions of ClamAV have been found to be vulnerable to a denial of service attack due to flaws in its CHM file parser.

Vulnerability Detail

On April 20, 2022, a vulnerability was disclosed in the ClamAV scanning library affecting versions 0.103.5 and earlier, as well as 0.104.2 and earlier. This vulnerability allows an unauthenticated, remote attacker to exploit the CHM file parser, potentially leading to a denial of service condition on affected devices. The vulnerability is significant as it can disrupt the normal functioning of systems relying on ClamAV for malware detection, making them susceptible to further attacks.

How To Fix

Minimum fixed version

0.103.6-r0

This is the first release that contains the fix.

sudo apk add --upgrade clamav

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can disable the scanning of CHM files until the package is updated. This can be done by modifying the ClamAV configuration file, typically located at '/etc/clamav/clamd.conf', to exclude CHM files from being scanned.

Conclusion

In summary, CVE-2022-20770 represents a significant vulnerability in the ClamAV package that can lead to denial of service attacks. It is crucial for users to update their ClamAV installations to the patched version to mitigate this risk. Additionally, temporary workarounds can be employed until the update is applied.

See every vulnerability recorded for clamav →

Share this vulnerability

FAQ

CVE-2022-20770 is a vulnerability in the ClamAV antivirus engine that allows remote attackers to cause a denial of service through a flaw in the CHM file parser.

The vulnerability affects ClamAV versions 0.103.5 and earlier, as well as 0.104.2 and earlier.

An attacker can exploit this vulnerability to cause a denial of service, disrupting the normal operation of systems using ClamAV.

You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file like package-lock.json. Visit Vulert Scanner to check your application without any signup.

The CVSS score for CVE-2022-20770 is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for clamav.

How To Fix

Minimum fixed version

0.103.6-r0

This is the first release that contains the fix.

sudo apk add --upgrade clamav

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback