OS Command Injection in jhead - CVE-2022-41751

 

OS Command Injection in jhead - CVE-2022-41751

Published: December 5, 2022 / Updated: June 8, 2023


Vulnerability identifier: #VU69876
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-41751
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when processing filenames of JPEG images. A remote unauthenticated attacker can pass specially crafted filename to the application and execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

jhead
Debian Linux
Fedora
Ubuntu
jhead (Ubuntu package)
jhead (Debian package)
jhead

How to mitigate CVE-2022-41751

Install update from vendor's website.

jhead (Ubuntu package) - addressed in versions Ubuntu Pro, 1:3.00-8~ubuntu0.2, 1:3.04-1ubuntu0.2, 1:3.06.0.1-2ubuntu0.22.04.1, 1:3.06.0.1-2ubuntu0.22.10.1
jhead (Debian package) - update to 1:3.04-6+deb11u1
jhead - addressed in versions 3.06.0.1-5.el7, 3.06.0.1-5.el8, 3.06.0.1-5.el9, 3.06.0.1-5.fc35, 3.06.0.1-5.fc36, 3.06.0.1-5.fc37

External References

Related Security Bulletins