CVE-2024-20506: ClamAV ClamD - Privilege Escalation
- Cve: CVE-2024-20506
- Name: ClamAV ClamD - Privilege Escalation
- 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.
- Impact: Local attackers can corrupt critical system files, potentially leading to system instability or privilege escalation.
- Remediation: Update to the latest version of ClamAV where this issue is fixed, or apply patches that add symlink checks before writing to log files.
- Vulnerability type: privilege_escalation
- Vulnerability impact: file_system_write, privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker needs to replace log file with a symlink and restart ClamD
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
- Epss score: 0.00318
- Epss percentile: 0.2493
- Assignee: [email protected]
- Published at: 2024-09-04T22:15:04Z
- Age in days: 811
- Modified at: 2026-06-17T07:07:27Z
- Patch available: yes
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-20506
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-754 | Improper Check for Unusual or Exceptional Conditions |
References
| Url | Source | Tags |
|---|---|---|
| https://blog.clamav.net/2024/09/clamav-141-132-107-and-010312-security.html | nvd | Release Notes |
| https://lists.debian.org/debian-lts-announce/2024/12/msg00004.html | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| clamav:clamav | = 1.4.0; >= 1.2.0, < 1.3.2; >= 0.104.0, < 1.0.7; < 0.103.12 | no | nvd | /v1/products/clamav/clamav |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 1985
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports