CVE-2026-42046 json
libcaca: Heap OOB write in canvas import functions caused by int overflow
published 2026-05-11 5 mo ago modified 2026-10-26 13 d ago also EUVD-2026-29326
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- libcaca Debian 12 0.99.beta20-3+deb12u1
- libcaca Debian 13 0.99.beta20-5+deb13u1
- libcaca Debian 14 0.99.beta20-7
debian advisories DEBIAN-CVE-2026-42046
- libcaca Ubuntu 22.04 LTS 0.99.beta19-2.2ubuntu4.2
- libcaca Ubuntu 24.04 LTS 0.99.beta20-4ubuntu0.2
- libcaca Ubuntu 25.10 0.99.beta20-5ubuntu0.25.10.2
- libcaca Ubuntu 26.04 LTS 0.99.beta20-6ubuntu2.1
ubuntu advisories UBUNTU-CVE-2026-42046
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libcaca SLES for SAP applications 16.0, SLES 16.0 0.99.beta20-160000.3.1
- libcaca SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 0.99.beta19.git20171003-150200.11.12.1
- libcaca SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Basesystem 15 SP7 0.99.beta20-150600.3.3.1
- libcaca SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 0.99.beta18-14.15.1
suse advisories SUSE-SU-2026:22175-1SUSE-SU-2026:2424-1SUSE-SU-2026:2423-1SUSE-SU-2026:2394-1
- libcaca openSUSE Leap 16.0 0.99.beta20-160000.3.1
- libcaca openSUSE Tumbleweed 0.99.beta20+git.1776622070.7c8e333-1.1
opensuse advisories openSUSE-SU-2026:21101-1openSUSE-SU-2026:10834-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-42046 updated cvss 7.8
libcaca: libcaca: Remote Code Execution via crafted "caca" format file
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 5 mo ago
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected products
- cacalabs libcaca
Classification
References
Sources
- CVE List CVE-2026-42046
- NVD CVE-2026-42046
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.