QID 352842

Date Published: 2021-09-20

QID 352842: Amazon Linux Security Advisory for exiv2: ALAS2-2021-1701

A flaw was found in exiv2.
A flawed bounds checking in the jp2image.cpp:dowritemetadata function leads to a heap-based buffer overflow.
This flaw allows an attacker who can provide a malicious image to an application using the exiv2 library, to write data out of bounds and potentially execute code.
The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability. (
( CVE-2021-31291)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Allows unauthorized disclosure of information; allows unauthorized modification; allows disruption of service.

  • CVSS V3 rated as Critical - 8.1 severity.
  • CVSS V2 rated as High - 6.8 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2-2021-1701 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 352842

    Software Advisories
    Advisory ID Software Component Link
    ALAS2-2021-1701 Amazon Linux 2 URL Logo alas.aws.amazon.com/AL2/ALAS-2021-1701.html