CVE-2021-45972 Memory corruption in n/a

High 7.1 Published Updated

A stack-based buffer overflow in giftrans allows attackers to execute arbitrary code via a crafted GIF 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
None listed

What is CVE-2021-45972?

CVE-2021-45972 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 1 Jan 2022. 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

The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.

Weakness: CWE-1284

Which versions are affected by CVE-2021-45972?

It affects 2 products.

Products include Debian Debian Linux, Giftrans Project Giftrans.

How do I fix CVE-2021-45972?

No fix has been published for CVE-2021-45972 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2021-45972 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-45972, GHSA-mvg4-4v3q-g4xj, UBUNTU-CVE-2021-45972.

Is CVE-2021-45972 in your software?

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

Check your SBOMs for free