CVEfocus › CVE database › CVE-2026-42046

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

CVSS 7.8 HighEPSS 0.3% (higher than 18% of CVEs)Published 2026-05-11Updated 2026-05-12Assigner: GitHub_M

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.

CWE-122CWE-190CWE-787

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
4Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libcacaFixed0.99.beta20-6ubuntu2.1UBUNTU-CVE-2026-42046
Ubuntu 25.10libcacaFixed0.99.beta20-5ubuntu0.25.10.2UBUNTU-CVE-2026-42046
Ubuntu 24.04libcacaFixed0.99.beta20-4ubuntu0.2UBUNTU-CVE-2026-42046
Ubuntu 22.04libcacaFixed0.99.beta19-2.2ubuntu4.2UBUNTU-CVE-2026-42046
Ubuntu 20.04libcacaFix pendingUBUNTU-CVE-2026-42046
Ubuntu 18.04libcacaFix pendingUBUNTU-CVE-2026-42046
Ubuntu 16.04libcacaFix pendingUBUNTU-CVE-2026-42046
Ubuntu 14.04libcacaFix pendingUBUNTU-CVE-2026-42046
Debian 14libcacaFixed0.99.beta20-7DEBIAN-CVE-2026-42046
Debian 13libcacaFixed0.99.beta20-5+deb13u1DEBIAN-CVE-2026-42046
Debian 12libcacaFixed0.99.beta20-3+deb12u1DEBIAN-CVE-2026-42046

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.