Vulnerability · Published Sep 4, 2024 · Assigned by cisco
CVE-2024-20506ClamAV Privilege Handling Escalation Vulnerability
Medium 6.1
In plain English
A medium-severity security flaw in ClamAV from Cisco. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | clamav | 1.3.2-r0 | ALPINE-CVE-2024-20506 |
| Alpine:v3.22 | clamav | 1.3.2-r0 | ALPINE-CVE-2024-20506 |
| Alpine:v3.23 | clamav | 1.3.2-r0 | ALPINE-CVE-2024-20506 |
| Alpine:v3.24 | clamav | 1.3.2-r0 | ALPINE-CVE-2024-20506 |
| Debian:12 | clamav | 1.0.7+dfsg-1~deb12u1 | DEBIAN-CVE-2024-20506 |
| Debian:13 | clamav | 1.4.1+dfsg-1 | DEBIAN-CVE-2024-20506 |
| Debian:14 | clamav | 1.4.1+dfsg-1 | DEBIAN-CVE-2024-20506 |
| Ubuntu:22.04:LTS | clamav | 0.103.12+dfsg-0ubuntu0.22.04.1 | USN-7011-1 |
| Ubuntu:22.04:LTS | clamav | 0.103.12+dfsg-0ubuntu0.22.04.1 | UBUNTU-CVE-2024-20506 |
| Ubuntu:24.04:LTS | clamav | 1.0.7+dfsg-0ubuntu0.24.04.1 | UBUNTU-CVE-2024-20506 |
| Ubuntu:24.04:LTS | clamav | 1.0.7+dfsg-0ubuntu0.24.04.1 | USN-7011-1 |
Affected products (as reported)
Weakness: CWE-754 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H