{"id":"UBUNTU-CVE-2022-41751","details":"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.","modified":"2026-02-04T03:48:05.342507Z","published":"2022-10-17T18:15:00Z","related":["USN-6108-1"],"upstream":["CVE-2022-41751"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-41751"},{"type":"REPORT","url":"https://github.com/Matthias-Wandel/jhead/pull/57"},{"type":"REPORT","url":"https://github.com/Matthias-Wandel/jhead/commit/6985da52c9ad4f5f6c247269cb5508fae34a971c"},{"type":"REPORT","url":"https://github.com/Matthias-Wandel/jhead/commit/3fe905cf674f8dbac8a89e58cee1b4850abf9530"},{"type":"REPORT","url":"https://github.com/Matthias-Wandel/jhead/commit/ec67262b8e5a4b05d8ad6898a09f1dc3fc032062"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6108-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-41751"}],"affected":[{"package":{"name":"jhead","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/jhead@1:2.97-1+deb8u2ubuntu0.1~esm2?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.97-1+deb8u2ubuntu0.1~esm2"}]}],"versions":["1:2.97-1","1:2.97-1+deb8u1build0.14.04.1","1:2.97-1+deb8u2build0.14.04.1~esm1","1:2.97-1+deb8u2ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"jhead","binary_version":"1:2.97-1+deb8u2ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41751.json"}},{"package":{"name":"jhead","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/jhead@1:3.00-4+deb9u1ubuntu0.1~esm2?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-4+deb9u1ubuntu0.1~esm2"}]}],"versions":["1:3.00-1","1:3.00-2","1:3.00-3","1:3.00-4+deb9u1build0.16.04.1","1:3.00-4+deb9u1ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"jhead","binary_version":"1:3.00-4+deb9u1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41751.json"}},{"package":{"name":"jhead","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/jhead@1:3.00-8~ubuntu0.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-8~ubuntu0.2"}]}],"versions":["1:3.00-4","1:3.00-5","1:3.00-6","1:3.00-8~build0.18.04.1","1:3.00-8~ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"jhead","binary_version":"1:3.00-8~ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41751.json"}},{"package":{"name":"jhead","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/jhead@1:3.04-1ubuntu0.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.04-1ubuntu0.2"}]}],"versions":["1:3.03-3","1:3.04-1","1:3.04-1ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"jhead","binary_version":"1:3.04-1ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41751.json"}},{"package":{"name":"jhead","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/jhead@1:3.06.0.1-2ubuntu0.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.06.0.1-2ubuntu0.22.04.1"}]}],"versions":["1:3.04-6","1:3.06.0.1-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"jhead","binary_version":"1:3.06.0.1-2ubuntu0.22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41751.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}