Description
Jhead 3.06.0.1 allows attackers to execute arbitrary OS commands by placing them in a JPEG filename and then using the regeneration -rgt50 option.
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 | jhead | 1:3.06.0.1-3 | — |
| Debian 13 | jhead | 1:3.06.0.1-3 | — |
| Debian 12 | jhead | 1:3.06.0.1-3 | — |
| Debian 11 | jhead | 1:3.04-6+deb11u1 | DSA-5294-1 |
| Debian 10 | jhead | 1:3.00-8+deb10u1 | DLA-3219-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | jhead | 1:3.06.0.1-2ubuntu0.22.04.1 | USN-6108-1 |
| Ubuntu 20.04 LTS | jhead | 1:3.04-1ubuntu0.2 | USN-6108-1 |
| Ubuntu 18.04 LTS | jhead | 1:3.00-8~ubuntu0.2 | USN-6108-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | jhead | 1:3.00-4+deb9u1ubuntu0.1~esm2 | USN-6108-1 |
| Ubuntu Pro 14.04 LTS | jhead | 1:2.97-1+deb8u2ubuntu0.1~esm2 | USN-6108-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP5 | jhead | 3.06.0.1-bp155.5.3.1 | openSUSE-SU-2023:0371-1 |
| SUSE Package Hub 15 SP4 | jhead | 3.06.0.1-bp154.2.3.1 | openSUSE-SU-2023:0054-1, openSUSE-SU-2022:10179-1 |
| SUSE Package Hub 15 SP3 | jhead | 3.00-bp153.3.3.1 | openSUSE-SU-2022:10178-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | jhead | 3.06.0.1-2.1 | openSUSE-SU-2024:12466-1 |
| openSUSE Leap 15.5 | jhead | 3.06.0.1-bp155.5.3.1 | openSUSE-SU-2023:0371-1 |
| openSUSE Leap 15.4 | jhead | 3.06.0.1-bp154.2.3.1 | openSUSE-SU-2023:0054-1, openSUSE-SU-2022:10179-1 |
| openSUSE Leap 15.3 | jhead | 3.00-bp153.3.3.1 | openSUSE-SU-2022:10178-1 |
Advisories 8
- USN-6108-1 Jhead vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DSA-5294-1 jhead - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3219-1 jhead - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2023:0054-1 Security update for jhead SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:10179-1 Security update for jhead SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12466-1 jhead-3.06.0.1-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:10178-1 Security update for jhead SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0371-1 Security update for jhead SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/Matthias-Wandel/jhead
- https://github.com/Matthias-Wandel/jhead/blob/63ce118c6a59ea64ac357236a11a47aaf569d622/jhead.c#L788
- https://github.com/Matthias-Wandel/jhead/pull/57
- FEDORA-2022-1d9133bc8e vendor-advisory
- FEDORA-2022-61ec901852 vendor-advisory
- FEDORA-2022-628829f0e6 vendor-advisory
- [debian-lts-announce] 20221204 [SECURITY] [DLA 3219-1] jhead security update mailing-list
- DSA-5294 vendor-advisory