CVE-2022-41981 Memory corruption in OpenImageIO

High 8.1 Published Updated

A stack-based buffer overflow in OpenImageIO allows arbitrary code execution via a malicious TGA file.

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

What is CVE-2022-41981?

CVE-2022-41981 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 23 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A stack-based buffer overflow vulnerability exists in the TGA file format parser of OpenImageIO v2.3.19.0. A specially-crafted targa file can lead to out of bounds read and write on the process stack, which can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.

Weakness: CWE-787, CWE-125, CWE-121

Which versions are affected by CVE-2022-41981?

It affects 2 products.

Products include Debian Debian Linux, Openimageio Openimageio.

How do I fix CVE-2022-41981?

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-2022-41981 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-41981 exists.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-41981, GHSA-hcc6-fp5w-rfrr, UBUNTU-CVE-2022-41981.

Is CVE-2022-41981 in your software?

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

Check your SBOMs for free