CVE-2021-40265 Memory corruption in n/a

High 8.8 Published Updated

A heap overflow in FreeImage allows attackers to execute arbitrary code or cause denial of service via crafted JPEG files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-40265?

CVE-2021-40265 is a high-severity memory corruption vulnerability in Freeimage Project Freeimage, published on 22 Aug 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A heap overflow bug exists FreeImage before 1.18.0 via ofLoad function in PluginJPEG.cpp.

Weakness: CWE-787

Which versions are affected by CVE-2021-40265?

It affects 1 product.

Products include Freeimage Project Freeimage.

How do I fix CVE-2021-40265?

No fix has been published for CVE-2021-40265 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-40265 being exploited?

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

All Freeimage Project Freeimage vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-40265, GHSA-mm42-fjc9-m5fq, UBUNTU-CVE-2021-40265.

Is CVE-2021-40265 in your software?

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

Check your SBOMs for free