Skip to content
OpenAdvisories
Medium ALAS2-2023-2215 2 CVEs

Moderate: exiv2 security update (Amazon Linux 2)

Published Aug 17, 2023 · Updated Aug 23, 2023

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2021-29464: Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, 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. CVE-2021-29463: 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.

Fixed packages 5

ReleasePackageFixed in
Amazon Linux · 2 exiv2 0:0.27.0-4.amzn2.0.2
Amazon Linux · 2 exiv2-debuginfo 0:0.27.0-4.amzn2.0.2
Amazon Linux · 2 exiv2-devel 0:0.27.0-4.amzn2.0.2
Amazon Linux · 2 exiv2-doc 0:0.27.0-4.amzn2.0.2
Amazon Linux · 2 exiv2-libs 0:0.27.0-4.amzn2.0.2

Vulnerabilities 2

  • Low 3.3

    Out-of-bounds read in Exiv2::WebPImage::doWriteMetadata

    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 m…

  • Low 3.3

    Heap buffer overflow in Exiv2::Jp2Image::encodeJp2Header

    Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metad…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2021-29463.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2021-29464.html