CVE-2026-42046
libcaca: Heap OOB write in canvas import functions caused by int overflow
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.8
libcaca: Heap OOB write in canvas import functions caused by int overflow
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.
- Record
CVE-2026-42046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-122, CWE-190, CWE-787
- Updated
- 2026-11-02
EUVDEUVD-2026-29326
7.8
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.
- Record
EUVD-2026-29326- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
NVD
7.8
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.
- Record
CVE-2026-42046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-122, CWE-190, CWE-787
- Updated
- 2026-11-02
OSV
7.8
libcaca: Heap OOB write in canvas import functions caused by int overflow
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.
- Record
CVE-2026-42046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-122, CWE-190, CWE-787
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-42046
7.8
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.
- Record
DEBIAN-CVE-2026-42046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-42046
7.8
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.
- Record
UBUNTU-CVE-2026-42046- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVMGASA-2026-0171 No score
Updated libcaca packages fix security vulnerability
Heap OOB write in canvas import functions caused by int overflow. (CVE-2026-42046)
- Record
MGASA-2026-0171- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10834-1 No score
caca-utils-0.99.beta20+git.1776622070.7c8e333-1.1 on GA media
These are all security issues fixed in the caca-utils-0.99.beta20+git.1776622070.7c8e333-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10834-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:21101-1 No score
Security update for libcaca
This update for libcaca fixes the following issue
- CVE-2026-42046: an integer overflow vulnerability in libcaca's canvas import functionality may allow an attacker to cause a controlled heap out-of-bounds write (bsc#1264984).
- Record
openSUSE-SU-2026:21101-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:22175-1 No score
Security update for libcaca
This update for libcaca fixes the following issue
- CVE-2026-42046: an integer overflow vulnerability in libcaca's canvas import functionality may allow an attacker to cause a controlled heap out-of-bounds write (bsc#1264984).
- Record
SUSE-SU-2026:22175-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:2394-1 No score
Security update for libcaca
This update for libcaca fixes the following issue
- CVE-2026-42046: an integer overflow vulnerability in libcaca's canvas import functionality may allow an attacker to cause a controlled heap out-of-bounds write (bsc#1264984).
- Record
SUSE-SU-2026:2394-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:2423-1 No score
Security update for libcaca
This update for libcaca fixes the following issue
- CVE-2026-42046: an integer overflow vulnerability in libcaca's canvas import functionality may allow an attacker to cause a controlled heap out-of-bounds write (bsc#1264984).
- Record
SUSE-SU-2026:2423-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:2424-1 No score
Security update for libcaca
This update for libcaca fixes the following issue
- CVE-2026-42046: an integer overflow vulnerability in libcaca's canvas import functionality may allow an attacker to cause a controlled heap out-of-bounds write (bsc#1264984).
- Record
SUSE-SU-2026:2424-1- Updated
- 2026-11-02
OSVUSN-8318-1 No score
libcaca vulnerability
It was discovered that libcaca incorrectly handled certain malformed files. An attacker could use this issue to cause libcaca to crash, resulting in a denial of service, or possibly execute arbitrary code.
- Record
USN-8318-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libcacaDebian:12 |
before 0.99.beta20-3+deb12u1, plus listed versions 0.99.beta20-3 |
0.99.beta20-3+deb12u1 |
libcacaDebian:13 |
before 0.99.beta20-5+deb13u1, plus listed versions 0.99.beta20-5 |
0.99.beta20-5+deb13u1 |
libcacaDebian:14 |
before 0.99.beta20-7, plus listed versions 0.99.beta20-50.99.beta20-6 |
0.99.beta20-7 |
libcacaMageia:9 |
before 0.99-0.beta19.11.1.mga9 | 0.99-0.beta19.11.1.mga9 |
libcacaSUSE:Linux Enterprise Server 16.0 |
before 0.99.beta20-160000.3.1 | 0.99.beta20-160000.3.1 |
libcacaSUSE:Linux Enterprise Server for SAP applications 16.0 |
before 0.99.beta20-160000.3.1 | 0.99.beta20-160000.3.1 |
libcacaSUSE:Linux Enterprise Server 12 SP5-LTSS |
before 0.99.beta18-14.15.1 | 0.99.beta18-14.15.1 |
libcacaSUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 |
before 0.99.beta18-14.15.1 | 0.99.beta18-14.15.1 |
libcacaSUSE:Linux Enterprise Module for Basesystem 15 SP7 |
before 0.99.beta20-150600.3.3.1 | 0.99.beta20-150600.3.3.1 |
libcacaSUSE:Linux Enterprise Server 15 SP6-LTSS |
before 0.99.beta20-150600.3.3.1 | 0.99.beta20-150600.3.3.1 |
Show 19 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libcacaSUSE:Linux Enterprise Server for SAP Applications 15 SP6 |
before 0.99.beta20-150600.3.3.1 | 0.99.beta20-150600.3.3.1 |
libcacaSUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS |
before 0.99.beta19.git20171003-150200.11.12.1 | 0.99.beta19.git20171003-150200.11.12.1 |
libcacaSUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS |
before 0.99.beta19.git20171003-150200.11.12.1 | 0.99.beta19.git20171003-150200.11.12.1 |
libcacaSUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS |
before 0.99.beta19.git20171003-150200.11.12.1 | 0.99.beta19.git20171003-150200.11.12.1 |
libcacaSUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS |
before 0.99.beta19.git20171003-150200.11.12.1 | 0.99.beta19.git20171003-150200.11.12.1 |
libcacaSUSE:Linux Enterprise Server 15 SP4-LTSS |
before 0.99.beta19.git20171003-150200.11.12.1 | 0.99.beta19.git20171003-150200.11.12.1 |
libcacaSUSE:Linux Enterprise Server 15 SP5-LTSS |
before 0.99.beta19.git20171003-150200.11.12.1 | 0.99.beta19.git20171003-150200.11.12.1 |
libcacaSUSE:Linux Enterprise Server for SAP Applications 15 SP4 |
before 0.99.beta19.git20171003-150200.11.12.1 | 0.99.beta19.git20171003-150200.11.12.1 |
libcacaSUSE:Linux Enterprise Server for SAP Applications 15 SP5 |
before 0.99.beta19.git20171003-150200.11.12.1 | 0.99.beta19.git20171003-150200.11.12.1 |
libcacaUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 0.99.beta18-1ubuntu20.99.beta18-1ubuntu30.99.beta18-1ubuntu40.99.beta18-1ubuntu50.99.beta18-1ubuntu5.10.99.beta18-1ubuntu5.1+esm10.99.beta18-1ubuntu5.1+esm20.99.beta18-1ubuntu5.1+esm3 |
None known |
libcacaUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 0.99.beta19-2build2~gcc5.10.99.beta19-2build2~gcc5.20.99.beta19-2ubuntu0.16.04.10.99.beta19-2ubuntu0.16.04.20.99.beta19-2ubuntu0.16.04.2+esm10.99.beta19-2ubuntu0.16.04.2+esm2 |
None known |
libcacaUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 0.99.beta19-2build2~gcc5.20.99.beta19-2build2~gcc5.30.99.beta19-2ubuntu0.18.04.10.99.beta19-2ubuntu0.18.04.20.99.beta19-2ubuntu0.18.04.30.99.beta19-2ubuntu0.18.04.3+esm1 |
None known |
libcacaUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 0.99.beta19-2.10.99.beta19-2.1ubuntu10.99.beta19-2.1ubuntu1.20.04.10.99.beta19-2.1ubuntu1.20.04.20.99.beta19-2.1ubuntu1.20.04.2+esm1 |
None known |
libcacaUbuntu:22.04:LTS |
before 0.99.beta19-2.2ubuntu4.2, plus listed versions 0.99.beta19-2.2ubuntu20.99.beta19-2.2ubuntu30.99.beta19-2.2ubuntu40.99.beta19-2.2ubuntu4.1 |
0.99.beta19-2.2ubuntu4.2 |
libcacaUbuntu:24.04:LTS |
before 0.99.beta20-4ubuntu0.2, plus listed versions 0.99.beta20-3build10.99.beta20-40.99.beta20-4build10.99.beta20-4build20.99.beta20-4ubuntu0.1 |
0.99.beta20-4ubuntu0.2 |
libcacaUbuntu:25.10 |
before 0.99.beta20-5ubuntu0.25.10.2, plus listed versions 0.99.beta20-50.99.beta20-5ubuntu0.25.10.1 |
0.99.beta20-5ubuntu0.25.10.2 |
libcacaUbuntu:26.04:LTS |
before 0.99.beta20-6ubuntu2.1, plus listed versions 0.99.beta20-50.99.beta20-60.99.beta20-6ubuntu10.99.beta20-6ubuntu2 |
0.99.beta20-6ubuntu2.1 |
libcacaopenSUSE:Tumbleweed |
before 0.99.beta20+git.1776622070.7c8e333-1.1 | 0.99.beta20+git.1776622070.7c8e333-1.1 |
libcacaopenSUSE:Leap 16.0 |
before 0.99.beta20-160000.3.1 | 0.99.beta20-160000.3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-42046 is a high vulnerability (CVSS 7.8) in Cacalabs Libcaca, published May 11, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.37%, the 30th percentile. Fixed in libcaca 0.99.beta20-3+deb12u1.
References
github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w
github.com/cacalabs/libcaca/issues/86
github.com/cacalabs/libcaca/commit/fb77acff9ba6bb01d53940da34fb10f20b156a23
github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42046.json
nvd.nist.gov/vuln/detail/CVE-2026-42046
security-tracker.debian.org/tracker/CVE-2026-42046
Show 11 moreShow less
advisories.mageia.org/MGASA-2026-0171.html
bugs.mageia.org/show_bug.cgi?id=35600
ubuntu.com/security/notices/USN-8318-1
suse.com/support/update/announcement/2026/suse-su-202622175-1
bugzilla.suse.com/1264984
suse.com/security/cve/CVE-2026-42046
suse.com/support/update/announcement/2026/suse-su-20262394-1
suse.com/support/update/announcement/2026/suse-su-20262423-1
suse.com/support/update/announcement/2026/suse-su-20262424-1
ubuntu.com/security/CVE-2026-42046
cve.org/CVERecord?id=CVE-2026-42046