CVE-2022-41751 Command injection in n/a

High 7.8 Published Updated

Attackers can execute arbitrary OS commands via malicious JPEG filenames when using the regeneration option in Jhead.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-41751?

CVE-2022-41751 is a high-severity command injection vulnerability in Debian Debian Linux, published on 17 Oct 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-78

Which versions are affected by CVE-2022-41751?

It affects 3 products.

Linux distribution packages (9)
jhead SUSE:Package Hub 15 SP3All versions3.00-bp153.3.3.1
jhead SUSE:Package Hub 15 SP4All versions3.06.0.1-bp154.2.3.1
jhead SUSE:Package Hub 15 SP4All versions3.06.0.1-bp154.2.9.1
jhead SUSE:Package Hub 15 SP5All versions3.06.0.1-bp155.5.3.1
jhead openSUSE:Leap 15.3All versions3.00-bp153.3.3.1
jhead openSUSE:Leap 15.4All versions3.06.0.1-bp154.2.3.1
jhead openSUSE:Leap 15.4All versions3.06.0.1-bp154.2.9.1
jhead openSUSE:Leap 15.5All versions3.06.0.1-bp155.5.3.1
jhead openSUSE:TumbleweedAll versions3.06.0.1-2.1

Products include Debian Debian Linux, Fedoraproject Fedora, Jhead Project Jhead.

How do I fix CVE-2022-41751?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-41751 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-41751 exists.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-41751, GHSA-8m3f-vphm-cjhj, UBUNTU-CVE-2022-41751, openSUSE-SU-2022:10178-1, openSUSE-SU-2022:10179-1, openSUSE-SU-2023:0054-1 and 2 more.

Is CVE-2022-41751 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free