Heap-based Buffer Overflow Affecting libcaca package, versions <0.99.beta20-5+e1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.37% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-LIBCACA-19643747
  • published8 Sept 2026
  • disclosed11 May 2026

Introduced: 11 May 2026

CVE-2026-42046  (opens in a new tab)
CWE-122  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Echo:latest libcaca to version 0.99.beta20-5+e1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libcaca package and not the libcaca package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1