CVE-2021-40264
Homebrew vulnerability analysis and mitigation

Overview

CVE-2021-40264 is a NULL pointer dereference vulnerability affecting FreeImage versions before 1.18.0. The vulnerability specifically exists in the FreeImage_CloneTag function within FreeImageTag.cpp. This security issue was discovered and reported on August 26, 2021 (NVD).

Technical details

The vulnerability occurs when processing TIFF format files where the 'StripOffsets' field is handled incorrectly. When a TIFF file with OJPEG compression is processed and the 'StripOffsets' field is not present, the FreeImage_CloneTag function attempts to perform a memcpy operation on a NULL pointer. This occurs due to a specific handling path in the TIFFReadDirectory function that sets the StripOffsets field to NULL under certain conditions (SourceForge Bug). The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can lead to a Denial of Service condition through application crashes caused by the NULL pointer dereference. The impact is primarily on the availability of systems running the affected FreeImage versions (SourceForge Bug).

Mitigation and workarounds

The primary mitigation is to upgrade FreeImage to version 1.18.0 or later, which contains the fix for this vulnerability (NVD).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management