Skip to content

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

MediumCVSS 5.3 EPSS 84.8%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianNetwork AppliancesCisco

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.

Upgrade path

12 packages: 11 fixed.

PackageAffectedFixed inStatus
alpine/clamav(Alpine v3.19) >= 1.2.0, < 1.2.2-r0 1.2.2-r0 Fixed
alpine/clamav(Alpine v3.20) >= 1.2.0, < 1.2.2-r0 1.2.2-r0 Fixed
alpine/clamav(Alpine v3.21) >= 1.2.0, < 1.2.2-r0 1.2.2-r0 Fixed
alpine/clamav(Alpine v3.22) >= 1.2.0, < 1.2.2-r0 1.2.2-r0 Fixed
alpine/clamav(Alpine v3.23) >= 1.2.0, < 1.2.2-r0 1.2.2-r0 Fixed
alpine/clamav(Alpine v3.24) >= 1.2.0, < 1.2.2-r0 1.2.2-r0 Fixed
clamav >= 1.0.0, < 1.0.5; >= 1.2.0, < 1.2.2 1.0.5, 1.2.2 Fixed
debian/clamav(Debian 12) < 1.0.5+dfsg-1~deb12u1; = 1.0.1+dfsg-2; = 1.0.2+dfsg-1; = 1.0.2+dfsg-1~deb12u1 +4 more 1.0.5+dfsg-1~deb12u1 Fixed
debian/clamav(Debian 13) < 1.0.5+dfsg-1 1.0.5+dfsg-1 Fixed
debian/clamav(Debian 14) < 1.0.5+dfsg-1 1.0.5+dfsg-1 Fixed
ubuntu/clamav(Ubuntu 24.04) < 1.0.5+dfsg-1ubuntu1; = 1.0.2+dfsg-1ubuntu1; = 1.0.3+dfsg-2ubuntu1; = 1.0.4+dfsg-0ubuntu1 1.0.5+dfsg-1ubuntu1 Fixed
cisco ClamAV = 1.2.0; = 1.2.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/clamav(Debian:12) < 1.0.5+dfsg-1~deb12u1 1.0.5+dfsg-1~deb12u1
debian/clamav(Debian:12) = 1.0.1+dfsg-2 No fix listed
debian/clamav(Debian:12) = 1.0.2+dfsg-1 No fix listed
debian/clamav(Debian:12) = 1.0.2+dfsg-1~deb12u1 No fix listed
debian/clamav(Debian:12) = 1.0.3+dfsg-1 No fix listed
debian/clamav(Debian:12) = 1.0.3+dfsg-1~deb12u1 No fix listed
debian/clamav(Debian:12) = 1.0.3+dfsg-2 No fix listed
debian/clamav(Debian:12) = 1.0.4+dfsg-1 No fix listed
debian/clamav(Debian:13) < 1.0.5+dfsg-1 1.0.5+dfsg-1
debian/clamav(Debian:14) < 1.0.5+dfsg-1 1.0.5+dfsg-1
cisco ClamAV = 1.2.0 No fix listed
cisco ClamAV = 1.2.1 No fix listed
ubuntu/clamav(Ubuntu:24.04) < 1.0.5+dfsg-1ubuntu1 1.0.5+dfsg-1ubuntu1
clamav >= 1.0.0, < 1.0.5 1.0.5
clamav >= 1.2.0, < 1.2.2 1.2.2
alpine/clamav(Alpine:v3.19) >= 1.2.0, < 1.2.2-r0 1.2.2-r0
alpine/clamav(Alpine:v3.20) >= 1.2.0, < 1.2.2-r0 1.2.2-r0
alpine/clamav(Alpine:v3.21) >= 1.2.0, < 1.2.2-r0 1.2.2-r0
alpine/clamav(Alpine:v3.22) >= 1.2.0, < 1.2.2-r0 1.2.2-r0
alpine/clamav(Alpine:v3.23) >= 1.2.0, < 1.2.2-r0 1.2.2-r0
alpine/clamav(Alpine:v3.24) >= 1.2.0, < 1.2.2-r0 1.2.2-r0
ubuntu/clamav(Ubuntu:24.04) = 1.0.2+dfsg-1ubuntu1 No fix listed
ubuntu/clamav(Ubuntu:24.04) = 1.0.3+dfsg-2ubuntu1 No fix listed
ubuntu/clamav(Ubuntu:24.04) = 1.0.4+dfsg-0ubuntu1 No fix listed

References