Description
unshar (unshar.c) in sharutils 4.2.1 allows local users to overwrite arbitrary files via a symlink attack on the unsh.X temporary file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | sharutils | 1:4.2.1-13 | — |
| Debian 13 | sharutils | 1:4.2.1-13 | — |
| Debian 12 | sharutils | 1:4.2.1-13 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | sharutils | 4.2.1-22.2 | RHSA-2005:377 |
| RHEL 3 | sharutils | 4.2.1-16.2 | RHSA-2005:377 |
Advisories 1
- RHSA-2005:377 Red Hat Security Advisory: sharutils security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
References
- oval:org.mitre.oval:def:9613 vdb-entry signature
- https://bugzilla.ubuntu.com/show_bug.cgi?id=8459
- sharutils-temp-file-symlink(19957) vdb-entry
- 12981 vdb-entry
- USN-104-1 vendor-advisory
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302412
- RHSA-2005:377 vendor-advisory