CVE-2026-42046libcaca: Heap OOB write in canvas import functions caused by int overflow
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libcaca | Fixed | 0.99.beta20-6ubuntu2.1 | UBUNTU-CVE-2026-42046 |
| Ubuntu 25.10 | libcaca | Fixed | 0.99.beta20-5ubuntu0.25.10.2 | UBUNTU-CVE-2026-42046 |
| Ubuntu 24.04 | libcaca | Fixed | 0.99.beta20-4ubuntu0.2 | UBUNTU-CVE-2026-42046 |
| Ubuntu 22.04 | libcaca | Fixed | 0.99.beta19-2.2ubuntu4.2 | UBUNTU-CVE-2026-42046 |
| Ubuntu 20.04 | libcaca | Fix pending | UBUNTU-CVE-2026-42046 | |
| Ubuntu 18.04 | libcaca | Fix pending | UBUNTU-CVE-2026-42046 | |
| Ubuntu 16.04 | libcaca | Fix pending | UBUNTU-CVE-2026-42046 | |
| Ubuntu 14.04 | libcaca | Fix pending | UBUNTU-CVE-2026-42046 | |
| Debian 14 | libcaca | Fixed | 0.99.beta20-7 | DEBIAN-CVE-2026-42046 |
| Debian 13 | libcaca | Fixed | 0.99.beta20-5+deb13u1 | DEBIAN-CVE-2026-42046 |
| Debian 12 | libcaca | Fixed | 0.99.beta20-3+deb12u1 | DEBIAN-CVE-2026-42046 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- cacalabs libcaca: affected: <= 0.99.beta20
References
- https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w
- https://github.com/cacalabs/libcaca/issues/86
- https://github.com/cacalabs/libcaca/commit/fb77acff9ba6bb01d53940da34fb10f20b156a23
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.