CVE-2021-29473
Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata
Reported by github_m · Published April 26, 2021
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, writing, deleting, and modifying the metadata of image files. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, 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. Please see our security policy for information about Exiv2 security.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| exiv2 | exiv2 | 0.27.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Exiv2 | exiv2 | < 0.27.4 |
| Exiv2 | exiv2 | 0 |
| arch | exiv2 | 0 |
| alpine | exiv2 | 0 |
Timeline
- Apr 26, 2021 CVE Published
- Apr 27, 2021 EPSS Score (30 in total, the first dated here)
- Aug 3, 2024 CVE Updated
- Mar 7, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 7, 2026 Security Advisory (5 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-29473
vulnetix vdb fixes CVE-2021-29473
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-29473/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-10d7331a31 vendor-advisory
- FEDORA-2021-2d860da728 vendor-advisory
- FEDORA-2021-96a5dabcfa vendor-advisory
- FEDORA-2021-be94728b95 vendor-advisory
- DSA-4958 vendor-advisory
- [debian-lts-announce] 20210830 [SECURITY] [DLA 2750-1] exiv2 security update mailing-list
- GLSA-202312-06 vendor-advisory