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.
- Published
- Aug 9, 2021
- Updated
- Jun 17, 2026
- EPSS
- 1.0% · 61th percentile
- CWE
- CWE-125
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
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
| Vendor | Product | CPE |
|---|---|---|
| exiv2 | exiv2 | cpe:2.3:a:exiv2:exiv2 |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | compat-exiv2-026 | before 0.26-6.el8 | 0.26-6.el8 |
| AlmaLinux:8 | exiv2 | before 0.27.4-5.el8 | 0.27.4-5.el8 |
| AlmaLinux:8 | exiv2-devel | before 0.27.4-5.el8 | 0.27.4-5.el8 |
| AlmaLinux:8 | exiv2-doc | before 0.27.4-5.el8 | 0.27.4-5.el8 |
| AlmaLinux:8 | exiv2-libs | before 0.27.4-5.el8 | 0.27.4-5.el8 |
| Debian:12 | exiv2 | before 0.27.5-1 | 0.27.5-1 |
| Red Hat:enterprise_linux:8::appstream | compat-exiv2-026 | before 0:0.26-6.el8 | 0:0.26-6.el8 |
| Red Hat:enterprise_linux:8::appstream | compat-exiv2-026-debuginfo | before 0:0.26-6.el8 | 0:0.26-6.el8 |
| Red Hat:enterprise_linux:8::appstream | compat-exiv2-026-debugsource | before 0:0.26-6.el8 | 0:0.26-6.el8 |
| Red Hat:enterprise_linux:8::appstream | exiv2 | before 0:0.27.4-5.el8 | 0:0.27.4-5.el8 |
| Red Hat:enterprise_linux:8::appstream | exiv2-debuginfo | before 0:0.27.4-5.el8 | 0:0.27.4-5.el8 |
| Red Hat:enterprise_linux:8::appstream | exiv2-debugsource | before 0:0.27.4-5.el8 | 0:0.27.4-5.el8 |
| Red Hat:enterprise_linux:8::appstream | exiv2-libs | before 0:0.27.4-5.el8 | 0:0.27.4-5.el8 |
| Red Hat:enterprise_linux:8::appstream | exiv2-libs-debuginfo | before 0:0.27.4-5.el8 | 0:0.27.4-5.el8 |
| Red Hat:enterprise_linux:8::crb | exiv2-devel | before 0:0.27.4-5.el8 | 0:0.27.4-5.el8 |
| Red Hat:enterprise_linux:8::crb | exiv2-doc | before 0:0.27.4-5.el8 | 0:0.27.4-5.el8 |
| Rocky Linux:8 | compat-exiv2-026 | before 0:0.26-6.el8 | 0:0.26-6.el8 |
| Rocky Linux:8 | exiv2 | before 0:0.27.4-5.el8 | 0:0.27.4-5.el8 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | exiv2 | before 0.26-150000.6.16.1 | 0.26-150000.6.16.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | exiv2 | before 0.26-150000.6.16.1 | 0.26-150000.6.16.1 |
Same product
exiv2: all recordsOther 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 bas36Monitor
- 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 / package | Fixed version | Source |
|---|---|---|
| almalinux:compat-exiv2-026 | 0.26-6.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:exiv2 | 0.27.4-5.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:exiv2-devel | 0.27.4-5.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:exiv2-doc | 0.27.4-5.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:exiv2-libs | 0.27.4-5.el8 · AlmaLinux:8 | Package registry (OSV) |
| debian:exiv2 | 0.27.5-1 · Debian:12 | Package registry (OSV) |
| opensuse:exiv2 | 0.26-150000.6.16.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:compat-exiv2-026 | 0:0.26-6.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:compat-exiv2-026-debuginfo | 0:0.26-6.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:compat-exiv2-026-debugsource | 0:0.26-6.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:exiv2 | 0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:exiv2-debuginfo | 0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:exiv2-debugsource | 0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:exiv2-devel | 0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::crb | Package registry (OSV) |
| red hat:exiv2-doc | 0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::crb | Package registry (OSV) |
| red hat:exiv2-libs | 0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:exiv2-libs-debuginfo | 0:0.27.4-5.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| rocky linux:compat-exiv2-026 | 0:0.26-6.el8 · Rocky Linux:8 | Package registry (OSV) |
| rocky linux:exiv2 | 0:0.27.4-5.el8 · Rocky Linux:8 | Package registry (OSV) |
| suse:exiv2 | 0.26-150000.6.16.1 · SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | Package 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.
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.
Credits
All researchersFinders, 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 ReadCVSS 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.
Attack patterns (CAPEC)
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 helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/Exiv2/exiv2/pull/1752
- github.com/Exiv2/exiv2/security/advisories/GHSA-mxw9-qx4c-6m8v
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FMDT4PJB7P43WSOM3TRQIY3J33BAFVVE/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UYGDELIFFJWKUU7SO3QATCIXCZJERGAC/
- security.gentoo.org/glsa/202312-06
Vendor advisories and official records. Exploit/PoC links are deliberately left out.