Every CVE Search/ Get API key

CVE-2021-3482

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation...

6.5 MediumFix available

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
Low

Exploit likelihood

2.30%Up 1.9 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
CVE-2021-3482
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CVSS 2.0
6.4 MediumAV:N/AC:L/Au:N/C:P/I:N/A:P
Weakness
CWE-20, CWE-787
Updated
2026-11-02
CVE List No score

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
CVE-2021-3482
Weakness
CWE-20
Updated
2026-11-02
EUVDEUVD-2021-26804 No score

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
EUVD-2021-26804
Updated
2026-11-03
GitHub AdvisoriesGHSA-73rc-8qcm-v2wx 6.5

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation...

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
GHSA-73rc-8qcm-v2wx
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Weakness
CWE-20, CWE-119, CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2021-3482 6.5

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
ALPINE-CVE-2021-3482
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Updated
2026-11-03
OSVAZL-7217 6.5

CVE-2021-3482 affecting package exiv2 for versions less than 0.27.5-1

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
AZL-7217
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Updated
2026-11-02
Show 9 moreShow less
OSV 6.5

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
CVE-2021-3482
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Updated
2026-11-02
OSVDEBIAN-CVE-2021-3482 6.5

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
DEBIAN-CVE-2021-3482
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Updated
2026-11-02
OSVOESA-2021-1183 7.8

exiv2 security update

Exiv2 is a Cross-platform C++ library and a command line utility to manage image metadata. It provides fast and easy read and write access to the Exif, IPTC and XMP metadata and the ICC Profile embedded within digital images in various formats.

Security Fix(es):

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.(CVE-2021-3482)

Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, 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.4.(CVE-2021-29457)

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.3 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.4.(CVE-2021-29458)

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.3 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.4.(CVE-2021-29470)

Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. 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.4. Please see our security policy for information about Exiv2 security.(CVE-2021-29473)

Exiv2 is a command-line utility and C++ library for reading, writing,…

Record
OESA-2021-1183
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2021:4173 7.8

Red Hat Security Advisory: exiv2 security, bug fix, and enhancement update

Record
RHSA-2021:4173
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRLSA-2021:4173 7.8

Moderate: exiv2 security, bug fix, and enhancement update

Exiv2 is a C++ library to access image metadata, supporting read and write access to the Exif, IPTC and XMP metadata, Exif MakerNote support, extract and delete methods for Exif thumbnails, classes to access Ifd, and support for various image formats.

The following packages have been upgraded to a later upstream version: exiv2 (0.27.4). (BZ#1989860)

Security Fix(es):

  • exiv2: Heap-based buffer overflow in Jp2Image::readMetadata() (CVE-2021-3482)

  • exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29457)

  • exiv2: Out-of-bounds read in Exiv2::Internal::CrwMap::encode (CVE-2021-29458)

  • exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29464)

  • exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29470)

  • exiv2: Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29473)

  • exiv2: Integer overflow in CrwMap:encode0x1810 leading to heap-based buffer overflow and DoS (CVE-2021-31292)

  • exiv2: Out-of-bounds read in Exiv2::WebPImage::doWriteMetadata (CVE-2021-29463)

  • exiv2: Use of uninitialized memory in isWebPType() may lead to information leak (CVE-2021-29623)

  • exiv2: DoS due to quadratic complexity in ProcessUTF8Portion (CVE-2021-32617)

  • exiv2: Out-of-bounds read in Exiv2::Jp2Image::printStructure (CVE-2021-37618)

  • exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-37619)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.

Record
RLSA-2021:4173
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-3482 6.5

A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.

Record
UBUNTU-CVE-2021-3482
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Updated
2026-11-02
OSVALSA-2021:4173 No score

Moderate: exiv2 security, bug fix, and enhancement update

Exiv2 is a C++ library to access image metadata, supporting read and write access to the Exif, IPTC and XMP metadata, Exif MakerNote support, extract and delete methods for Exif thumbnails, classes to access Ifd, and support for various image formats.

The following packages have been upgraded to a later upstream version: exiv2 (0.27.4). (BZ#1989860)

Security Fix(es):

  • exiv2: Heap-based buffer overflow in Jp2Image::readMetadata() (CVE-2021-3482)

  • exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29457)

  • exiv2: Out-of-bounds read in Exiv2::Internal::CrwMap::encode (CVE-2021-29458)

  • exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29464)

  • exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29470)

  • exiv2: Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29473)

  • exiv2: Integer overflow in CrwMap:encode0x1810 leading to heap-based buffer overflow and DoS (CVE-2021-31292)

  • exiv2: Out-of-bounds read in Exiv2::WebPImage::doWriteMetadata (CVE-2021-29463)

  • exiv2: Use of uninitialized memory in isWebPType() may lead to information leak (CVE-2021-29623)

  • exiv2: DoS due to quadratic complexity in ProcessUTF8Portion (CVE-2021-32617)

  • exiv2: Out-of-bounds read in Exiv2::Jp2Image::printStructure (CVE-2021-37618)

  • exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-37619)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Record
ALSA-2021:4173
Updated
2026-11-02
OSVMGASA-2021-0240 No score

Updated exiv2 packages fix security vulnerabilities

The updated packages fix security vulnerabilities:

Heap-based buffer overflow in Jp2Image::readMetadata(). (CVE-2021-3482)

Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata. (CVE-2021-29457)

Out-of-bounds read in Exiv2::Internal::CrwMap::encode. (CVE-2021-29458)

Exiv2 incorrectly handled certain files. An attacker could possibly use this issue to cause a denial of service. (CVE-2021-29463)

Exiv2 incorrectly handled certain files. An attacker could possibly use this issue to execute arbitrary code. (CVE-2021-29464)

Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header. (CVE-2021-29470)

Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata. (CVE-2021-29473)

Read of uninitialized memory may lead to information leak. (CVE-2021-29623)

DoS due to quadratic complexity in ProcessUTF8Portion. (CVE-2021-32617)

Record
MGASA-2021-0240
Updated
2026-11-02
OSVUSN-4941-1 No score

exiv2 vulnerabilities

It was discovered that Exiv2 incorrectly handled certain images. An attacker could possibly use this issue to execute arbitrary code or cause a crash. (CVE-2021-29457)

It was discovered that Exiv2 incorrectly handled certain images. An attacker could possibly use this issue to cause a denial of service. (CVE-2021-29458, CVE-2021-29470)

It was discovered that Exiv2 incorrectly handled certain images. An attacker could possibly use this issue to execute arbitrary code or cause a crash. (CVE-2021-3482)

Record
USN-4941-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
exiv2
Alpine:v3.13
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.14
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.15
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.16
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.17
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.18
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.19
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.20
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.21
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.22
before 0.27.3-r1
0.27.3-r1
Show 32 moreShow less
Affected packages
PackageAffectedFixed
exiv2
Alpine:v3.23
before 0.27.3-r1
0.27.3-r1
exiv2
Alpine:v3.24
before 0.27.3-r1
0.27.3-r1
exiv2
AlmaLinux:8
From an advisory covering 12 CVEs
before 0.27.4-5.el8
0.27.4-5.el8
exiv2-devel
AlmaLinux:8
From an advisory covering 12 CVEs
before 0.27.4-5.el8
0.27.4-5.el8
exiv2-doc
AlmaLinux:8
From an advisory covering 12 CVEs
before 0.27.4-5.el8
0.27.4-5.el8
exiv2-libs
AlmaLinux:8
From an advisory covering 12 CVEs
before 0.27.4-5.el8
0.27.4-5.el8
exiv2
Azure Linux:2
before 0.27.5-1
0.27.5-1
exiv2
Debian:12
before 0.27.5-1
0.27.5-1
exiv2
Debian:13
before 0.27.5-1
0.27.5-1
exiv2
Debian:14
before 0.27.5-1
0.27.5-1
exiv2
Debian:9
From an advisory covering 5 CVEs
before 0.25-3.1+deb9u3, plus listed versions
0.25-3.10.25-3.1+0.riscv64.10.25-3.1+deb9u10.25-3.1+deb9u2
0.25-3.1+deb9u3
exiv2
Debian:10
From an advisory covering 5 CVEs
before 0.25-4+deb10u2, plus listed versions
0.25-40.25-4+deb10u1
0.25-4+deb10u2
exiv2
Mageia:7
From an advisory covering 9 CVEs
before 0.27.1-3.5.mga7
0.27.1-3.5.mga7
exiv2
Mageia:8
From an advisory covering 9 CVEs
before 0.27.3-1.1.mga8
0.27.3-1.1.mga8
exiv2
openEuler:20.03-LTS-SP1
From an advisory covering 7 CVEs
before 0.26-25.oe1
0.26-25.oe1
exiv2
Red Hat:enterprise_linux:8::appstream
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-debugsource
Red Hat:enterprise_linux:8::appstream
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-libs
Red Hat:enterprise_linux:8::appstream
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-libs-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-debuginfo
Red Hat:enterprise_linux:8::crb
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-debugsource
Red Hat:enterprise_linux:8::crb
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-devel
Red Hat:enterprise_linux:8::crb
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-doc
Red Hat:enterprise_linux:8::crb
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2-libs-debuginfo
Red Hat:enterprise_linux:8::crb
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2
Rocky Linux:8
From an advisory covering 12 CVEs
before 0:0.27.4-5.el8
0:0.27.4-5.el8
exiv2
Ubuntu:Pro:16.04:LTS
before 0.25-2.1ubuntu16.04.7+esm1, plus listed versions
0.25-1ubuntu10.25-2.10.25-2.1ubuntu16.04.10.25-2.1ubuntu16.04.20.25-2.1ubuntu16.04.30.25-2.1ubuntu16.04.40.25-2.1ubuntu16.04.50.25-2.1ubuntu16.04.6
0.25-2.1ubuntu16.04.7+esm1
exiv2
Ubuntu:18.04:LTS
before 0.25-3.1ubuntu0.18.04.7, plus listed versions
0.25-3.10.25-3.1ubuntu0.18.04.10.25-3.1ubuntu0.18.04.20.25-3.1ubuntu0.18.04.30.25-3.1ubuntu0.18.04.40.25-3.1ubuntu0.18.04.5
0.25-3.1ubuntu0.18.04.7
exiv2
Ubuntu:20.04:LTS
before 0.27.2-8ubuntu2.2, plus listed versions
0.25-4ubuntu20.25-4ubuntu30.27.2-8ubuntu2
0.27.2-8ubuntu2.2
exiv2
Ubuntu:Pro:16.04:LTS
From an advisory covering 4 CVEs
before 0.25-2.1ubuntu16.04.7+esm1, plus listed versions
0.25-1ubuntu10.25-2.10.25-2.1ubuntu16.04.10.25-2.1ubuntu16.04.20.25-2.1ubuntu16.04.30.25-2.1ubuntu16.04.40.25-2.1ubuntu16.04.50.25-2.1ubuntu16.04.6
0.25-2.1ubuntu16.04.7+esm1
exiv2
Ubuntu:18.04:LTS
From an advisory covering 4 CVEs
before 0.25-3.1ubuntu0.18.04.7, plus listed versions
0.25-3.10.25-3.1ubuntu0.18.04.10.25-3.1ubuntu0.18.04.20.25-3.1ubuntu0.18.04.30.25-3.1ubuntu0.18.04.40.25-3.1ubuntu0.18.04.5
0.25-3.1ubuntu0.18.04.7
exiv2
Ubuntu:20.04:LTS
From an advisory covering 4 CVEs
before 0.27.2-8ubuntu2.2, plus listed versions
0.25-4ubuntu20.25-4ubuntu30.27.2-8ubuntu2
0.27.2-8ubuntu2.2

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-3482 is a medium vulnerability (CVSS 6.5) in Exiv2, published April 8, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.30%, the 83rd percentile. Fixed in exiv2 0.27.3-r1.

References

Show 86 moreShow less
This page doesn't list everything

Left out here: the rest of 1 source description. The JSON record has them.

MoveEnter Open