Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111143 Overview
CVE-2026-111143 is an out-of-bounds read vulnerability in Ansilove libansilove through version 1.4.2. The flaw resides in the ansilove_xbin() function in src/loaders/xbin.c, which decodes run-length encoded (RLE) compressed XBIN art files. The loader lacks bounds checks when processing compressed run-length records. Attackers can craft an XBIN file that terminates with a control byte such as 0x7F to force the decoder to read past the end of the input buffer. Applications that use libansilove to render untrusted XBIN art will crash when parsing the malicious file. The vulnerability is tracked under CWE-125: Out-of-Bounds Read.
Critical Impact
Processing an attacker-controlled XBIN file causes applications linked against libansilove to crash, resulting in denial of service for ANSI/XBIN art rendering workflows.
Affected Products
- Ansilove libansilove versions through 1.4.2
- Applications and services that link libansilove to render XBIN art
- Downstream converters and viewers that invoke ansilove_xbin() on untrusted input
Discovery Timeline
- 2026-10-15 - CVE-2026-111143 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-111143
Vulnerability Analysis
The defect lives in the XBIN loader in src/loaders/xbin.c between lines 169 and 241. XBIN supports an optional RLE compression scheme in which a control byte encodes a repeat count followed by character and attribute bytes. The decoder in ansilove_xbin() reads the control byte, calculates the number of iterations, and then fetches the following payload bytes without verifying that those bytes remain inside the mapped input buffer. When the final control byte in a crafted file is 0x7F, the function attempts to read payload bytes beyond the end of the file. The read dereferences memory outside the allocated buffer, which triggers a crash in the host application. The vulnerability maps to CWE-125 and the required user interaction is limited to opening or rendering the malicious XBIN file.
Root Cause
The RLE decoding loop trusts the compressed stream to be well formed. It does not compare the current read offset plus the expected payload length against the size of the input buffer before dereferencing bytes. A truncated file whose final record claims additional payload bytes causes the loop to continue past the buffer boundary.
Attack Vector
Exploitation requires a local user to open or render a crafted XBIN file with an application that uses libansilove. The attack vector is local and requires user interaction, but delivery is practical through email attachments, archive extractions, art sharing boards, and web downloads that feed XBIN files into converters or thumbnailers. The result is reliable denial of service against the parsing process.
No verified public exploit code is available at this time. See the VulnCheck Security Advisory and the HackMD Out-of-Bounds Read Analysis for technical details, and review the vulnerable source range in xbin.c.
Detection Methods for CVE-2026-111143
Indicators of Compromise
- XBIN files whose compressed stream ends with a control byte of 0x7F without the expected trailing payload bytes.
- Application crashes, segmentation faults, or ASan heap-buffer-overflow READ reports originating in ansilove_xbin() or callers in src/loaders/xbin.c.
- Repeated parser crashes in converters, thumbnailers, or art viewers that process user-supplied .xb files.
Detection Strategies
- Run libansilove-based tooling under AddressSanitizer in test pipelines to surface out-of-bounds reads during XBIN parsing.
- Fuzz the XBIN loader with structure-aware inputs that mutate the final RLE control byte to validate bounds enforcement.
- Alert on repeated abnormal termination of processes that embed libansilove, correlated with recently delivered XBIN files.
Monitoring Recommendations
- Log and review process exit codes and core dumps for art rendering services that accept untrusted uploads.
- Monitor file ingestion gateways for XBIN files received from external sources and track parser error rates.
- Track the installed version of libansilove across endpoints and servers to confirm versions at or below 1.4.2 are remediated.
How to Mitigate CVE-2026-111143
Immediate Actions Required
- Inventory all systems and applications that link libansilove 1.4.2 or earlier, including packaged distributions and bundled copies.
- Restrict acceptance of XBIN files from untrusted sources until the library is patched or wrapped with input validation.
- Isolate rendering workloads that process user-supplied art in sandboxed or short-lived processes to contain crashes.
Patch Information
No fixed release is referenced in the published advisory data for CVE-2026-111143. Track the Ansilove libansilove GitHub repository and the VulnCheck Security Advisory for a patched version and apply it to all affected systems once released. Downstream distributions that ship libansilove should rebuild and republish packages after the upstream fix lands.
Workarounds
- Validate incoming XBIN files against the documented XBIN header and reject files whose compressed stream is truncated relative to declared dimensions.
- Wrap ansilove_xbin() calls in a child process or sandbox so that a crash does not take down the parent service.
- Disable XBIN rendering in applications that do not require it, or restrict file sources to trusted users.
# Configuration example
# Confirm the installed libansilove version on Linux systems
pkg-config --modversion libansilove 2>/dev/null || \
ldconfig -p | grep libansilove
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

