CVE-2021-29457

Summary

CVECVE-2021-29457
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-04-19 19:15:00 UTC
Updated2023-12-22 10:15:00 UTC
DescriptionExiv2 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.

Risk And Classification

Problem Types: CWE-122

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Application Exiv2 Exiv2 All All All All
Operating System Fedoraproject Fedora 33 All All All
Operating System Fedoraproject Fedora 34 All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 33 Update: exiv2-0.27.3-6.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata · Advisory · Exiv2/exiv2 · GitHub CONFIRM github.com
[SECURITY] Fedora 34 Update: exiv2-0.27.3-6.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 33 Update: exiv2-0.27.3-6.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Debian -- Security Information -- DSA-4958-1 exiv2 DEBIAN www.debian.org
Exiv2: Multiple Vulnerabilities (GLSA 202312-06) — Gentoo security security.gentoo.org
[SECURITY] Fedora 34 Update: exiv2-0.27.3-6.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] [DLA 2750-1] exiv2 security update MLIST lists.debian.org
Fix out of buffer access in #1529 by pydera · Pull Request #1534 · Exiv2/exiv2 · GitHub MISC github.com
heap-buffer-overflow write in Exiv2::Jp2Image::doWriteMetadata · Issue #1529 · Exiv2/exiv2 · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 178761 Debian Security Update for exiv2 (DSA 4958-1)
  • 178777 Debian Security Update for exiv2 (DLA 2750-1)
  • 179666 Debian Security Update for exiv2 (CVE-2021-29457)
  • 198360 Ubuntu Security Notification for Exiv2 vulnerabilities (USN-4941-1)
  • 239787 Red Hat Update for exiv2 security (RHSA-2021:4173)
  • 281237 Fedora Security Update for exiv2 (FEDORA-2021-be94728b95)
  • 281238 Fedora Security Update for exiv2 (FEDORA-2021-10d7331a31)
  • 501545 Alpine Linux Security Update for exiv2
  • 501840 Alpine Linux Security Update for exiv2
  • 503076 Alpine Linux Security Update for exiv2
  • 503344 Alpine Linux Security Update for exiv2
  • 503418 Alpine Linux Security Update for exiv2
  • 503507 Alpine Linux Security Update for exiv2
  • 503534 Alpine Linux Security Update for exiv2
  • 503582 Alpine Linux Security Update for exiv2
  • 503619 Alpine Linux Security Update for exiv2
  • 503646 Alpine Linux Security Update for exiv2
  • 503665 Alpine Linux Security Update for exiv2
  • 506047 Alpine Linux Security Update for exiv2
  • 670420 EulerOS Security Update for exiv2 (EulerOS-SA-2021-1979)
  • 670569 EulerOS Security Update for exiv2 (EulerOS-SA-2021-2327)
  • 671050 EulerOS Security Update for exiv2 (EulerOS-SA-2021-2579)
  • 690094 Free Berkeley Software Distribution (FreeBSD) Security Update for exiv2 (d49f86ab-d9c7-11eb-a200-00155d01f201)
  • 710810 Gentoo Linux Exiv2 Multiple Vulnerabilities (GLSA 202312-06)
  • 752871 SUSE Enterprise Linux Security Update for exiv2 (SUSE-SU-2022:4252-1)
  • 752917 SUSE Enterprise Linux Security Update for exiv2 (SUSE-SU-2022:3889-1)
  • 901949 Common Base Linux Mariner (CBL-Mariner) Security Update for exiv2 (7206)
  • 902252 Common Base Linux Mariner (CBL-Mariner) Security Update for exiv2 (7206-1)
  • 940296 AlmaLinux Security Update for exiv2 (ALSA-2021:4173)
  • 960736 Rocky Linux Security Update for exiv2 (RLSA-2021:4173)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report