CVEfocus › CVE database › CVE-2024-20506

CVE-2024-20506ClamAV Privilege Handling Escalation Vulnerability

CVSS 6.1 MediumEPSS 0.3% (higher than 15% of CVEs)Published 2024-09-04Updated 2025-11-03Assigner: cisco

A vulnerability in the ClamD service module of Clam AntiVirus (ClamAV) versions 1.4.0, 1.3.2 and prior versions, all 1.2.x versions, 1.0.6 and prior versions, all 0.105.x versions, all 0.104.x versions, and 0.103.11 and all prior versions could allow an authenticated, local attacker to corrupt critical system files. The vulnerability is due to allowing the ClamD process to write to its log file while privileged without checking if the logfile has been replaced with a symbolic link. An attacker could exploit this vulnerability if they replace the ClamD log file with a symlink to a critical system file and then find a way to restart the ClamD process. An exploit could allow the attacker to corrupt a critical system file by appending ClamD log messages after restart.

CWE-754

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
3Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04clamavFixed1.0.7+dfsg-0ubuntu0.24.04.1UBUNTU-CVE-2024-20506
Ubuntu 22.04clamavFixed0.103.12+dfsg-0ubuntu0.22.04.1UBUNTU-CVE-2024-20506
Ubuntu 20.04clamavFixed0.103.12+dfsg-0ubuntu0.20.04.1UBUNTU-CVE-2024-20506
Ubuntu 18.04clamavFix pending0.103.12+dfsg-0ubuntu0.18.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-20506
Ubuntu 16.04clamavFix pending0.103.12+dfsg-0ubuntu0.16.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-20506
Ubuntu 14.04clamavFix pendingUBUNTU-CVE-2024-20506
Debian 14clamavFixed1.4.1+dfsg-1DEBIAN-CVE-2024-20506
Debian 13clamavFixed1.4.1+dfsg-1DEBIAN-CVE-2024-20506
Debian 12clamavFixed1.0.7+dfsg-1~deb12u1DEBIAN-CVE-2024-20506
Alpine Linux 3.24clamavFixed1.3.2-r0ALPINE-CVE-2024-20506
Alpine Linux 3.23clamavFixed1.3.2-r0ALPINE-CVE-2024-20506
Alpine Linux 3.22clamavFixed1.3.2-r0ALPINE-CVE-2024-20506
Alpine Linux 3.21clamavFixed1.3.2-r0ALPINE-CVE-2024-20506

What the vendor says

As published in the CVE record by cisco, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.