Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-26540
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-26540 is a heap-based buffer overflow vulnerability discovered in Clmg before version 3.3.3. The vulnerability exists in the _load_analyze function when processing ANALYZE7.5/NIFTI files. The issue was disclosed on March 14, 2024 (NVD, GitHub Issue).

Technical details

The vulnerability occurs in the _load_analyze function where after reading the header_size variable, there is no validation check if its value is bigger than 4 bytes. When a header_size smaller than 4 bytes is provided, the first argument of cimg::fread points out of bounds of the header buffer, causing an underflow in the second parameter passed to the function. The CVSS v3.1 base score is 7.8 (High) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

When exploited, this vulnerability allows an attacker to control both the size and contents of the buffer overflow through a crafted file. This can lead to heap memory corruption and potential code execution (GitHub Issue).

Exploitability

The vulnerability can be triggered by passing a corrupted file as input to the load_analyze function. A proof-of-concept exploit has been demonstrated using ASAN (Address Sanitizer) to detect the heap-buffer-overflow (GitHub Issue).

Mitigation and workarounds

Users should upgrade to Clmg version 3.3.3 or later which contains the fix for this vulnerability (NVD).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

cimg

Affected

bullseye

cimg

Affected

sid

cimg: 3.5.0+dfsg-1

Fixed

trixie

cimg: 3.5.0+dfsg-1

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-91782LOW1.9
  • NixOS logoNixOS
  • gcc10-binutils
NoYesSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91780LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91779LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-90831LOW1.9
  • NixOS logoNixOS
  • gcc-toolset-16-binutils.src
NoYesSep 14, 2026

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