Skip to content

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

HighCVSS 7.8 EPSS 0.37%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

7 packages: 6 fixed.

PackageAffectedFixed inStatus
debian/libcaca(Debian 12) < 0.99.beta20-3+deb12u1; = 0.99.beta20-3 0.99.beta20-3+deb12u1 Fixed
debian/libcaca(Debian 13) < 0.99.beta20-5+deb13u1; = 0.99.beta20-5 0.99.beta20-5+deb13u1 Fixed
debian/libcaca(Debian 14) < 0.99.beta20-7; = 0.99.beta20-5; = 0.99.beta20-6 0.99.beta20-7 Fixed
ubuntu/libcaca(Ubuntu 22.04) < 0.99.beta19-2.2ubuntu4.2 0.99.beta19-2.2ubuntu4.2 Fixed
ubuntu/libcaca(Ubuntu 24.04) < 0.99.beta20-4ubuntu0.2 0.99.beta20-4ubuntu0.2 Fixed
ubuntu/libcaca(Ubuntu 26.04) < 0.99.beta20-6ubuntu2.1 0.99.beta20-6ubuntu2.1 Fixed
cacalabs libcaca = <= 0.99.beta20 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cacalabs libcaca = <= 0.99.beta20 No fix listed
debian/libcaca(Debian:12) < 0.99.beta20-3+deb12u1 0.99.beta20-3+deb12u1
debian/libcaca(Debian:12) = 0.99.beta20-3 No fix listed
debian/libcaca(Debian:13) < 0.99.beta20-5+deb13u1 0.99.beta20-5+deb13u1
debian/libcaca(Debian:13) = 0.99.beta20-5 No fix listed
debian/libcaca(Debian:14) < 0.99.beta20-7 0.99.beta20-7
debian/libcaca(Debian:14) = 0.99.beta20-5 No fix listed
debian/libcaca(Debian:14) = 0.99.beta20-6 No fix listed
ubuntu/libcaca(Ubuntu:22.04) < 0.99.beta19-2.2ubuntu4.2 0.99.beta19-2.2ubuntu4.2
ubuntu/libcaca(Ubuntu:24.04) < 0.99.beta20-4ubuntu0.2 0.99.beta20-4ubuntu0.2
ubuntu/libcaca(Ubuntu:26.04) < 0.99.beta20-6ubuntu2.1 0.99.beta20-6ubuntu2.1

References