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

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-11T21:23:35.259Z
- Modified: 2026-10-26T18:10:00.173Z
- Weaknesses: CWE-122, CWE-190, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cacalabs libcaca: <= 0.99.beta20

## References

- <https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w> (exploit)
- <https://github.com/cacalabs/libcaca/issues/86>
- <https://github.com/cacalabs/libcaca/commit/fb77acff9ba6bb01d53940da34fb10f20b156a23>

## Sources

- CVE List: [CVE-2026-42046](https://www.cve.org/CVERecord?id=CVE-2026-42046), CVE Terms of Use, modified 2026-05-12
- NVD: [CVE-2026-42046](https://nvd.nist.gov/vuln/detail/CVE-2026-42046), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42046 · Whole record: https://cve.day/CVE-2026-42046.json · Rebuilt by cve.day 2026-11-25T22:59:21.294Z
