Heap-based buffer overflow in libcaca - CVE-2026-42046
Published: April 25, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to a heap-based buffer overflow caused by integer overflow in the canvas import functions when parsing a crafted file in the "caca" format. A remote attacker can supply a specially crafted file to execute arbitrary code.
User interaction is required to open or import the crafted file, and the impact may depend on the build configuration and memory allocator.
Affected software
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
Basesystem Module
openSUSE Leap
Ubuntu
Fedora
libcaca0-plugins
libcaca0
libcaca0-debuginfo
libcaca-devel
libcaca-debugsource
libcaca0-plugins-debuginfo
libcaca (Ubuntu package)
caca-utils
libcaca-ruby-debuginfo
libcaca-ruby
python3-caca
libcaca0-plugins-32bit-debuginfo
libcaca0-32bit
libcaca0-plugins-32bit
libcaca0-32bit-debuginfo
libcaca0-plugins-64bit-debuginfo
libcaca0-plugins-64bit
libcaca0-64bit
libcaca0-64bit-debuginfo
caca-utils-debuginfo
libcaca
How to mitigate CVE-2026-42046
libcaca0 - addressed in versions 0.99 beta18-14.15.1, 0.99 beta19.git20171003-150200.11.12.1, 0.99 beta20-150600.3.3.1
libcaca0-debuginfo - addressed in versions 0.99 beta18-14.15.1, 0.99 beta19.git20171003-150200.11.12.1, 0.99 beta20-150600.3.3.1
libcaca-devel - addressed in versions 0.99 beta18-14.15.1, 0.99 beta19.git20171003-150200.11.12.1, 0.99 beta20-150600.3.3.1
libcaca-debugsource - addressed in versions 0.99 beta18-14.15.1, 0.99 beta19.git20171003-150200.11.12.1, 0.99 beta20-150600.3.3.1
libcaca0-plugins-debuginfo - addressed in versions 0.99 beta18-14.15.1, 0.99 beta19.git20171003-150200.11.12.1, 0.99 beta20-150600.3.3.1
libcaca (Ubuntu package) - addressed in versions 0.99 beta19-2.2ubuntu4.2, 0.99 beta20-4ubuntu0.2, 0.99 beta20-5ubuntu0.25.10.2, 0.99 beta20-6ubuntu2.1
caca-utils - update to 0.99 beta20-150600.3.3.1
libcaca-ruby-debuginfo - update to 0.99 beta20-150600.3.3.1
libcaca-ruby - update to 0.99 beta20-150600.3.3.1
python3-caca - update to 0.99 beta20-150600.3.3.1
libcaca0-plugins-32bit-debuginfo - update to 0.99 beta20-150600.3.3.1
libcaca0-32bit - update to 0.99 beta20-150600.3.3.1
libcaca0-plugins-32bit - update to 0.99 beta20-150600.3.3.1
libcaca0-32bit-debuginfo - update to 0.99 beta20-150600.3.3.1
libcaca0-plugins-64bit-debuginfo - update to 0.99 beta20-150600.3.3.1
libcaca0-plugins-64bit - update to 0.99 beta20-150600.3.3.1
libcaca0-64bit - update to 0.99 beta20-150600.3.3.1
libcaca0-64bit-debuginfo - update to 0.99 beta20-150600.3.3.1
caca-utils-debuginfo - update to 0.99 beta20-150600.3.3.1
libcaca - update to 0.99-0.83.beta20.fc45