CVE-2026-42046CWE-122CWE-190CWE-787

libcaca: Heap OOB write in canvas import functions caused by int overflow

High · published May 11, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
24.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00327 · 24.6th percentile
Weaknesses
CWE-122 · Heap-based Buffer Overflow; CWE-190 · Integer Overflow or Wraparound; CWE-787 · Out-of-bounds Write
Published
2026-05-11T21:23Z
EPSS history
Timeline
  • 11 MAY 21:23Z
    libcaca: Heap OOB write in canvas import functions caused by int overflow
    cvelistv5