CVE-2021-31292 json
An integer overflow in CrwMap::encode0x1810 of Exiv2 0.27.3 allows attackers to trigger a heap-based buffer overflow and cause a denial of…
published 2021-07-26 5 y ago modified 2026-06-17 4 mo ago also PYSEC-2021-877 , EUVD-2021-0073
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
An integer overflow in CrwMap::encode0x1810 of Exiv2 0.27.3 allows attackers to trigger a heap-based buffer overflow and cause a denial of service (DOS) via crafted metadata.
Patch / fix
- exiv2 Debian 14, Debian 13, Debian 12 0.27.3-3.1
debian advisories DEBIAN-CVE-2021-31292
- exiv2 RHEL 8 0.27.4-5.el8
- exiv2-libs RHEL 8 0.27.4-5.el8
- compat-exiv2-026 RHEL 8 0.26-6.el8
red hat advisories RHSA-2021:4173RHSA-2021:4319
- exiv2 SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +20 more 0.26-150000.6.16.1
suse advisories SUSE-SU-2022:3598-1
- compat-exiv2-026 AlmaLinux 8 0.26-6.el8
- exiv2 AlmaLinux 8 0.27.4-5.el8
- exiv2-libs AlmaLinux 8 0.27.4-5.el8
almalinux advisories ALSA-2021:4319ALSA-2021:4173
- compat-exiv2-026 Rocky Linux 8 0.26-6.el8
- exiv2 Rocky Linux 8 0.27.4-5.el8
rocky linux advisories RLSA-2021:4319RLSA-2021:4173
- github.com/Exiv2/exiv2/issues/1530 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-31292 updated cvss 7.5
exiv2: Integer overflow in CrwMap:encode0x1810 leading to heap-based buffer overflow and DoS
-
Red Hat Enterprise Linux 6 exiv2, exiv2-libs Red Hat Enterprise Linux 7 exiv2, exiv2-libs, compat-exiv2-023, compat-exiv2-026affected: no fix planned “Out of support scope”
-
Red Hat CodeReady Linux Builder (v. 8) exiv2-doc 0.27.4-5.el8, exiv2-devel 0.27.4-5.el8, exiv2-debuginfo 0.27.4-5.el8, exiv2-debugsource 0.27.4-5.el8, exiv2-libs-debuginfo 0.27.4-5.el8fixed: vendor fix RHSA-2021:4173
-
Red Hat Enterprise Linux AppStream (v. 8) exiv2 0.27.4-5.el8, exiv2-libs 0.27.4-5.el8, compat-exiv2-026 0.26-6.el8fixed: vendor fix RHSA-2021:4319
-
Red Hat Enterprise Linux 9 exiv2, exiv2-libsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.56% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/Exiv2/exiv2/issues/1530 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | exiv2 | all versions |
no fix listed |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/Exiv2/exiv2/issues/1530
exploit, issue-tracking, patch, third-party-advisory
-
debian.org
/security/2021/dsa-4958
vendor-advisory, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FMDT4PJB7P43WSOM3TRQIY3J33BAFVVE/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/UYGDELIFFJWKUU7SO3QATCIXCZJERGAC/
vendor-advisory, web
-
security.gentoo.org
/glsa/202312-06
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2021/08/msg00028.html
mailing-list, third-party-advisory, web
Sources
- CVE List CVE-2021-31292
- NVD CVE-2021-31292
- OSV PYSEC-2021-877
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.