CVE-2026-33021 in Saitoha Libsixel
libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. Versions 1.8.7 and prior contain a use-after-free vulnerability in sixel_encoder_encode_bytes() because sixel_frame_init() stores the caller-owned pixel buffer pointer directly in frame->pixels without making a defensive copy. When a resi...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Saitoha | Libsixel | < 1.8.7-r1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. Versions 1.8.7 and prior contain a use-after-free vulnerability in sixel_encoder_encode_bytes() because sixel_frame_init() stores the caller-owned pixel buffer pointer directly in frame->pixels without making a defensive copy. When a resize operation is triggered, sixel_frame_convert_to_rgb888() unconditionally frees this caller-owned buffer and replaces it with a new internal allocation, leaving the caller with a dangling pointer. Any subsequent access to the original buffer by the caller constitutes a use-after-free, confirmed by AddressSanitizer. An attacker who controls incoming frames can trigger this bug repeatedly and predictably, resulting in a reliable crash with potential for code execution. This issue has been fixed in version 1.8.7-r1.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-33021 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-150864-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| Published | 2026-04-14 |
| Last modified | 2026-07-25 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-416: Use After Free
Software references memory after it has been freed, leading to corruption, crashes, or code execution.
Analysis AI-written, not human-reviewed
libsixel versions 1.8.7 and prior contain a use-after-free vulnerability in the sixel_encoder_encode_bytes() function, which can lead to memory corruption and potentially arbitrary code execution.
An attacker can exploit this vulnerability by providing specially crafted input to the sixel_encoder_encode_bytes() function, which can cause a use-after-free condition when a resize operation is triggered.
Questions
What is CVE-2026-33021?
libsixel versions 1.8.7 and prior contain a use-after-free vulnerability in the sixel_encoder_encode_bytes() function, which can lead to memory corruption and potentially arbitrary code execution.
What is the CVSS score for CVE-2026-33021?
CVE-2026-33021 has CVSS 7.3 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H. EPSS: 0.2%.
Is CVE-2026-33021 actively exploited?
No confirmed active exploitation of CVE-2026-33021 as of 2026-07-26.
How do I remediate CVE-2026-33021?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-33021?
CVE-2026-33021 affects Saitoha Libsixel.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Saitoha","product":"Libsixel","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-25.