CVE-2021-3496 Memory corruption in jhead

High 7.8 Published Updated

A heap-based buffer overflow in jhead allows attackers to execute arbitrary code or cause denial of service via a crafted file.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-3496?

CVE-2021-3496 is a high-severity memory corruption vulnerability in jhead, published on 22 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2021-3496?

It affects 1 product.

Linux distribution packages (2)
jhead SUSE:Package Hub 15 SP2All versions3.00-bp152.4.3.1
jhead openSUSE:Leap 15.2All versions3.00-lp152.7.3.1

Products include Jhead Project Jhead.

How do I fix CVE-2021-3496?

Apply the vendor's patch.

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

Is CVE-2021-3496 being exploited?

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

Sources

Also known as DEBIAN-CVE-2021-3496, GHSA-rvxv-5pj2-85pq, UBUNTU-CVE-2021-3496, openSUSE-SU-2021:0594-1, openSUSE-SU-2021:0620-1.

Is CVE-2021-3496 in your software?

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

Check your SBOMs for free