VDB

CVE-2021-29464

CVE-2021-29464 PUBLISHED CVSS 3.3 LOW

Heap buffer overflow in Exiv2::Jp2Image::encodeJp2Header

Reported by github_m · Published April 30, 2021

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
exiv2Arch Linux0.27.4-1
exiv2Alpine0.27.4-r0
exiv2-docAmazon Linux0.27.0-4.amzn2.0.2
exiv2Amazon Linux0.27.0-4.amzn2.0.2
exiv2-libsAmazon Linux0.27.0-4.amzn2.0.2
exiv2exiv20.27.4
exiv2Ubuntu:20.04:LTS0.27.2-8ubuntu2.4

Risk scores

CVSS 3.1
3.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected products

VendorProductVersions
Exiv2exiv2< 0.27.4
archexiv20
alpineexiv20
amazon:2exiv2-doc0
amazon:2exiv20
amazon:2exiv2-libs0
Exiv2exiv20
amazon:2exiv2-devel0

Timeline

  • Apr 30, 2021 CVE Published
  • May 1, 2021 EPSS Score (30 in total, the first dated here)
  • Aug 3, 2024 CVE Updated
  • Mar 7, 2026 Distribution Patch (3 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (4 in total, the first dated here)
  • Aug 5, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-29464
vulnetix vdb fixes CVE-2021-29464

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-29464/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›