---
title: "CVE-2021-29457"
canonical_url: "https://pkgseek.com/security/CVE-2021-29457"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2021-29457

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, t…

CVE-2021-29457 严重级别为 HIGH (7.8)，共索引 7 条受影响软件包构建记录，涉及 2 个发行版。

- **级别 / 评分**: HIGH (7.8)
- **受影响构建数**: 7
- **涉及发行版**: 2
- **已标明修复版本发行版**: Alibaba Cloud Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | exiv2 | 0.27.3-2.1.al8 | 0.27.3-3.1.al8 |
| Alibaba Cloud Linux | 3 | exiv2-devel | 0.27.3-2.1.al8 | 0.27.3-3.1.al8 |
| Alibaba Cloud Linux | 3 | exiv2-doc | 0.27.3-2.1.al8 | 0.27.3-3.1.al8 |
| Alibaba Cloud Linux | 3 | exiv2-libs | 0.27.3-2.1.al8 | 0.27.3-3.1.al8 |
| Ubuntu | focal | libexiv2-27 | 0.27.2-8ubuntu2 | 0.27.2-8ubuntu2.2 |
| Ubuntu | focal | libexiv2-dev | 0.27.2-8ubuntu2 | 0.27.2-8ubuntu2.2 |
| Ubuntu | focal | libexiv2-doc | 0.27.2-8ubuntu2 | 0.27.2-8ubuntu2.2 |
