CVE-2021-3482 Memory corruption in exiv2

Medium 6.5 Published Updated

A heap-based buffer overflow in Exiv2 allows attackers to execute arbitrary code or cause denial of service via crafted JPG images with malicious EXIF data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3482?

CVE-2021-3482 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 8 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-787, CWE-20

Which versions are affected by CVE-2021-3482?

It affects 4 products.

Products include Debian Debian Linux, Exiv2 Exiv2, Fedoraproject Fedora, Redhat Enterprise Linux.

How do I fix CVE-2021-3482?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-3482 being exploited?

There is no known exploitation of CVE-2021-3482 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-7217, CLEANSTART-2024-MV19678, DEBIAN-CVE-2021-3482, GHSA-73rc-8qcm-v2wx, UBUNTU-CVE-2021-3482.

Is CVE-2021-3482 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free