GLSA 202309-04: RAR, UnRAR: Arbitrary File Overwrite

Severity:normal
Title:RAR, UnRAR: Arbitrary File Overwrite
Date:09/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.

Affected packages

Package Vulnerable Unaffected Architecture(s)
app-arch/unrar < 6.2.10 >= 6.2.10 All supported architectures
app-arch/rar < 6.23 >= 6.23 All supported architectures

Description

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.

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.

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

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-202309-04.xml

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.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!