Out-of-bounds read in ClamAV - CVE-2024-20505

 

Out-of-bounds read in ClamAV - CVE-2024-20505

Published: September 5, 2024


Vulnerability identifier: #VU96825
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-20505
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary condition within the PDF file parser. A remote attacker can pass a specially crafted PDF file to the antivirus, trigger an out-of-bounds read error and crash the antivirus engine.


Affected software

ClamAV
Gentoo Linux
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
Fedora
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 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
RSA Authentication Manager
Zimbra Collaboration
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-20505

Install updates from vendor's website.

ClamAV - addressed in versions 0.103.12, 1.0.7, 1.3.2, 1.4.1
RSA Authentication Manager - addressed in versions 8.7 SP2 Patch 5, 8.7 SP2 Patch 6
Zimbra Collaboration - update to 10.1.8
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