Skip to content
Fencer Vulns
high 7.8

CVE-2022-41751 json

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…

published 2022-10-17 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-44922

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 41%
public exploits
0
none known

Summary

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.

Patch / fix

  • jhead Debian 14, Debian 13, Debian 12 1:3.06.0.1-3

debian advisories DEBIAN-CVE-2022-41751

  • jhead Ubuntu 18.04 LTS 1:3.00-8~ubuntu0.2
  • jhead Ubuntu 20.04 LTS 1:3.04-1ubuntu0.2
  • jhead Ubuntu 22.04 LTS 1:3.06.0.1-2ubuntu0.22.04.1
  • jhead Ubuntu Pro 14.04 LTS 1:2.97-1+deb8u2ubuntu0.1~esm2
  • jhead Ubuntu Pro 16.04 LTS 1:3.00-4+deb9u1ubuntu0.1~esm2

ubuntu advisories UBUNTU-CVE-2022-41751

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • jhead openSUSE Tumbleweed 3.06.0.1-2.1
  • jhead Package Hub 15 SP5, openSUSE Leap 15.5 3.06.0.1-bp155.5.3.1
  • jhead Package Hub 15 SP4, openSUSE Leap 15.4 3.06.0.1-bp154.2.9.1
  • jhead Package Hub 15 SP4, openSUSE Leap 15.4 3.06.0.1-bp154.2.3.1
  • jhead Package Hub 15 SP3, openSUSE Leap 15.3 3.00-bp153.3.3.1

opensuse advisories openSUSE-SU-2024:12466-1openSUSE-SU-2023:0371-1openSUSE-SU-2023:0054-1openSUSE-SU-2022:10179-1openSUSE-SU-2022:10178-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-41751 updated cvss 8.8

jhead: arbitrary OS commands by placing them in a JPEG filename

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
17 mo ago

Exploit prediction

0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/Matthias-Wandel/jhead/pull/57 referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/Matthias-Wandel/jhead/blob/63ce118c6a59ea64ac357236a11a47aaf569d622/jhead.c#L788 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.