portage-ng / portage / app-arch / xar / 1.8.0.0.498-r1
portage-ng glsa
1 advisory reference app-arch/xar · none place version 1.8.0.0.498-r1 in a vulnerable range
▸ GLSA 202405-19 xar: Unsafe Extraction this version unaffected normal remote 2024-05-07

A vulnerability has been discovered in xar, which can lead to privilege escalation.

Announced
2024-05-07
Revised
2024-05-07
Access
remote
Bugs
#820641
Advisory
https://security.gentoo.org/glsa/202405-19

Affected packages

PackageArchVulnerableUnaffected
app-arch/xar*< 1.8.0.0.487.100.1>= 1.8.0.0.487.100.1

Background

xar provides an easily extensible archive format.

Description

A vulnerability has been discovered in xar. Please review the CVE identifier referenced below for details.

Impact

xar allows for a forward-slash separated path to be specified in the file name property, e.g. <name>x/foo</name> – as long as it doesn’t traverse upwards, and the path exists within the current directory. This means an attacker can create a .xar file which contains both a directory symlink, and a file with a name property which points into the extracted symlink directory. By abusing symlink directories in this manner, an attacker can write arbitrary files to any directory on the filesystem – providing the user has permissions to write to it.

Workaround

There is no known workaround at this time.

Resolution

All xar users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/xar-1.8.0.0.487.100.1"

References