Out-of-bounds Write Affecting freeimage package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.3% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-FREEIMAGE-5854794
  • published12 Jul 2025
  • disclosed22 Aug 2023

Introduced: 22 Aug 2023

CVE-2021-40265  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:18.04 freeimage.

NVD Description

Note: Versions mentioned in the description apply only to the upstream freeimage package and not the freeimage package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1