GLSA-200411-29 : unarj: Long filenames buffer overflow and a path traversal vulnerability
Critical Nessus Plugin ID 15777
SynopsisThe remote Gentoo host is missing one or more security-related patches.
DescriptionThe remote host is affected by the vulnerability described in GLSA-200411-29 (unarj: Long filenames buffer overflow and a path traversal vulnerability)
unarj has a bounds checking vulnerability within the handling of long filenames in archives. It also fails to properly sanitize paths when extracting an archive (if the 'x' option is used to preserve paths).
An attacker could trigger a buffer overflow or a path traversal by enticing a user to open an archive containing specially crafted path names, potentially resulting in the overwrite of files or execution of arbitrary code with the permissions of the user running unarj.
There is no known workaround at this time.
SolutionAll unarj users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-arch/unarj-2.63a-r2'