CVE-2024-20328 ClamAV VirusEvent File Processing Command Injection Vulnerability

Medium 5.3 Published Updated

Local attackers can execute arbitrary commands via malicious filenames in ClamAV's VirusEvent feature, requiring specific configuration settings.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-20328?

CVE-2024-20328 is a medium-severity command injection vulnerability in Clamav Clamav, published on 1 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability in the VirusEvent feature of ClamAV could allow a local attacker to inject arbitrary commands with the privileges of the application service account.The vulnerability is due to unsafe handling of file names. A local attacker could exploit this vulnerability by supplying a file name containing command-line sequences. When processed on a system using configuration options for the VirusEvent feature, the attacker could cause the application to execute arbitrary commands. ClamAV has released software updates that address this vulnerability. There are no workarounds that address this vulnerability.

Weakness: CWE-78

Which versions are affected by CVE-2024-20328?

It affects 1 product.

Products include Clamav Clamav.

How do I fix CVE-2024-20328?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-20328 being exploited?

There is no known exploitation of CVE-2024-20328 in the wild and no public exploit code.

All Clamav Clamav vulnerabilities

Sources

Also known as AZL-35428, AZL-35431, CLEANSTART-2026-XI94968, DEBIAN-CVE-2024-20328, GHSA-vhq6-cjc8-x8v9, UBUNTU-CVE-2024-20328.

Is CVE-2024-20328 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free