CVE-2022-20792 Memory corruption in Clam AntiVirus (ClamAV)
A local attacker can trigger a heap buffer overflow in ClamAV by placing a crafted signature file, potentially achieving code execution or crashing the service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-20792?
CVE-2022-20792 is a high-severity memory corruption vulnerability in Clamav Clamav, published on 10 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
A vulnerability in the regex module used by the signature database load module of Clam AntiVirus (ClamAV) versions 0.104.0 through 0.104.2 and LTS version 0.103.5 and prior versions could allow an authenticated, local attacker to crash ClamAV at database load time, and possibly gain code execution. The vulnerability is due to improper bounds checking that may result in a multi-byte heap buffer overwflow write. An attacker could exploit this vulnerability by placing a crafted CDB ClamAV signature database file in the ClamAV database directory. An exploit could allow the attacker to run code as the clamav user.
Which versions are affected by CVE-2022-20792?
It affects 1 product.
Products include Clamav Clamav.
How do I fix CVE-2022-20792?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-20792 being exploited?
There is no known exploitation of CVE-2022-20792 in the wild and no public exploit code.
Other vulnerabilities in Clamav Clamav
Sources
Also known as ALPINE-CVE-2022-20792, DEBIAN-CVE-2022-20792, GHSA-c59m-xfxc-m38p, UBUNTU-CVE-2022-20792.