Skip to main content

Libsixel CVE-2026-33023

| EUVDEUVD-2026-22748 HIGH
Use After Free (CWE-416)
2026-04-14 GitHub_M
7.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Deliver malicious image file to local system
  2. Delivery
    User opens file in libsixel application
  3. Exploit
    Trigger load_with_gdkpixbuf() code path
  4. Install
    Frame object freed prematurely
  5. C2
    Callback accesses dangling pointer
  6. Execute
    Heap memory corruption
  7. Impact
    Hijack control flow via corrupted frame pointers
  8. Step 8
    Execute arbitrary code as victim process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

libsixel versions 1.8.7 and prior built with --with-gdk-pixbuf2 option. Local attacker must convince victim to open a crafted image file (e.g., SIXEL format) in an application using libsixel. No authentication required.

Impact

Real-world risk is moderate despite the High CVSS score of 7.8. The CVSS vector (AV:L/AC:L/PR:N/UI:R) requires local access and user interaction, constraining the attack surface to scenarios where an attacker can deliver a malicious image file and convince a user to process it through a libsixel-enabled application. Attack complexity is low once the preconditions are met, and the vulnerability is deterministic rather than timing-dependent, making exploitation reliable. However, practical exploitation requires the target application to be built with the non-default --with-gdk-pixbuf2 option, significantly limiting the affected installation base. The vulnerability enables full CIA triad compromise (C:H/I:H/A:H) including arbitrary code execution as the victim process. EPSS score not available in provided data. KEV status is negative, indicating no confirmed active exploitation campaigns. No public exploit code is identified at time of analysis, though security researchers can reproduce the issue using AddressSanitizer tooling. From SSVC perspective: exploitation status is none, automatability is high (deterministic memory corruption), and technical impact is total (code execution). Priority should focus on systems processing untrusted SIXEL images from local sources, particularly graphical terminals and image conversion utilities compiled with gdk-pixbuf2 support.

Exploit ScenarioDerived

An attacker delivers a specially crafted SIXEL or standard image file to a victim via email attachment, shared network drive, or web download. When the victim opens the malicious file in a terminal emulator, image viewer, or conversion utility built against vulnerable libsixel with gdk-pixbuf2 support, the use-after-free triggers during image loading. The attacker leverages the dangling pointer to corrupt heap metadata, redirect control flow through callback function pointers retained in the freed frame object, and execute arbitrary code with the privileges of the victim application process, potentially establishing persistence or accessing sensitive terminal session data.

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 15, 2026

Use-after-free in libsixel's gdk-pixbuf2 loader enables local attackers to achieve code execution via crafted images. Affects libsixel versions through 1.8.7 when compiled with --with-gdk-pixbuf2 option. The vulnerability stems from inconsistent memory management in load_with_gdkpixbuf(), which manually frees reference-counted frame objects, leaving dangling pointers that callbacks can access post-cleanup. CVSS 7.8 (High) with local attack vector requiring user interaction. Fixed in version 1.8.7-r1. No confirmed active exploitation (CISA KEV), though proof-of-concept feasibility is high given the deterministic nature of the memory corruption.

RemediationAI

Upgrade to libsixel version 1.8.7-r1 or later, which resolves the use-after-free by ensuring consistent reference counting across all image loader backends. The fix is available from the official release at https://github.com/saitoha/libsixel/releases/tag/v1.8.7-r1. Organizations must rebuild and redeploy all applications linking against libsixel. As a temporary workaround for environments unable to immediately patch, disable gdk-pixbuf2 support by recompiling libsixel without the --with-gdk-pixbuf2 flag and using alternative image loading backends, though this may reduce format compatibility. Application-level mitigations include restricting image processing to trusted sources and running libsixel-dependent processes in sandboxed environments with limited privileges to contain potential exploitation impact.

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 graphics encoder/decoder library (CPE: cpe:2.3:a:saitoha:libsixel) supporting multiple image loading backends. When built with gdk-pixbuf2 integration (optional --with-gdk-pixbuf2 flag), the loader.c implementation contains a reference counting inconsistency mapped to CWE-416 (Use After Free). The sixel_frame_t object follows a refcounted lifecycle using sixel_frame_new() for allocation and sixel_frame_unref() for cleanup in most code paths. However, load_with_gdkpixbuf() diverges by directly calling free() on both the frame object and its internal buffers without decrementing the reference count. This violates the object's lifetime contract: public callbacks that legitimately call sixel_frame_ref(frame) to retain ownership receive a logically valid reference that becomes a dangling pointer when sixel_helper_load_image_file() returns. The parallel load_with_builtin() function correctly uses sixel_frame_unref(), demonstrating the architectural inconsistency. AddressSanitizer confirms the temporal memory safety violation during subsequent frame field accesses.

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_M) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 7.8 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

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

DescriptionCVE.org

libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. In versions 1.8.7 and prior, when built with the --with-gdk-pixbuf2 option, a use-after-free vulnerability exists in load_with_gdkpixbuf() in loader.c. The cleanup path manually frees the sixel_frame_t object and its internal buffers without consulting the reference count, even though the object was created via the refcounted constructor sixel_frame_new() and exposed to the public callback. A callback that calls sixel_frame_ref(frame) to retain a logically valid reference will hold a dangling pointer after sixel_helper_load_image_file() returns, and any subsequent access to the frame or its fields triggers a use-after-free confirmed by AddressSanitizer. The root cause is a consistency failure between two cleanup strategies in the same codebase: sixel_frame_unref() is used in load_with_builtin() but raw free() is used in load_with_gdkpixbuf(). An attacker supplying a crafted image to any application built against libsixel with gdk-pixbuf2 support can trigger this reliably, potentially leading to information disclosure, memory corruption, or code execution. This issue has been fixed in version 1.8.7-r1.

Executive ViewAI

Why It Matters

libsixel versions through 1.8.7 contain a use-after-free vulnerability in the gdk-pixbuf2 loader that allows local attackers to execute arbitrary code when processing specially crafted image files. Organizations using libsixel for image processing-particularly in document conversion, media handling, or desktop applications-should prioritize patching to prevent potential privilege escalation and system compromise through user-supplied image files.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not possible: restrict image file uploads and processing to trusted sources only; disable gdk-pixbuf2 support in libsixel if alternative image loaders are available; run image processing services in sandboxed or containerized environments with minimal privileges; implement file type validation to reject suspicious image files before processing.

Threat Intelligence Overview

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

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

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
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.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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