Heap-based buffer overflow in ClamAV - CVE-2022-20792

 

Heap-based buffer overflow in ClamAV - CVE-2022-20792

Published: May 4, 2022


Vulnerability identifier: #VU62803
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-20792
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in the signature database load module. A remote attacker can pass specially crafted data to the application, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

ClamAV
Gentoo Linux
SUSE Manager Server
SUSE Manager Proxy
SUSE Linux Enterprise Server
Ubuntu
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise High Performance Computing
openSUSE Leap
openEuler
clamav (Ubuntu package)
clamav-filesystem
clamav-data
clamd
clamav-update
clamav-milter
clamav-help
clamav-devel
clamav-debugsource
clamav-debuginfo
clamav
libfreshclam2-debuginfo
libfreshclam2
libclamav9-debuginfo
libclamav9
app-antivirus/clamav

How to mitigate CVE-2022-20792

Install updates from vendor's website.

ClamAV - addressed in versions 0.103.6, 0.104.3
clamav (Ubuntu package) - addressed in versions 0.103.6+dfsg0ubuntu0.16.04.1+esm1, 0.103.6+dfsg-0ubuntu0.18.04.1, 0.103.6+dfsg-0ubuntu0.20.04.1, 0.103.6+dfsg-0ubuntu0.21.10.1, 0.103.6+dfsg-0ubuntu0.22.04.1
clamav-filesystem - update to 0.103.6-3
clamav-data - update to 0.103.6-3
clamd - update to 0.103.6-3
clamav-update - update to 0.103.6-3
clamav-milter - update to 0.103.6-3
clamav-help - update to 0.103.6-3
clamav-devel - update to 0.103.6-3
clamav-debugsource - update to 0.103.6-3
clamav-debuginfo - update to 0.103.6-3
clamav - update to 0.103.6-3
clamav-debugsource - addressed in versions 0.103.6-3.18.1, 0.103.6-150000.3.38.1
clamav-debuginfo - addressed in versions 0.103.6-3.18.1, 0.103.6-150000.3.38.1
clamav - addressed in versions 0.103.6-3.18.1, 0.103.6-150000.3.38.1
libfreshclam2-debuginfo - update to 0.103.6-150000.3.38.1
libfreshclam2 - update to 0.103.6-150000.3.38.1
libclamav9-debuginfo - update to 0.103.6-150000.3.38.1
libclamav9 - update to 0.103.6-150000.3.38.1
clamav-devel - update to 0.103.6-150000.3.38.1
app-antivirus/clamav - update to 0.103.7

External References

Related Security Bulletins