Vulnerability · Published Jun 13, 2023 · Assigned by mitre
CVE-2022-28550
Critical 9.8
In plain English
A critical-severity out-of-bounds write in the jhead package (Debian). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | jhead | no fix listed | DEBIAN-CVE-2022-28550 |
| Debian:13 | jhead | 1:3.08-1 | DEBIAN-CVE-2022-28550 |
| Debian:14 | jhead | 1:3.08-1 | DEBIAN-CVE-2022-28550 |
| Ubuntu:24.04:LTS | jhead | no fix listed | UBUNTU-CVE-2022-28550 |
| Ubuntu:25.10 | jhead | no fix listed | UBUNTU-CVE-2022-28550 |
| Ubuntu:26.04:LTS | jhead | no fix listed | UBUNTU-CVE-2022-28550 |
| Ubuntu:26.10 | jhead | no fix listed | UBUNTU-CVE-2022-28550 |
Affected products (as reported)
Weakness: CWE-787, CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H