portage-ng / portage / app-arch / sharutils / 4.15.2-r3
portage-ng glsa
2 advisories reference app-arch/sharutils · none place version 4.15.2-r3 in a vulnerable range
▸ GLSA 200504-06 sharutils: Insecure temporary file creation this version unaffected normal local 2005-04-06

The unshar utility is vulnerable to symlink attacks, potentially allowing a local user to overwrite arbitrary files.

Announced
2005-04-06
Revised
2005-04-06
Access
local
Bugs
#87939
Advisory
https://security.gentoo.org/glsa/200504-06

Affected packages

PackageArchVulnerableUnaffected
app-arch/sharutils*< 4.2.1-r11>= 4.2.1-r11

Background

sharutils is a collection of tools to deal with shar archives.

Description

Joey Hess has discovered that the program unshar, which is a part of sharutils, creates temporary files in a world-writable directory with predictable names.

Impact

A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When unshar is executed, this would result in the file being overwritten with the rights of the user running the utility, which could be the root user.

Workaround

There is no known workaround at this time.

Resolution

All sharutils users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/sharutils-4.2.1-r11"

References

▸ GLSA 200410-01 sharutils: Buffer overflows in shar.c and unshar.c this version unaffected normal remote 2004-10-01

sharutils contains two buffer overflow vulnerabilities that could lead to arbitrary code execution.

Announced
2004-10-01
Revised
2006-05-22 (revision 2)
Access
remote
Bugs
#65773
Advisory
https://security.gentoo.org/glsa/200410-01

Affected packages

PackageArchVulnerableUnaffected
app-arch/sharutils*<= 4.2.1-r9>= 4.2.1-r10

Background

sharutils contains utilities to manage shell archives.

Description

sharutils contains two buffer overflows. Ulf Harnhammar discovered a buffer overflow in shar.c, where the length of data returned by the wc command is not checked. Florian Schilhabel discovered another buffer overflow in unshar.c.

Impact

An attacker could exploit these vulnerabilities to execute arbitrary code as the user running one of the sharutils programs.

Workaround

There is no known workaround at this time.

Resolution

All sharutils users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=app-arch/sharutils-4.2.1-r10"
# emerge ">=app-arch/sharutils-4.2.1-r10"

References