CVE-2021-37622
published medium CVSS 3.1 · 5.5Denial of service due to infinite loop in JpegBase::printStructure (#1)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Exiv2 | — | exiv2<= 0.27.4 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Debian | buster | exiv2 | Advisory build | 0.25-4+deb10u4 | DLA-3265-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2aarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| Ubuntu | bionic | exiv2 | Advisory build | 0.25-3.1ubuntu0.18.04.11 | USN-5043-1 |
| Alpine Linux | v3.14 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.15 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.16 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
Show 75 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.17 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.18 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.19 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.20 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.21 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.22 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.23 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| Alpine Linux | v3.24 | exiv2 | Fixed | 0.27.5-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2ppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2s390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2x86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2aarch64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2ppc64le | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2s390x | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2x86_64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| Ubuntu | focal | exiv2 | Advisory build | 0.27.2-8ubuntu2.6 | USN-5043-1 |
| Ubuntu | xenial | exiv2 | Advisory build | 0.25-2.1ubuntu16.04.7+esm4 | USN-5043-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-26aarch64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-26ppc64le | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-26s390x | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-26x86_64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-27aarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-27ppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-27s390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-27x86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-develaarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-develppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-devels390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-develx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-xmp-staticaarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-xmp-staticppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-xmp-statics390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-xmp-staticx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2-langnoarch | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26aarch64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26ppc64le | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26s390x | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26x86_64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26-32bitx86_64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27aarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27ppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27s390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27x86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27-32bitx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-develaarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-develppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-devels390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-develx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-xmp-staticaarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-xmp-staticppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-xmp-statics390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-xmp-staticx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2-langaarch64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2-langppc64le | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2-langs390x | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2-langx86_64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-27aarch64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-27ppc64le | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-27s390x | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-27x86_64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-27-32bitaarch64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-27-32bitppc64le | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-27-32bits390x | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-27-32bitx86_64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-develaarch64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-develppc64le | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-devels390x | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-develx86_64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-xmp-staticaarch64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-xmp-staticppc64le | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-xmp-statics390x | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libexiv2-xmp-staticx86_64 | Advisory build | 0.27.5-5.1 | OPENSUSE-SU-2024:12405-1 |
| Ubuntu | bionic | libexiv2-14 | Advisory build | 0.25-3.1ubuntu0.18.04.11 | USN-5043-1 |
| Ubuntu | focal | libexiv2-27 | Advisory build | 0.27.2-8ubuntu2.6 | USN-5043-1 |
| Ubuntu | xenial | libexiv2-14 | Advisory build | 0.25-2.1ubuntu16.04.7+esm4 | USN-5043-1 |
Description
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An infinite loop was found in Exiv2 versions v0.27.4 and earlier. The infinite loop is triggered when Exiv2 is used to modify the metadata of 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. Note that this bug is only triggered when deleting the IPTC data, which is a less frequently used Exiv2 operation that requires an extra command line option (`-d I rm`). The bug is fixed in version v0.27.5.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Exiv2 | exiv2 | <= 0.27.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-835 CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
References
6- https://github.com/Exiv2/exiv2/pull/1788
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-9jh3-fcc3-g6hv
- [debian-lts-announce] 20230110 [SECURITY] [DLA 3265-1] exiv2 security update https://lists.debian.org/debian-lts-announce/2023/01/msg00004.html
- FEDORA-2021-399f869889 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FMDT4PJB7P43WSOM3TRQIY3J33BAFVVE/
- FEDORA-2021-cbaef8e2d5 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UYGDELIFFJWKUU7SO3QATCIXCZJERGAC/
- GLSA-202312-06 https://security.gentoo.org/glsa/202312-06
Provider assertions
2GitHub_M · cna
Denial of service due to infinite loop in JpegBase::printStructure (#1)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1979cb892026c8d8fbc6197c181892c8f0671c071cfed4fac10ae58074db989f
- Ingested
- 23 Sep 2026, 07:55:20 UTC
- Source record
- Official CVE record