Jhead · Jhead · CVE-2022-41751
**Name of the Vulnerable Software and Affected Versions**
Jhead version 3.06.0.1
**Description**
The issue allows attackers to execute arbitrary OS commands by placing them in a JPEG filename and then using the regeneration -rgt50 option.
**Recommendations**
For Jhead version 3.06.0.1, consider avoiding the use of the regeneration -rgt50 option with untrusted JPEG filenames until a patch is available. As a temporary workaround, restrict the execution of OS commands from JPEG filenames to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.