CVE-2021-29458: Out-of-bounds read in Exiv2::Internal::CrwMap::encode
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. 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. The bug is fixed in version v0.27.4.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2021-29458?
CVE-2021-29458 is a vulnerability found in Exiv2, a command-line utility and C++ library for modifying image file metadata.
How severe is CVE-2021-29458?
CVE-2021-29458 has a severity rating of 5.5, which is considered medium.
What is the impact of CVE-2021-29458?
CVE-2021-29458 allows for an out-of-bounds read when Exiv2 is used to write metadata into a crafted image file.
Which software versions are affected by CVE-2021-29458?
Exiv2 versions up to and including v0.27.3 are affected by CVE-2021-29458.
How can I fix CVE-2021-29458?
To fix CVE-2021-29458, it is recommended to update Exiv2 to version 0.27.4 or later.