CVE-2022-28550
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | jhead | Fix pending | UBUNTU-CVE-2022-28550 | |
| Ubuntu 26.04 | jhead | Under investigation | UBUNTU-CVE-2022-28550 | |
| Ubuntu 25.10 | jhead | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-28550 | |
| Ubuntu 24.04 | jhead | Under investigation | UBUNTU-CVE-2022-28550 | |
| Ubuntu 22.04 | jhead | Fix pending | UBUNTU-CVE-2022-28550 | |
| Ubuntu 20.04 | jhead | Fix pending | UBUNTU-CVE-2022-28550 | |
| Ubuntu 18.04 | jhead | Fix pending | UBUNTU-CVE-2022-28550 | |
| Ubuntu 16.04 | jhead | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-28550 | |
| Ubuntu 14.04 | jhead | Fix pending | UBUNTU-CVE-2022-28550 | |
| Debian 14 | jhead | Fixed | 1:3.08-1 | DEBIAN-CVE-2022-28550 |
| Debian 13 | jhead | Fixed | 1:3.08-1 | DEBIAN-CVE-2022-28550 |
| Debian 12 | jhead | Fix pending | DEBIAN-CVE-2022-28550 |
References
- https://github.com/Matthias-Wandel/jhead/issues/51
- https://github.com/Matthias-Wandel/jhead/commit/64894dbc7d8e1e232e85f1cab25c64290b2fc167
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.