Vulnerability · Published May 11, 2026 · Assigned by GitHub_M

CVE-2026-42046libcaca: Heap OOB write in canvas import functions caused by int overflow

High 7.8

In plain English

A high-severity heap buffer overflow in libcaca from cacalabs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.4%top 69.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

libcaca is a colour ASCII art library. In 0.99.beta20 and earlier, an integer overflow vulnerability in libcaca's canvas import functionality allows an attacker to cause a controlled heap out-of-bounds write (heap overflow) by supplying a crafted file in the "caca" format. Depending on the build configuration and memory allocator, this may lead to memory corruption or remote code execution. This is the same vulnerability as CVE-2021-3410 but the fix at that time was not fully correct. Commit fb77acff9ba6bb01d53940da34fb10f20b156a23 fixes this vulnerability.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libcaca0.99.beta20-3+deb12u1DEBIAN-CVE-2026-42046
Debian:13libcaca0.99.beta20-5+deb13u1DEBIAN-CVE-2026-42046
Debian:14libcaca0.99.beta20-7DEBIAN-CVE-2026-42046
Ubuntu:22.04:LTSlibcaca0.99.beta19-2.2ubuntu4.2USN-8318-1
Ubuntu:22.04:LTSlibcaca0.99.beta19-2.2ubuntu4.2UBUNTU-CVE-2026-42046
Ubuntu:24.04:LTSlibcaca0.99.beta20-4ubuntu0.2USN-8318-1
Ubuntu:24.04:LTSlibcaca0.99.beta20-4ubuntu0.2UBUNTU-CVE-2026-42046
Ubuntu:25.10libcaca0.99.beta20-5ubuntu0.25.10.2USN-8318-1
Ubuntu:25.10libcaca0.99.beta20-5ubuntu0.25.10.2UBUNTU-CVE-2026-42046
Ubuntu:26.04:LTSlibcaca0.99.beta20-6ubuntu2.1UBUNTU-CVE-2026-42046
Ubuntu:26.04:LTSlibcaca0.99.beta20-6ubuntu2.1USN-8318-1

Affected products (as reported)

VendorProductVersions
cacalabs libcaca <= 0.99.beta20

Weakness: CWE-122, CWE-190, CWE-787 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References