CVE-2022-41751
Jhead 3.06.0.1 allows attackers to execute arbitrary OS commands by placing them in a JPEG...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
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.
- Record
CVE-2022-41751- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
CVE List
7.8
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.
- Record
CVE-2022-41751- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
EUVDEUVD-2022-44922
7.8
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.
- Record
EUVD-2022-44922- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8m3f-vphm-cjhj
7.8
Jhead 3.06.0.1 allows attackers to execute arbitrary OS commands by placing them in a JPEG...
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.
- Record
GHSA-8m3f-vphm-cjhj- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
OSV
7.8
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.
- Record
CVE-2022-41751- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-41751
7.8
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.
- Record
DEBIAN-CVE-2022-41751- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
Show 7 moreShow less
OSVUBUNTU-CVE-2022-41751
7.8
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.
- Record
UBUNTU-CVE-2022-41751- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2022:10178-1 No score
Security update for jhead
This update for jhead fixes the following issues:
- CVE-2022-41751: Fixed shell injection via filenames (boo#1204409)
- Record
openSUSE-SU-2022:10178-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2022:10179-1 No score
Security update for jhead
This update for jhead fixes the following issues:
- CVE-2022-41751: Fixed shell injection via filenames (boo#1204409)
- Record
openSUSE-SU-2022:10179-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0054-1 No score
Security update for jhead
This update for jhead fixes the following issues:
- Fixed autorotation problem caused by CVE-2022-41751 patch. [boo#1207150]
- Record
openSUSE-SU-2023:0054-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0371-1 No score
Security update for jhead
This update for jhead fixes the following issues:
- Fixed autorotation problem caused by CVE-2022-41751 patch. [boo#1207150]
- Record
openSUSE-SU-2023:0371-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12466-1 No score
jhead-3.06.0.1-2.1 on GA media
These are all security issues fixed in the jhead-3.06.0.1-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12466-1- Updated
- 2026-11-02
OSVUSN-6108-1 No score
Jhead vulnerabilities
It was discovered that Jhead did not properly handle certain crafted images while rotating them. An attacker could possibly use this issue to crash Jhead, resulting in a denial of service. (CVE-2021-34055)
Kyle Brown discovered that Jhead did not properly handle certain crafted images while regenerating the Exif thumbnail. An attacker could possibly use this issue to execute arbitrary commands. (CVE-2022-41751)
- Record
USN-6108-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
jheadDebian:12 |
before 1:3.06.0.1-3 | 1:3.06.0.1-3 |
jheadDebian:13 |
before 1:3.06.0.1-3 | 1:3.06.0.1-3 |
jheadDebian:14 |
before 1:3.06.0.1-3 | 1:3.06.0.1-3 |
jheadDebian:10 From an advisory covering 2 CVEs |
before 1:3.00-8+deb10u1, plus listed versions 1:3.00-8 |
1:3.00-8+deb10u1 |
jheadDebian:11 From an advisory covering 2 CVEs |
before 1:3.04-6+deb11u1, plus listed versions 1:3.04-6 |
1:3.04-6+deb11u1 |
jheadUbuntu:Pro:14.04:LTS |
before 1:2.97-1+deb8u2ubuntu0.1~esm2, plus listed versions 1:2.97-11:2.97-1+deb8u1build0.14.04.11:2.97-1+deb8u2build0.14.04.1~esm11:2.97-1+deb8u2ubuntu0.1~esm1 |
1:2.97-1+deb8u2ubuntu0.1~esm2 |
jheadUbuntu:Pro:16.04:LTS |
before 1:3.00-4+deb9u1ubuntu0.1~esm2, plus listed versions 1:3.00-11:3.00-21:3.00-31:3.00-4+deb9u1build0.16.04.11:3.00-4+deb9u1ubuntu0.1~esm1 |
1:3.00-4+deb9u1ubuntu0.1~esm2 |
jheadUbuntu:18.04:LTS |
before 1:3.00-8~ubuntu0.2, plus listed versions 1:3.00-41:3.00-51:3.00-61:3.00-8~build0.18.04.11:3.00-8~ubuntu0.1 |
1:3.00-8~ubuntu0.2 |
jheadUbuntu:20.04:LTS |
before 1:3.04-1ubuntu0.2, plus listed versions 1:3.03-31:3.04-11:3.04-1ubuntu0.1 |
1:3.04-1ubuntu0.2 |
jheadUbuntu:22.04:LTS |
before 1:3.06.0.1-2ubuntu0.22.04.1, plus listed versions 1:3.04-61:3.06.0.1-2 |
1:3.06.0.1-2ubuntu0.22.04.1 |
Show 14 moreShow less
| Package | Affected | Fixed |
|---|---|---|
jheadUbuntu:Pro:14.04:LTS From an advisory covering 2 CVEs |
before 1:2.97-1+deb8u2ubuntu0.1~esm2, plus listed versions 1:2.97-11:2.97-1+deb8u1build0.14.04.11:2.97-1+deb8u2build0.14.04.1~esm11:2.97-1+deb8u2ubuntu0.1~esm1 |
1:2.97-1+deb8u2ubuntu0.1~esm2 |
jheadUbuntu:Pro:16.04:LTS From an advisory covering 2 CVEs |
before 1:3.00-4+deb9u1ubuntu0.1~esm2, plus listed versions 1:3.00-11:3.00-21:3.00-31:3.00-4+deb9u1build0.16.04.11:3.00-4+deb9u1ubuntu0.1~esm1 |
1:3.00-4+deb9u1ubuntu0.1~esm2 |
jheadUbuntu:18.04:LTS From an advisory covering 2 CVEs |
before 1:3.00-8~ubuntu0.2, plus listed versions 1:3.00-41:3.00-51:3.00-61:3.00-8~build0.18.04.11:3.00-8~ubuntu0.1 |
1:3.00-8~ubuntu0.2 |
jheadUbuntu:20.04:LTS From an advisory covering 2 CVEs |
before 1:3.04-1ubuntu0.2, plus listed versions 1:3.03-31:3.04-11:3.04-1ubuntu0.1 |
1:3.04-1ubuntu0.2 |
jheadUbuntu:22.04:LTS From an advisory covering 2 CVEs |
before 1:3.06.0.1-2ubuntu0.22.04.1, plus listed versions 1:3.04-61:3.06.0.1-2 |
1:3.06.0.1-2ubuntu0.22.04.1 |
jheadSUSE:Package Hub 15 SP3 |
before 3.00-bp153.3.3.1 | 3.00-bp153.3.3.1 |
jheadopenSUSE:Leap 15.3 |
before 3.00-bp153.3.3.1 | 3.00-bp153.3.3.1 |
jheadSUSE:Package Hub 15 SP4 |
before 3.06.0.1-bp154.2.3.1 | 3.06.0.1-bp154.2.3.1 |
jheadopenSUSE:Leap 15.4 |
before 3.06.0.1-bp154.2.3.1 | 3.06.0.1-bp154.2.3.1 |
jheadSUSE:Package Hub 15 SP4 |
before 3.06.0.1-bp154.2.9.1 | 3.06.0.1-bp154.2.9.1 |
jheadopenSUSE:Leap 15.4 |
before 3.06.0.1-bp154.2.9.1 | 3.06.0.1-bp154.2.9.1 |
jheadSUSE:Package Hub 15 SP5 |
before 3.06.0.1-bp155.5.3.1 | 3.06.0.1-bp155.5.3.1 |
jheadopenSUSE:Leap 15.5 |
before 3.06.0.1-bp155.5.3.1 | 3.06.0.1-bp155.5.3.1 |
jheadopenSUSE:Tumbleweed |
before 3.06.0.1-2.1 | 3.06.0.1-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-41751 is a high vulnerability (CVSS 7.8) in Jhead Project Jhead, published October 17, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.48%, the 41st percentile. Fixed in jhead 1:3.06.0.1-3.
References
github.com/Matthias-Wandel/jhead
github.com/Matthias-Wandel/jhead/blob/63ce118c6a59ea64ac357236a11a47aaf569d622/jhead.c
github.com/Matthias-Wandel/jhead/pull/57
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EG26AD7KJAY5B6L6OERSGL4FRXJE3GOB
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TAVB3ZX7E5ULEXESU5NXZIAHY6CVGCHB
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NM6FET4ZNWV4EQGKZTLZFWTNVODGVOK
Show 23 moreShow less
lists.debian.org/debian-lts-announce/2022/12/msg00004.html
debian.org/security/2022/dsa-5294
nvd.nist.gov/vuln/detail/CVE-2022-41751
lists.fedoraproject.org/archives/list/[email protected]/message/5NM6FET4ZNWV4EQGKZTLZFWTNVODGVOK
lists.fedoraproject.org/archives/list/[email protected]/message/EG26AD7KJAY5B6L6OERSGL4FRXJE3GOB
lists.fedoraproject.org/archives/list/[email protected]/message/TAVB3ZX7E5ULEXESU5NXZIAHY6CVGCHB
github.com/advisories/GHSA-8m3f-vphm-cjhj
github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41751.json
security-tracker.debian.org/tracker/CVE-2022-41751
ubuntu.com/security/CVE-2022-41751
github.com/Matthias-Wandel/jhead/commit/6985da52c9ad4f5f6c247269cb5508fae34a971c
github.com/Matthias-Wandel/jhead/commit/3fe905cf674f8dbac8a89e58cee1b4850abf9530
github.com/Matthias-Wandel/jhead/commit/ec67262b8e5a4b05d8ad6898a09f1dc3fc032062
ubuntu.com/security/notices/USN-6108-1
cve.org/CVERecord?id=CVE-2022-41751
ubuntu.com/security/CVE-2021-34055
lists.opensuse.org/archives/list/[email protected]/thread/HFMTRO5RSDHT5PY4FQHOWNZRZQHNYXPB
bugzilla.suse.com/1204409
suse.com/security/cve/CVE-2022-41751
lists.opensuse.org/archives/list/[email protected]/thread/SYRTRE3WPQSFOZ2DYZDAYDI3Q7I53AB6
lists.opensuse.org/archives/list/[email protected]/thread/CYBVUZVIEIGVABNKE655UZMRZXPY7BPJ
bugzilla.suse.com/1207150
lists.opensuse.org/archives/list/[email protected]/thread/5IWSVTWO7VWRRJGJWKXBTVIMTVRSDRBK