CVE-2026-42046
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-42046 NameCVE-2026-42046 Descriptionlibcaca 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β¦
CVE-2026-42046
| Name | CVE-2026-42046 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1136952 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| libcaca (PTS) | bullseye | 0.99.beta19-2.2 | vulnerable |
| bullseye (security) | 0.99.beta19-2.2+deb11u1 | vulnerable | |
| bookworm | 0.99.beta20-3 | vulnerable | |
| trixie | 0.99.beta20-5 | vulnerable | |
| forky | 0.99.beta20-6 | vulnerable | |
| sid | 0.99.beta20-7 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| libcaca | source | (unstable) | 0.99.beta20-7 | 1136952 |
Notes
[trixie] - libcaca <no-dsa> (Minor issue)
[bookworm] - libcaca <no-dsa> (Minor issue)
https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w
https://github.com/cacalabs/libcaca/issues/86
Fixed by: https://github.com/cacalabs/libcaca/commit/fb77acff9ba6bb01d53940da34fb10f20b156a23
Apply commands
[trixie] - libcaca <no-dsa> (Minor issue)[bookworm] - libcaca <no-dsa> (Minor issue)https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56whttps://github.com/cacalabs/libcaca/issues/86Fixed by: https://github.com/cacalabs/libcaca/commit/fb77acff9ba6bb01d53940da34fb10f20b156a23
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| β | Affected | β |
Debian Mixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Affected | β |
| sid | Fixed | 0.99.beta20-7 |
| forky | Fixed | 0.99.beta20-7 |
| bullseye | Affected | β |
| bookworm | Affected | β |
References
- https://github.com/cacalabs/libcaca/commit/fb77acff9ba6bb01d53940da34fb10f20b156a23
- https://github.com/cacalabs/libcaca/issues/86
- https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w
- https://security-tracker.debian.org/tracker/CVE-2026-42046
- https://www.suse.com/security/cve/CVE-2026-42046.html
CWEs
CWE-122 CWE-190 CWE-787
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.