Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconDeliver malicious image file to local system
-
DeliveryUser opens file in libsixel application
-
ExploitTrigger load_with_gdkpixbuf() code path
-
InstallFrame object freed prematurely
-
C2Callback accesses dangling pointer
-
ExecuteHeap memory corruption
-
ImpactHijack control flow via corrupted frame pointers
-
Step 8Execute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
An issue was discovered in libsixel 1.8.4. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, n
An issue was discovered in libsixel 1.8.4. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, n
libsixel 1.8.4 has an integer overflow in sixel_frame_resize in frame.c. Rated high severity (CVSS 8.8), this vulnerabil
libsixel 1.10.0 is vulnerable to Use after free in libsixel/src/dither.c:379. Rated high severity (CVSS 8.8), this vulne
Libsixel 1.8.3 contains a heap-based buffer overflow in the sixel_encode_highcolor function in tosixel.c. Rated high sev
Libsixel 1.8.2 contains a heap-based buffer overflow in the dither_func_fs function in tosixel.c. Rated high severity (C
An issue was discovered in libsixel 1.8.2. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, n
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
libsixel before 1.10 is vulnerable to Buffer Overflow in libsixel/src/quant.c:867. Rated high severity (CVSS 8.8), this
libsixel 1.8.6 is affected by Buffer Overflow in libsixel/src/quant.c:876. Rated high severity (CVSS 8.8), this vulnerab
libsixel 1.8.6 suffers from a Heap Use After Free vulnerability in in libsixel/src/dither.c:388. Rated high severity (CV
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
EUVD-2026-22748
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB