Description
Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.
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-11 | — |
| Debian 13 | sharutils | 1:4.2.1-11 | — |
| Debian 12 | sharutils | 1:4.2.1-11 | — |
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
- OpenPKG-SA-2004.011 vendor-advisory
- FLSA:2155 vendor-advisory
- oval:org.mitre.oval:def:11722 vdb-entry signature
- 10066 vdb-entry
- sharutils-shar-bo(15759) vdb-entry
- 20040406 GNU Sharutils buffer overflow vulnerability. mailing-list
- RHSA-2005:377 vendor-advisory