Description
Matthias-Wandel/jhead jhead 3.06 is vulnerable to Buffer Overflow via shellescape(), jhead.c, jhead. jhead copies strings to a stack buffer when it detects a &i or &o. However, jhead does not check the boundary of the stack buffer. As a result, there will be a stack buffer overflow problem when multiple `&i` or `&o` are given.
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.08-1 | — |
| Debian 13 | jhead | 1:3.08-1 | — |
| Debian 12 | jhead | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | jhead | No fix yet | — |
| Ubuntu 26.04 LTS | jhead | No fix yet | — |
| Ubuntu 25.10 | jhead | No fix yet | — |
| Ubuntu 24.04 LTS | jhead | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | jhead | No fix yet | — |
| Ubuntu Pro 20.04 LTS | jhead | No fix yet | — |
| Ubuntu Pro 18.04 LTS | jhead | No fix yet | — |
| Ubuntu Pro 16.04 LTS | jhead | No fix yet | — |
| Ubuntu Pro 14.04 LTS | jhead | No fix yet | — |