UNIX symbolic link following in ClamAV - CVE-2024-20506

 

UNIX symbolic link following in ClamAV - CVE-2024-20506

Published: September 5, 2024


Vulnerability identifier: #VU96824
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-20506
CWE-ID: CWE-61
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to corrupt system files.

The vulnerability exists due to a symlink following issue within the logging module. A local user with existing access to the 'clamd' or 'freshclam' services can corrupt system files and perform a denial of service (DoS) attack.


Affected software

ClamAV
Gentoo Linux
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
Fedora
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Server 15 SP4 LTSS
SUSE Linux Enterprise Desktop 15 SP4 LTSS
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
clamav (Ubuntu package)
clamav-devel
clamav-help
clamav-filesystem
clamav-data
clamd
clamav-update
clamav-milter
clamav-debugsource
clamav-debuginfo
clamav
libfreshclam2-debuginfo
libclamav9
libfreshclam2
libclamav9-debuginfo
app-antivirus/clamav
clamav-milter-debuginfo
libclammspack0
clamav-docs-html
libclamav12-debuginfo
libfreshclam3-debuginfo
libclammspack0-debuginfo
libfreshclam3
libclamav12

How to mitigate CVE-2024-20506

Install updates from vendor's website.

ClamAV - addressed in versions 0.103.12, 1.0.7, 1.3.2, 1.4.1
clamav (Ubuntu package) - addressed in versions Ubuntu Pro, 0.103.12+dfsg-0ubuntu0.20.04.1, 0.103.12+dfsg-0ubuntu0.22.04.1, 1.0.7+dfsg-0ubuntu0.24.04.1
clamav-devel - update to 0.103.12-1
clamav-help - update to 0.103.12-1
clamav-filesystem - update to 0.103.12-1
clamav-data - update to 0.103.12-1
clamd - update to 0.103.12-1
clamav-update - update to 0.103.12-1
clamav-milter - update to 0.103.12-1
clamav-debugsource - update to 0.103.12-1
clamav-debuginfo - update to 0.103.12-1
clamav - update to 0.103.12-1
clamav-debuginfo - addressed in versions 0.103.12-3.33.1, 0.103.12-150000.3.53.1, 0.103.12-150600.18.3.1, 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
clamav-debugsource - addressed in versions 0.103.12-3.33.1, 0.103.12-150000.3.53.1, 0.103.12-150600.18.3.1, 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
clamav - addressed in versions 0.103.12-3.33.1, 0.103.12-150000.3.53.1, 0.103.12-150600.18.3.1, 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
libfreshclam2-debuginfo - addressed in versions 0.103.12-150000.3.53.1, 0.103.12-150600.18.3.1
libclamav9 - addressed in versions 0.103.12-150000.3.53.1, 0.103.12-150600.18.3.1
libfreshclam2 - addressed in versions 0.103.12-150000.3.53.1, 0.103.12-150600.18.3.1
libclamav9-debuginfo - addressed in versions 0.103.12-150000.3.53.1, 0.103.12-150600.18.3.1
clamav-devel - addressed in versions 0.103.12-150000.3.53.1, 0.103.12-150600.18.3.1, 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
clamav - addressed in versions 1.0.7-1.el8, 1.0.7-1.el9, 1.0.7-1.fc39, 1.0.7-1.fc40, 1.0.7-1.fc41
app-antivirus/clamav - update to 1.4.1
clamav-milter-debuginfo - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
libclammspack0 - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
clamav-docs-html - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
libclamav12-debuginfo - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
libfreshclam3-debuginfo - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
libclammspack0-debuginfo - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
libfreshclam3 - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
clamav-milter - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1
libclamav12 - addressed in versions 1.4.2-3.36.1, 1.4.2-150200.8.3.1, 1.4.2-150600.18.6.1

External References

Related Security Bulletins