CVE-2026-42046
libcaca: Heap OOB write in canvas import functions caused by int overflow
Reported by github_m · Published May 11, 2026
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.
EPSS 0.37% · 31.1th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| cacalabs | libcaca | <= 0.99.beta20 |
| cacalabs | libcaca | <= 0.99.beta20 |
Timeline
- May 11, 2026 CVE Published
- May 12, 2026 CVE Updated
- May 15, 2026 Security Advisory
- May 18, 2026 EPSS Score (30 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-42046
vulnetix vdb fixes CVE-2026-42046
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42046/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w x_refsource_CONFIRM
- https://github.com/cacalabs/libcaca/issues/86 x_refsource_MISC
- https://github.com/cacalabs/libcaca/commit/fb77acff9ba6bb01d53940da34fb10f20b156a23 x_refsource_MISC