Description
Multiple buffer overflows in sharutils 4.2.1 and earlier may allow attackers to execute arbitrary code via (1) long output from wc to shar, or (2) unknown vectors in unshar.
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-12 | — |
| Debian 13 | sharutils | 1:4.2.1-12 | — |
| Debian 12 | sharutils | 1:4.2.1-12 | — |
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
- FLSA:2155 vendor-advisory
- GLSA-200410-01 vendor-advisory
- 11298 vdb-entry
- oval:org.mitre.oval:def:11093 vdb-entry signature
- RHSA-2005:377 vendor-advisory