Skip to main content

Libsixel EUVDEUVD-2026-22744

| CVE-2026-33020 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-04-14 security-advisories@github.com
7.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Deliver malicious palettised PNG
  2. Delivery
    Victim opens image in libsixel application
  3. Exploit
    Trigger integer overflow in size calculation
  4. Install
    Allocate undersized heap buffer
  5. C2
    Write full image data to invalid pointer
  6. Execute
    Corrupt heap metadata/function pointers
  7. Impact
    Execute attacker-controlled code

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Attacker must provide a specially crafted SIXEL image file with pixel count exceeding INT_MAX / 4 to a user running libsixel 1.8.7 or earlier. The vulnerability affects palettised image formats (PAL1, PAL2, PAL4). Victim must open/process the malicious image file, triggering sixel_frame_convert_to_rgb888() during decoding.

Impact

Real-world risk is moderate despite the 7.1 CVSS score. The CVSS vector (AV:L/AC:L/PR:N/UI:R) indicates local attack vector with low complexity but mandatory user interaction, meaning an attacker must convince a victim to process a malicious PNG file using a libsixel-based application. The high integrity and availability impact (I:H/A:H) with zero confidentiality impact reflects the heap corruption leading to crashes and potential code execution, but no direct information disclosure. No EPSS data available and no confirmed active exploitation (not in CISA KEV). However, the detailed technical disclosure including the exact vulnerable function, triggering conditions (pixel count > INT_MAX/4), and ASAN-confirmed heap corruption provides a clear exploitation roadmap. The vulnerability is reliably triggerable and heap corruption is deterministic, increasing weaponization potential. Primary risk exists in scenarios where libsixel processes user-supplied images: terminal emulators with SIXEL support, image conversion utilities, and automated image processing pipelines. The local attack vector and UI requirement significantly reduce remote exploitation scenarios, but supply-chain attacks (malicious image files in repositories, email attachments, web downloads) remain viable. Patch availability in 1.8.7-r1 and straightforward upgrade path mitigate risk for maintained deployments, but unmaintained or embedded uses of libsixel remain exposed.

Exploit ScenarioDerived

An attacker crafts a malicious PNG file with palettised color format (PAL1, PAL2, or PAL4) and dimensions exceeding 23,170 x 23,170 pixels (approximately 537 million pixels, surpassing INT_MAX/4). The attacker delivers this file to a victim via email attachment, web download, or repository inclusion. When the victim opens the image in a terminal emulator with SIXEL support or processes it through an image conversion utility using libsixel, the sixel_frame_convert_to_rgb888() function performs integer overflow during buffer allocation, creating an undersized heap buffer. The normalization routine writes full image data starting from a corrupted pointer, triggering massive heap corruption. The attacker leverages heap layout manipulation to overwrite critical data structures or function pointers, achieving arbitrary code execution in the context of the victim process.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 14, 2026

Heap buffer overflow in libsixel 1.8.7 and earlier allows local attackers to achieve arbitrary code execution by providing a maliciously crafted large palettised PNG image that triggers integer overflow in RGB888 conversion routines. The vulnerability requires user interaction to process the malicious image but no authentication. EPSS data not available; no public exploit identified at time of analysis, though the technical details in the advisory provide sufficient information for weaponization. Vendor-released patch: version 1.8.7-r1.

RemediationAI

Upgrade to libsixel version 1.8.7-r1 or later, which contains fixes for the integer overflow and heap buffer overflow vulnerabilities. The patched release is available from the official GitHub repository at https://github.com/saitoha/libsixel/releases/tag/v1.8.7-r1. Organizations unable to immediately upgrade should implement input validation to reject or sanitize palettised PNG files with excessive dimensions (pixel count approaching or exceeding 536 million pixels) before processing with libsixel. Consider disabling processing of untrusted palettised images or implementing sandboxing for image conversion operations. Review all applications using libsixel dependencies and update build configurations to link against the patched version. For containerized or packaged deployments, update base images and dependency manifests to pull version 1.8.7-r1 or later. Consult the GitHub security advisory GHSA-2xgm-4x47-2x2p for additional context and vendor guidance.

Affected VersionsENISA

libsixel < 1.8.7-r1

Affected Packages

euvd libsixel fix: 1.8.7-r1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libsixel is a SIXEL encoder/decoder library for terminal graphics, derived from kmiya's sixel implementation. The vulnerability (CWE-122: Heap-based Buffer Overflow) occurs in sixel_frame_convert_to_rgb888() within frame.c during conversion of palettised image formats (PAL1, PAL2, PAL4) to RGB888. The root cause is unsafe integer arithmetic: allocation size and pointer offset calculations use signed int types before casting to size_t. For images with pixel counts exceeding INT_MAX/4 (approximately 536 million pixels), integer overflow produces a severely undersized heap buffer allocation. The subsequent normalization operation in sixel_helper_normalize_pixelformat() computes a negative pointer offset, causing writes to begin at an invalid memory location. This results in massive out-of-bounds writes of full image data into uncontrolled heap regions, confirmed by AddressSanitizer during security testing. The vulnerability affects the core image processing pipeline and impacts any application using libsixel to decode untrusted palettised images.

Know when Libsixel gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.1 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
SUSE HIGH
Red Hat 7.1 MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch released
Apr 23, 2026 - 14:47 nvd
Patch available
Analysis Updated
Apr 16, 2026 - 05:56 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
1.8.7-r1
CVE Published
Apr 14, 2026 - 22:16 nvd
HIGH 7.1

DescriptionCVE.org

libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. Versions 1.8.7 and prior contain an integer overflow which leads to a heap buffer overflow via sixel_frame_convert_to_rgb888() in frame.c, where allocation size and pointer offset computations for palettised images (PAL1, PAL2, PAL4) are performed using int arithmetic before casting to size_t. For images whose pixel count exceeds INT_MAX / 4, the overflow produces an undersized heap allocation for the conversion buffer and a negative pointer offset for the normalization sub-buffer, after which sixel_helper_normalize_pixelformat() writes the full image data starting from the invalid pointer, causing massive heap corruption confirmed by ASAN. An attacker providing a specially crafted large palettised PNG can corrupt the heap of the victim process, resulting in a reliable crash and potential arbitrary code execution. This issue has been fixed in version 1.8.7-r1.

Executive ViewAI

Why It Matters

CVE-2026-33020 is a heap buffer overflow in libsixel image processing library affecting versions 1.8.7 and earlier, enabling local attackers to execute arbitrary code when processing specially crafted PNG images. Organizations using libsixel for image conversion or display workflows face risk of local privilege escalation and system compromise if users process untrusted image files. Immediate patching is required for systems handling external image inputs.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching impossible: restrict libsixel usage to administrator-controlled, pre-validated image sources only; disable user-facing image processing features until patch deployed; implement file-type validation rejecting PNG files from untrusted users; monitor process execution for suspicious child processes spawned by image processing utilities.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2019-20140 HIGH POC
8.8 Dec 30

An issue was discovered in libsixel 1.8.4. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, n

CVE-2019-20094 HIGH POC
8.8 Dec 30

An issue was discovered in libsixel 1.8.4. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, n

CVE-2019-20205 HIGH POC
8.8 Jan 02

libsixel 1.8.4 has an integer overflow in sixel_frame_resize in frame.c. Rated high severity (CVSS 8.8), this vulnerabil

CVE-2021-41715 HIGH POC
8.8 Apr 08

libsixel 1.10.0 is vulnerable to Use after free in libsixel/src/dither.c:379. Rated high severity (CVSS 8.8), this vulne

CVE-2020-21548 HIGH POC
8.8 Sep 17

Libsixel 1.8.3 contains a heap-based buffer overflow in the sixel_encode_highcolor function in tosixel.c. Rated high sev

CVE-2020-21547 HIGH POC
8.8 Sep 17

Libsixel 1.8.2 contains a heap-based buffer overflow in the dither_func_fs function in tosixel.c. Rated high severity (C

CVE-2019-19778 HIGH POC
8.8 Dec 13

An issue was discovered in libsixel 1.8.2. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, n

CVE-2019-19777 HIGH POC
8.8 Dec 13

stb_image.h (aka the stb image loader) 2.23, as used in libsixel and other products, has a heap-based buffer over-read i

CVE-2021-40656 HIGH POC
8.8 Apr 08

libsixel before 1.10 is vulnerable to Buffer Overflow in libsixel/src/quant.c:867. Rated high severity (CVSS 8.8), this

CVE-2022-27044 HIGH POC
8.8 Apr 08

libsixel 1.8.6 is affected by Buffer Overflow in libsixel/src/quant.c:876. Rated high severity (CVSS 8.8), this vulnerab

CVE-2022-27046 HIGH POC
8.8 Apr 08

libsixel 1.8.6 suffers from a Heap Use After Free vulnerability in in libsixel/src/dither.c:388. Rated high severity (CV

CVE-2019-3574 HIGH POC
7.8 Jan 02

In libsixel v1.8.2, there is a heap-based buffer over-read in the function load_jpeg() in the file loader.c, as demonstr

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy