
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
INT_MAX / 4 — for example, 1,000,000 × 1,074 pixels (as demonstrated in the PoC file png_pal1_black_1000000x1074.png).sixel_helper_load_image_file(), which invokes sixel_frame_resize() → sixel_frame_convert_to_rgb888() in frame.c.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.sixel_helper_normalize_pixelformat() writes over 1 billion bytes from the invalid src pointer, massively corrupting heap memory.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.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).
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.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."