CVE-2021-32617
Denial of service in Exiv2
Reported by github_m · Published May 17, 2021
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An inefficient algorithm (quadratic complexity) was found in Exiv2 versions v0.27.3 and earlier. The inefficient algorithm 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, if they can trick the victim into running Exiv2 on a crafted image file. The bug is fixed in version v0.27.4. 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 `rm`.
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 | Arch Linux | 0.27.4-1 |
| exiv2 | exiv2 | 0.27.4 |
| exiv2 | Ubuntu:Pro:16.04:LTS | 0.25-2.1ubuntu16.04.7+esm2 |
| exiv2 | Ubuntu:18.04:LTS | 0.25-3.1ubuntu0.18.04.9 |
| exiv2 | Ubuntu:20.04:LTS | 0.27.2-8ubuntu2.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Exiv2 | exiv2 | <= 0.27.3 |
| arch | exiv2 | 0 |
| Exiv2 | exiv2 | 0 |
| alpine | exiv2 | 0 |
Timeline
- May 17, 2021 CVE Published
- May 18, 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 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32617
vulnetix vdb fixes CVE-2021-32617
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-32617/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-d1d5a0bf0f vendor-advisory
- FEDORA-2021-8253c78bd7 vendor-advisory
- FEDORA-2021-bdba47348c vendor-advisory
- FEDORA-2021-8917c5d9d2 vendor-advisory
- GLSA-202312-06 vendor-advisory