Heap-based buffer overflow in jhead - CVE-2021-34055

 

Heap-based buffer overflow in jhead - CVE-2021-34055

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


Vulnerability identifier: #VU69875
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-34055
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to a boundary error within the Put16u() function in exif.c. A remote attacker can pass specially crafted image file to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

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


Affected software

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

How to mitigate CVE-2021-34055

Install update from vendor's website.

jhead - update to 3.08
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

External References

Related Security Bulletins