Skip to content
Noroxi
CVE-2021-37619· NVD / CVE Program· CNA GitHub_M

Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header

Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.4 and earlier. 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.5.

MediumCVSS 5.5 · v3.1—No exploit Fix available
Published
Aug 9, 2021
Updated
Jun 17, 2026
EPSS
1.0% · 61th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

22

Monitor

Low priority for now.

CVSS
22 / 40 · 5.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.0%

CNA vs NVD score

NVD
5.5
CNA · GitHub_M
4.7
0.8 point gap

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
exiv2exiv2
fedoraprojectfedora

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • exiv2 exiv2up to 0.27.4 inclusive
  • fedoraproject fedora33
  • fedoraproject fedora34

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • Exiv2 exiv2

    • <= 0.27.4affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8compat-exiv2-026before 0.26-6.el80.26-6.el8
AlmaLinux:8exiv2before 0.27.4-5.el80.27.4-5.el8
AlmaLinux:8exiv2-develbefore 0.27.4-5.el80.27.4-5.el8
AlmaLinux:8exiv2-docbefore 0.27.4-5.el80.27.4-5.el8
AlmaLinux:8exiv2-libsbefore 0.27.4-5.el80.27.4-5.el8
Debian:12exiv2before 0.27.5-10.27.5-1
Red Hat:enterprise_linux:8::appstreamcompat-exiv2-026before 0:0.26-6.el80:0.26-6.el8
Red Hat:enterprise_linux:8::appstreamcompat-exiv2-026-debuginfobefore 0:0.26-6.el80:0.26-6.el8
Red Hat:enterprise_linux:8::appstreamcompat-exiv2-026-debugsourcebefore 0:0.26-6.el80:0.26-6.el8
Red Hat:enterprise_linux:8::appstreamexiv2before 0:0.27.4-5.el80:0.27.4-5.el8
Red Hat:enterprise_linux:8::appstreamexiv2-debuginfobefore 0:0.27.4-5.el80:0.27.4-5.el8
Red Hat:enterprise_linux:8::appstreamexiv2-debugsourcebefore 0:0.27.4-5.el80:0.27.4-5.el8
Red Hat:enterprise_linux:8::appstreamexiv2-libsbefore 0:0.27.4-5.el80:0.27.4-5.el8
Red Hat:enterprise_linux:8::appstreamexiv2-libs-debuginfobefore 0:0.27.4-5.el80:0.27.4-5.el8
Red Hat:enterprise_linux:8::crbexiv2-develbefore 0:0.27.4-5.el80:0.27.4-5.el8
Red Hat:enterprise_linux:8::crbexiv2-docbefore 0:0.27.4-5.el80:0.27.4-5.el8
Rocky Linux:8compat-exiv2-026before 0:0.26-6.el80:0.26-6.el8
Rocky Linux:8exiv2before 0:0.27.4-5.el80:0.27.4-5.el8
SUSE:Linux Enterprise Module for Desktop Applications 15 SP3exiv2before 0.26-150000.6.16.10.26-150000.6.16.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP3exiv2before 0.26-150000.6.16.10.26-150000.6.16.1

Other highest-scoring records for the same primary product.

  • CVE-2018-11531Exiv2 0.26 has a heap-based buffer overflow in getData in preview.cpp.
    40Plan
  • CVE-2019-9144An issue was discovered in Exiv2 0.27.
    36Monitor
  • CVE-2019-9143An issue was discovered in Exiv2 0.27.
    36Monitor
  • CVE-2018-14046Exiv2 0.26 has a heap-based buffer over-read in WebPImage::decodeChunks in webpimage.cpp.
    36Monitor
  • CVE-2018-12265Exiv2 0.26 has an integer overflow in the LoaderExifJpeg class in preview.cpp, leading to an out-of-bounds read in Exiv2::MemIo::read in bas
    36Monitor
  • CVE-2018-12264Exiv2 0.26 has integer overflows in LoaderTiff::getData() in preview.cpp, leading to an out-of-bounds read in Exiv2::ValueType::setDataArea
    36Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:compat-exiv2-0260.26-6.el8 · AlmaLinux:8Package registry (OSV)
almalinux:exiv20.27.4-5.el8 · AlmaLinux:8Package registry (OSV)
almalinux:exiv2-devel0.27.4-5.el8 · AlmaLinux:8Package registry (OSV)
almalinux:exiv2-doc0.27.4-5.el8 · AlmaLinux:8Package registry (OSV)
almalinux:exiv2-libs0.27.4-5.el8 · AlmaLinux:8Package registry (OSV)
debian:exiv20.27.5-1 · Debian:12Package registry (OSV)
opensuse:exiv20.26-150000.6.16.1 · openSUSE:Leap 15.3Package registry (OSV)
red hat:compat-exiv2-0260:0.26-6.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:compat-exiv2-026-debuginfo0:0.26-6.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:compat-exiv2-026-debugsource0:0.26-6.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:exiv20:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:exiv2-debuginfo0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:exiv2-debugsource0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:exiv2-devel0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::crbPackage registry (OSV)
red hat:exiv2-doc0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::crbPackage registry (OSV)
red hat:exiv2-libs0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:exiv2-libs-debuginfo0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
rocky linux:compat-exiv2-0260:0.26-6.el8 · Rocky Linux:8Package registry (OSV)
rocky linux:exiv20:0.27.4-5.el8 · Rocky Linux:8Package registry (OSV)
suse:exiv20.26-150000.6.16.1 · SUSE:Linux Enterprise Module for Desktop Applications 15 SP3Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

Weakness class (CWE)

CWE-125 · Out-of-bounds Read

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

ATT&CK techniques

—

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records