Description
Sharutils sharutils (unshar command) version 4.15.2 contains a Buffer Overflow vulnerability in Affected component on the file unshar.c at line 75, function looks_like_c_code. Failure to perform checking of the buffer containing input line. that can result in Could lead to code execution. This attack appear to be exploitable via Victim have to run unshar command on a specially crafted 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.15.2-3 | — |
| Debian 13 | sharutils | 1:4.15.2-3 | — |
| Debian 12 | sharutils | 1:4.15.2-3 | — |
| Debian 9 | sharutils | 1:4.15.2-2+deb9u1 | DSA-4167-1 |
| Debian 8 | sharutils | 1:4.14-2+deb8u1 | DSA-4167-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | sharutils | 1:4.15.2-1ubuntu0.1 | USN-3605-1 |
| Ubuntu 14.04 LTS | sharutils | 1:4.14-1ubuntu1.1 | USN-3605-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | sharutils | 4.15.2-6.9 | openSUSE-SU-2024:11380-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | sharutils | 4.15.2-21 | — |
| Azure Linux 2 (CBL-Mariner) | sharutils | 4.15.2-20 | — |
Advisories 3
- DSA-4167-1 sharutils - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-3605-1 sharutils vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2024:11380-1 sharutils-4.15.2-6.9 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- USN-3605-1 vendor-advisory
- DSA-4167 vendor-advisory
- 20180221 Sharutils 4.15.2 Heap-Buffer-Overflow mailing-list