CVE-2026-33020: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-33020 is an integer overflow vulnerability in libsixel (versions 1.8.7 and prior) that leads to a heap buffer overflow during palettised image processing. The flaw exists in sixel_frame_convert_to_rgb888() in frame.c, where allocation size and pointer offset computations for PAL1, PAL2, and PAL4 images are performed using int arithmetic before casting to size_t. Discovered and reported by researcher nicoppida, the vulnerability was disclosed on April 14, 2026, and fixed in version 1.8.7-r1. It carries a CVSS v3.1 base score of 7.1 (High) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is an integer overflow (CWE-190) leading to a heap-based buffer overflow (CWE-122) in frame.c. At line 418, the expression frame->width * frame->height * 4 is computed in signed int before casting to size_t; for images with pixel counts exceeding INT_MAX / 4 (e.g., 1,000,000 × 1,074 pixels), this overflows to a small positive value, producing an undersized heap allocation. At line 426, a second overflow (width * height * 3) produces a negative pointer offset, placing src approximately 1 GB before the allocated buffer in heap memory. Subsequently, sixel_helper_normalize_pixelformat() writes up to 1,074,000,000 bytes starting from this invalid pointer, causing massive heap corruption confirmed by ASAN. Exploitation requires user interaction — the victim process must load a specially crafted large palettised PNG file (GitHub Advisory).

Impact

Successful exploitation corrupts the heap of the victim process, resulting in a reliable crash (denial of service) and potentially enabling arbitrary code execution. The integrity and availability impacts are rated High, while confidentiality impact is None per the CVSS scoring. Any application that uses libsixel to process untrusted image files — including terminal emulators, image viewers, or converters — is at risk of process compromise if a malicious PNG is loaded (GitHub Advisory, Red Hat Bugzilla).

Exploitability

A public proof-of-concept (PoC) is available in the GitHub Security Advisory, consisting of a complete standalone C harness (poc.c) and a crafted malicious PNG file (png_pal1_black_1000000x1074.png) with dimensions of 1,000,000 × 1,074 pixels. There is no evidence of in-the-wild exploitation at this time, and no threat actor attribution has been reported. The EPSS score is approximately 0.015% (0.000150), reflecting low current exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (GitHub Advisory, Feedly).

Exploitation steps

  1. Craft the malicious PNG: Create or obtain a palettised PNG image (PAL1, PAL2, or PAL4 color type) with dimensions whose pixel count exceeds INT_MAX / 4 — for example, 1,000,000 × 1,074 pixels (as demonstrated in the PoC file png_pal1_black_1000000x1074.png).
  2. Deliver the file to the victim: Social-engineer or otherwise cause the target application (e.g., a terminal emulator, image viewer, or converter using libsixel ≤ 1.8.7) to open or process the crafted PNG file.
  3. Trigger the vulnerable code path: The application calls sixel_helper_load_image_file(), which invokes sixel_frame_resize() → sixel_frame_convert_to_rgb888() in frame.c.
  4. Integer overflow occurs: The int arithmetic at line 418 overflows, producing an undersized heap allocation; the arithmetic at line 426 produces a negative pointer offset, placing src ~1 GB before the buffer.
  5. Heap corruption: sixel_helper_normalize_pixelformat() writes over 1 billion bytes from the invalid src pointer, massively corrupting heap memory.
  6. Achieve crash or code execution: On unguarded builds, the process segfaults reliably; with heap exploitation techniques, an attacker may achieve arbitrary code execution in the context of the victim process (GitHub Advisory).

Indicators of compromise

  • File System: Presence of unusually large palettised PNG files (PAL1/PAL2/PAL4 color type) with extreme dimensions (e.g., pixel count > ~536 million) in directories processed by libsixel-dependent applications; unexpected core dump files from image-processing applications.
  • Logs: Application crash logs or core dumps referencing sixel_frame_convert_to_rgb888, sixel_frame_resize, or sixel_helper_normalize_pixelformat in stack traces; ASAN/UBSan output indicating signed integer overflow at frame.c:418 or frame.c:426.
  • Process: Abnormal termination (SIGSEGV or SIGABRT) of terminal emulators, image viewers, or converters that use libsixel when processing PNG files; unexpected child processes spawned from image-processing applications.

Mitigation and workarounds

The primary remediation is to upgrade libsixel to version 1.8.7-r1 or later, which contains the security fix for CVE-2026-33020 (libsixel Release). As a workaround where upgrading is not immediately possible, restrict the ability of applications to process untrusted or externally sourced PNG images, particularly large palettised images. Implementing input validation to reject images with pixel counts exceeding INT_MAX / 4 (approximately 536 million pixels) before passing them to libsixel can also mitigate the risk (GitHub Advisory).

Community reactions

Red Hat tracked the vulnerability via their security response process (Bugzilla bug 2458500) and published a CVE advisory page, indicating awareness among enterprise Linux distributors (Red Hat Bugzilla, Red Hat Advisory). Tenable published a Nessus plugin (306636) for detection. No significant broader media coverage or notable researcher commentary beyond the original reporter (nicoppida) has been identified at this time.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

libsixel

Affected

sid

libsixel: 1:1.8.7-r2-1

Fixed

trixie

libsixel

Affected

Ubuntu

Unknown

bionic (esm-apps)

libsixel

Unknown

devel

libsixel

Unknown

focal (esm-apps)

libsixel

Unknown

jammy

libsixel

Unknown

jammy (esm-apps)

libsixel

Unknown

noble

libsixel

Unknown

noble (esm-apps)

libsixel

Unknown

resolute

libsixel

Unknown

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-125336HIGH7.4
  • Grafana logoGrafana
  • grafana-stackdriver
NoYesNov 10, 2026
CVE-2026-125334MEDIUM5.9
  • Grafana logoGrafana
  • cockpit-ha-cluster
NoYesNov 10, 2026
CVE-2026-125333MEDIUM5.9
  • NixOS logoNixOS
  • jitsucom-jitsu
NoYesNov 10, 2026
CVE-2026-125332MEDIUM5.9
  • NixOS logoNixOS
  • arangodb-3.12
NoYesNov 10, 2026
CVE-2026-125335LOW3.7
  • NixOS logoNixOS
  • node-node-forge
NoYesNov 10, 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

Additional Wiz resources

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