Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 87%

CVE-2026-42046: CWE-122: Heap-based Buffer Overflow in cacalabs libcaca

0
High
VulnerabilityCVE-2026-42046cvecve-2026-42046cwe-122cwe-190cwe-787
Published: 05/11/2026 (05/11/2026, 21:23:35 UTC)
Source: CVE Database V5
Vendor/Project: cacalabs
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
cacalabs/libcaca
pkg:github/cacalabs/libcaca

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

AILast updated: 05/19/2026, 10:59:47 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses