Heap-based buffer overflow in Exiv2 - CVE-2021-29457

 

Heap-based buffer overflow in Exiv2 - CVE-2021-29457

Published: August 17, 2021


Vulnerability identifier: #VU55920
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-29457
CWE-ID:
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Exiv2
Software vendor:
GNU

Description

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

The vulnerability exists due to a boundary error. A remote attacker can trick the victim top open a specially crafted image, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Note that this bug is only triggered when _writing_ the metadata, which is a less frequently used Exiv2 operation than _reading_ the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`.


Remediation

Install updates from vendor's website.

External links