Alerts This Week
Warning Icon 1 727
Alerts This Week
Warning Icon 1 727

Gentoo: GLSA-202309-04 Normal: RAR and UnRAR Overwrite Threat

gentoo
Calendar Grey September 17, 2023
Dist Gentoo Esm H88
In tackling a file substitution vulnerability in both RAR and UnRAR on Gentoo systems, we must emphasize the associated security implications that could arise.
An arbitrary file overwrite vulnerability has been discovered in RAR and UnRAR, potentially resulting in arbitrary code execution.

Summary

Due to an error in the validation of symbolic links within archives, RAR and UnRAR can potentially write files to a directory which is outside of the intended unpack directory.

Resolution

All RAR users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose ">=app-arch/rar-6.23"
All UnRAR users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose ">=app-arch/unrar-6.2.10"

References

[ 1 ] CVE-2022-30333 https://nvd.nist.gov/vuln/detail/CVE-2022-30333
[ 2 ] CVE-2023-40477 https://nvd.nist.gov/vuln/detail/CVE-2023-40477

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:
https://security.gentoo.org/glsa/202309-04
style>.gentoo_availability{display:block;}

Concerns

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users' machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org [4].

Severity: Normal
Title: RAR, UnRAR: Arbitrary File Overwrite
Date: September 17, 2023
Bugs: #843611, #849686, #912652
ID: 202309-04

Synopsis

An arbitrary file overwrite vulnerability has been discovered in RAR and UnRAR, potentially resulting in arbitrary code execution.

Background

RAR and UnRAR provide command line interfaces for compressing and decompressing RAR files.

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Affected Packages

Package Vulnerable Unaffected -------------- ------------ ------------ app-arch/rar < 6.23 >= 6.23 app-arch/unrar < 6.2.10 >= 6.2.10

Impact

If the user running RAR or UnRAR extracts a malicious archive, the archive could overwrite a file such as the user's shell initialization scripts, potentially resulting in arbitrary code execution in the context of that user.

Workaround

There is no known workaround at this time.

Your message here