CVE-2026-42046: CWE-122: Heap-based Buffer Overflow in cacalabs libcaca
CVE-2026-42046 is a heap-based buffer overflow vulnerability in libcaca versions 0.99.beta20 and earlier. It arises from an integer overflow in the canvas import functionality when processing crafted 'caca' format files. This vulnerability can lead to controlled heap out-of-bounds writes, potentially causing memory corruption or remote code execution depending on the build and memory allocator. It is a recurrence of CVE-2021-3410, with the previous fix being incomplete. A specific commit (fb77acff9ba6bb01d53940da34fb10f20b156a23) addresses this issue. The CVSS score is 7.8, indicating high severity.
AI Analysis
Technical Summary
The vulnerability in libcaca's canvas import functionality allows an attacker to trigger an integer overflow by supplying a specially crafted 'caca' format file. This overflow results in a heap-based buffer overflow (CWE-122), causing a controlled out-of-bounds write. Depending on the environment, this can lead to memory corruption or remote code execution. This issue is a reappearance of CVE-2021-3410, as the initial fix was insufficient. The vulnerability affects libcaca versions up to and including 0.99.beta20. The fix is implemented in commit fb77acff9ba6bb01d53940da34fb10f20b156a23. No official remediation level or patch link is provided in the data.
Potential Impact
Successful exploitation can lead to high-impact consequences including full confidentiality, integrity, and availability compromise of affected systems. Specifically, it may allow remote code execution or cause memory corruption. The attack requires supplying a crafted file and user interaction (UI:R), with low attack complexity and no privileges required. The vulnerability affects local attack vectors.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability is fixed in commit fb77acff9ba6bb01d53940da34fb10f20b156a23, so upgrading libcaca to a version including this commit is recommended once available. Until then, avoid processing untrusted 'caca' format files. Monitor official vendor channels for an official patch release and apply it promptly.
CVE-2026-42046: CWE-122: Heap-based Buffer Overflow in cacalabs libcaca
Description
CVE-2026-42046 is a heap-based buffer overflow vulnerability in libcaca versions 0.99.beta20 and earlier. It arises from an integer overflow in the canvas import functionality when processing crafted 'caca' format files. This vulnerability can lead to controlled heap out-of-bounds writes, potentially causing memory corruption or remote code execution depending on the build and memory allocator. It is a recurrence of CVE-2021-3410, with the previous fix being incomplete. A specific commit (fb77acff9ba6bb01d53940da34fb10f20b156a23) addresses this issue. The CVSS score is 7.8, indicating high severity.
CVSS v3.1
Score 7.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in libcaca's canvas import functionality allows an attacker to trigger an integer overflow by supplying a specially crafted 'caca' format file. This overflow results in a heap-based buffer overflow (CWE-122), causing a controlled out-of-bounds write. Depending on the environment, this can lead to memory corruption or remote code execution. This issue is a reappearance of CVE-2021-3410, as the initial fix was insufficient. The vulnerability affects libcaca versions up to and including 0.99.beta20. The fix is implemented in commit fb77acff9ba6bb01d53940da34fb10f20b156a23. No official remediation level or patch link is provided in the data.
Potential Impact
Successful exploitation can lead to high-impact consequences including full confidentiality, integrity, and availability compromise of affected systems. Specifically, it may allow remote code execution or cause memory corruption. The attack requires supplying a crafted file and user interaction (UI:R), with low attack complexity and no privileges required. The vulnerability affects local attack vectors.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability is fixed in commit fb77acff9ba6bb01d53940da34fb10f20b156a23, so upgrading libcaca to a version including this commit is recommended once available. Until then, avoid processing untrusted 'caca' format files. Monitor official vendor channels for an official patch release and apply it promptly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-23T16:05:01.709Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a028746cbff5d86108b50d4
Added to database: 05/12/2026, 01:49:58 UTC
Last enriched: 05/19/2026, 10:59:47 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 90
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.