Skip to content
OpenAdvisories
High · 7.8 CVE-2026-42046 EUVD-2026-29326

libcaca: Heap OOB write in canvas import functions caused by int overflow

Published May 11, 2026 · Updated May 12, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
cacalabs libcaca <= 0.99.beta20 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcaca 0.99.beta20-7 —
Debian 13 libcaca 0.99.beta20-5+deb13u1 —
Debian 12 libcaca 0.99.beta20-3+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libcaca 0.99.beta20-6ubuntu2.1 USN-8318-1
Ubuntu 25.10 libcaca 0.99.beta20-5ubuntu0.25.10.2 USN-8318-1
Ubuntu 24.04 LTS libcaca 0.99.beta20-4ubuntu0.2 USN-8318-1
Ubuntu 22.04 LTS libcaca 0.99.beta19-2.2ubuntu4.2 USN-8318-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libcaca No fix yet —
Ubuntu Pro 18.04 LTS libcaca No fix yet —
Ubuntu Pro 16.04 LTS libcaca No fix yet —
Ubuntu Pro 14.04 LTS libcaca No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 libcaca 0.99.beta20-150600.3.3.1 SUSE-SU-2026:2423-1
SLES 15 SP6 libcaca 0.99.beta20-150600.3.3.1 SUSE-SU-2026:2423-1
SLES 15 SP5 libcaca 0.99.beta19.git20171003-150200.11.12.1 SUSE-SU-2026:2424-1
SLES 15 SP4 libcaca 0.99.beta19.git20171003-150200.11.12.1 SUSE-SU-2026:2424-1
SLES 12 SP5 libcaca 0.99.beta18-14.15.1 SUSE-SU-2026:2394-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 libcaca 0.99.beta20-160000.3.1 SUSE-SU-2026:22175-1
SLES for SAP 15 SP6 libcaca 0.99.beta20-150600.3.3.1 SUSE-SU-2026:2423-1
SLES for SAP 15 SP5 libcaca 0.99.beta19.git20171003-150200.11.12.1 SUSE-SU-2026:2424-1
SLES for SAP 15 SP4 libcaca 0.99.beta19.git20171003-150200.11.12.1 SUSE-SU-2026:2424-1
SLES 16.0 libcaca 0.99.beta20-160000.3.1 SUSE-SU-2026:22175-1
SLE HPC 15 SP5 libcaca 0.99.beta19.git20171003-150200.11.12.1 SUSE-SU-2026:2424-1
SLE HPC 15 SP4 libcaca 0.99.beta19.git20171003-150200.11.12.1 SUSE-SU-2026:2424-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libcaca 0.99.beta20+git.1776622070.7c8e333-1.1 openSUSE-SU-2026:10834-1
openSUSE Leap 16.0 libcaca 0.99.beta20-160000.3.1 openSUSE-SU-2026:21101-1

Advisories 7

References