CVE-2021-3404 Memory corruption in ytnef

High 7.8 Published Updated

A heap buffer overflow in the ytnef library allows remote attackers to cause denial of service or potentially execute code 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-3404?

CVE-2021-3404 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 4 Mar 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

In ytnef 1.9.3, the SwapWord function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potentially code execution) due to a heap buffer overflow which can be triggered via a crafted file.

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2021-3404?

It affects 3 products.

Products include Fedoraproject Fedora, Redhat Enterprise Linux, Ytnef Project Ytnef.

How do I fix CVE-2021-3404?

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-3404 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-3404, GHSA-5f69-j422-38p4, UBUNTU-CVE-2021-3404.

Is CVE-2021-3404 in your software?

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

Check your SBOMs for free