Improper Validation of Array Index in WinRAR - CVE-2023-40477
Published: August 19, 2023 / Updated: June 14, 2024
Vulnerability identifier: #VU79711
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-40477
CWE-ID: CWE-129
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vulnerability details
The vulnerability allows a remote attacker to compromise the affected system.
The vulnerability exists due to improper validation of array index when processing recovery volumes. A remote attacker can trick the victim to open a specially crafted archive and execute arbitrary code on the system.
Affected software
WinRAR
Gentoo Linux
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 Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
Fedora
SUSE Enterprise Storage
Debian Linux
SUSE Linux Enterprise Server 15 SP1 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
Basesystem Module
openSUSE Leap
Ubuntu
Oracle Solaris
libclamunrar (Debian package)
unrar-nonfree (Debian package)
unrar (Ubuntu package)
libunrar5 (Ubuntu package)
rar (Ubuntu package)
rar (Debian package)
clamav
clamav-debugsource
clamav-debuginfo
clamav-devel
libfreshclam2
libclamav9
libfreshclam2-debuginfo
libclamav9-debuginfo
app-antivirus/clamav
app-arch/unrar
app-arch/rar
libclamunrar9 (Ubuntu package)
clamav (Ubuntu package)
libclamunrar11 (Ubuntu package)
RSA Authentication Manager
Gentoo Linux
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 Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
Fedora
SUSE Enterprise Storage
Debian Linux
SUSE Linux Enterprise Server 15 SP1 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
Basesystem Module
openSUSE Leap
Ubuntu
Oracle Solaris
libclamunrar (Debian package)
unrar-nonfree (Debian package)
unrar (Ubuntu package)
libunrar5 (Ubuntu package)
rar (Ubuntu package)
rar (Debian package)
clamav
clamav-debugsource
clamav-debuginfo
clamav-devel
libfreshclam2
libclamav9
libfreshclam2-debuginfo
libclamav9-debuginfo
app-antivirus/clamav
app-arch/unrar
app-arch/rar
libclamunrar9 (Ubuntu package)
clamav (Ubuntu package)
libclamunrar11 (Ubuntu package)
RSA Authentication Manager
How to mitigate CVE-2023-40477
Install updates from vendor's website.
WinRAR - update to 6.23
libclamunrar (Debian package) - update to 0.103.10-0+deb10u1
unrar-nonfree (Debian package) - update to 1:5.6.6-1+deb10u4
unrar (Ubuntu package) - addressed in versions 1:5.6.6-2ubuntu0.1, 1:6.1.5-1ubuntu0.1
libunrar5 (Ubuntu package) - addressed in versions 1:5.6.6-2ubuntu0.1, 1:6.1.5-1ubuntu0.1
rar (Ubuntu package) - addressed in versions 2:6.23-1~20.04.1, 2:6.23-1~22.04.1
rar (Debian package) - update to 2:6.23-1~deb10u1
clamav - addressed in versions 0.103.10-1.el7, 0.103.10-1.el8, 0.103.10-1.fc37
clamav-debugsource - addressed in versions 0.103.11-3.30.1, 0.103.11-150000.3.50.1
clamav - addressed in versions 0.103.11-3.30.1, 0.103.11-150000.3.50.1
clamav-debuginfo - addressed in versions 0.103.11-3.30.1, 0.103.11-150000.3.50.1
clamav-devel - update to 0.103.11-150000.3.50.1
libfreshclam2 - update to 0.103.11-150000.3.50.1
libclamav9 - update to 0.103.11-150000.3.50.1
libfreshclam2-debuginfo - update to 0.103.11-150000.3.50.1
libclamav9-debuginfo - update to 0.103.11-150000.3.50.1
RSA Authentication Manager - addressed in versions 8.7 SP1 Patch 3, 8.7 SP2 Patch 1
Oracle Solaris - update to 11.4 SRU 62
app-antivirus/clamav - update to 1.4.1
app-arch/unrar - update to 6.2.10
app-arch/rar - update to 6.23
libclamunrar9 (Ubuntu package) - addressed in versions 0.103.11-0ubuntu0.20.04.1, 0.103.11-0ubuntu0.22.04.1, 0.103.11-0ubuntu0.23.04.1
clamav (Ubuntu package) - addressed in versions 0.103.11+dfsg-0ubuntu0.20.04.1, 0.103.11+dfsg-0ubuntu0.22.04.1, 0.103.11+dfsg-0ubuntu0.23.04.1, 1.0.4+dfsg-0ubuntu0.23.10.1
libclamunrar11 (Ubuntu package) - update to 1.0.4-0ubuntu0.23.10.1
libclamunrar (Debian package) - update to 0.103.10-0+deb10u1
unrar-nonfree (Debian package) - update to 1:5.6.6-1+deb10u4
unrar (Ubuntu package) - addressed in versions 1:5.6.6-2ubuntu0.1, 1:6.1.5-1ubuntu0.1
libunrar5 (Ubuntu package) - addressed in versions 1:5.6.6-2ubuntu0.1, 1:6.1.5-1ubuntu0.1
rar (Ubuntu package) - addressed in versions 2:6.23-1~20.04.1, 2:6.23-1~22.04.1
rar (Debian package) - update to 2:6.23-1~deb10u1
clamav - addressed in versions 0.103.10-1.el7, 0.103.10-1.el8, 0.103.10-1.fc37
clamav-debugsource - addressed in versions 0.103.11-3.30.1, 0.103.11-150000.3.50.1
clamav - addressed in versions 0.103.11-3.30.1, 0.103.11-150000.3.50.1
clamav-debuginfo - addressed in versions 0.103.11-3.30.1, 0.103.11-150000.3.50.1
clamav-devel - update to 0.103.11-150000.3.50.1
libfreshclam2 - update to 0.103.11-150000.3.50.1
libclamav9 - update to 0.103.11-150000.3.50.1
libfreshclam2-debuginfo - update to 0.103.11-150000.3.50.1
libclamav9-debuginfo - update to 0.103.11-150000.3.50.1
RSA Authentication Manager - addressed in versions 8.7 SP1 Patch 3, 8.7 SP2 Patch 1
Oracle Solaris - update to 11.4 SRU 62
app-antivirus/clamav - update to 1.4.1
app-arch/unrar - update to 6.2.10
app-arch/rar - update to 6.23
libclamunrar9 (Ubuntu package) - addressed in versions 0.103.11-0ubuntu0.20.04.1, 0.103.11-0ubuntu0.22.04.1, 0.103.11-0ubuntu0.23.04.1
clamav (Ubuntu package) - addressed in versions 0.103.11+dfsg-0ubuntu0.20.04.1, 0.103.11+dfsg-0ubuntu0.22.04.1, 0.103.11+dfsg-0ubuntu0.23.04.1, 1.0.4+dfsg-0ubuntu0.23.10.1
libclamunrar11 (Ubuntu package) - update to 1.0.4-0ubuntu0.23.10.1
Links to Public Exploits and PoC-codes
External References
Related Security Bulletins
- Remote code execution in WinRAR
- Fedora 37 update for clamav
- Fedora EPEL 8 update for clamav
- Fedora EPEL 7 update for clamav
- Gentoo update for RAR, UnRAR
- Oracle Solaris update for thrid-party components
- SUSE update for clamav
- SUSE update for clamav
- Ubuntu update for libclamunrar
- Ubuntu update for clamav
- Ubuntu update for unrar-nonfree
- Ubuntu update for rar
- RSA Authentication Manager update for third-party components
- Gentoo update for ClamAV
- Debian update for unrar-nonfree
- Debian update for rar
- Debian update for libclamunrar