Skip to content
OpenAdvisories
Medium RLSA-2021:4173 12 CVEs

Moderate: exiv2 security, bug fix, and enhancement update

Published Nov 9, 2021 · Updated Feb 4, 2026

Summary

Exiv2 is a C++ library to access image metadata, supporting read and write access to the Exif, IPTC and XMP metadata, Exif MakerNote support, extract and delete methods for Exif thumbnails, classes to access Ifd, and support for various image formats.

The following packages have been upgraded to a later upstream version: exiv2 (0.27.4). (BZ#1989860)

Security Fix(es):

* exiv2: Heap-based buffer overflow in Jp2Image::readMetadata() (CVE-2021-3482)

* exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29457)

* exiv2: Out-of-bounds read in Exiv2::Internal::CrwMap::encode (CVE-2021-29458)

* exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29464)

* exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29470)

* exiv2: Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29473)

* exiv2: Integer overflow in CrwMap:encode0x1810 leading to heap-based buffer overflow and DoS (CVE-2021-31292)

* exiv2: Out-of-bounds read in Exiv2::WebPImage::doWriteMetadata (CVE-2021-29463)

* exiv2: Use of uninitialized memory in isWebPType() may lead to information leak (CVE-2021-29623)

* exiv2: DoS due to quadratic complexity in ProcessUTF8Portion (CVE-2021-32617)

* exiv2: Out-of-bounds read in Exiv2::Jp2Image::printStructure (CVE-2021-37618)

* exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-37619)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.

Fixed packages 1

ReleasePackageFixed in
Rocky Linux · 8 exiv2 0:0.27.4-5.el8

Vulnerabilities 12

  • High 7.5

    An integer overflow in CrwMap::encode0x1810 of Exiv2 0.27.3 allows attackers to trigger a heap-based buffer overflow an…

  • Medium 4.7

    Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header

    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…

  • Medium 4.7

    Denial of service in Exiv2

    Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An inefficient algorithm (quadratic complexity) was found in Exiv2 versions v0.27.3 and earlier. The inefficient algorithm is triggered …

  • Medium 4.7

    Out-of-bounds read in Exiv2::Jp2Image::printStructure

    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.4 and earlier. The out-of-bounds read is triggered when Exiv2 is used to print t…

  • Medium 4.7

    Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header

    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.4 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write m…

  • Low 3.6

    Uninitialized variable bug in Exiv2

    Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. A read of uninitialized memory was found in Exiv2 versions v0.27.3 and earlier. Exiv2 is a command-line utility and C++ library for rea…

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

  • Low 2.5

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

    Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. Exiv2 is a command-line utility and C++ library for reading, wri…

  • Unscored —

    Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata

    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…

  • Unscored —

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

  • Unscored —

    A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size pr…

References

  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1946314
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1952607
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1952612
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1953708
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1954065
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1961650
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1961691
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1978100
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1978105
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1989860
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1990330
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1992165
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1992174