CVE-2026-42046 Details
Description
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.
A heap overflow vulnerability has been identified in libcaca versions through 0.99.beta20. This vulnerability arises from an integer overflow in the canvas import functionality, allowing an attacker to cause a controlled out-of-bounds write in the heap by supplying a crafted file in the 'caca' format. The issue is rooted in an incorrect overflow check that fails to prevent large width and height values from being multiplied in a way that overflows and wraps to zero. This oversight can lead to memory corruption or remote code execution, depending on the build configuration and memory allocator.
Users can update to the patched version of libcaca, which is available in the official repositories.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 11, 2026CISA-ADP
Assessed May 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/cacalabs/libcaca/commit/fb77acff9ba6bb01d53940da34fb10f20b156a23 | [email protected] | Source CodeVendor |
| https://github.com/cacalabs/libcaca/issues/86 | [email protected] | ExploitIssue TrackingTechnical AnalysisVendor |
| https://github.com/cacalabs/libcaca/security/advisories/GHSA-4vvg-vrqv-m56w | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libcaca | <= 0.99.beta20 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | New CVE Received | [email protected] |
Volerion