Skip to main content
Vulnerability Database/CVE-2026-96396

CVE-2026-96396: Affinity by Canva Buffer Overflow Flaw

CVE-2026-96396 is a heap-based buffer overflow in Affinity by Canva for macOS that triggers when previewing malicious documents in Finder. This post covers the technical details, affected versions, and steps to protect your system.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-96396 Overview

CVE-2026-96396 affects the Affinity by Canva application for macOS before version 3.3.1 (October 2026 release). The application fails to safely calculate the size of an image buffer when generating QuickLook thumbnails and previews of Affinity document files. This miscalculation produces an integer overflow that leads to a heap-based buffer overflow [CWE-122]. A threat actor can craft a malicious Affinity document that corrupts heap memory when Finder displays its thumbnail or preview, causing the extension to crash.

Critical Impact

A crafted Affinity document triggers heap corruption through QuickLook preview rendering without requiring the user to open the file.

Affected Products

  • Affinity by Canva for macOS versions before 3.3.1
  • macOS QuickLook thumbnail extension integration
  • macOS Finder preview rendering of Affinity document files

Discovery Timeline

  • 2026-10-09 - CVE CVE-2026-96396 published to NVD
  • 2026-10-09 - Last updated in NVD database

Technical Details for CVE-2026-96396

Vulnerability Analysis

The vulnerability resides in the QuickLook extension responsible for generating thumbnails and previews of Affinity document files. When macOS Finder renders a preview, the extension parses the document and allocates a buffer sized to hold the decoded image. The size computation does not validate intermediate arithmetic, allowing attacker-controlled dimension or channel values to overflow an integer. The resulting undersized allocation is then written with a larger quantity of image data, corrupting adjacent heap memory.

Exploitation does not require the user to open the document in Affinity. Simply selecting the file in Finder or triggering a Spacebar preview invokes the vulnerable QuickLook code path. The heap corruption observed in available analysis produces a crash of the thumbnail or preview extension, consistent with the limited confidentiality, integrity, and availability impact reported.

Root Cause

The root cause is unchecked arithmetic during image buffer size calculation. Multiplying width, height, and bytes-per-pixel values parsed from the document can wrap around the integer range, producing a small allocation. Subsequent writes exceed the allocated region, overflowing the heap. This pattern maps to [CWE-122: Heap-Based Buffer Overflow].

Attack Vector

The attack vector is local. An attacker delivers a crafted Affinity document to the target through email attachment, cloud sync, removable media, or web download. The user does not need to open the file; viewing the enclosing folder in Finder or invoking QuickLook preview triggers the vulnerable code. The CVSS vector indicates high attack complexity, reflecting the precision required to shape heap state for reliable exploitation beyond a crash.

No verified public proof-of-concept code is available. Refer to the Canva Trust Information advisory for vendor-provided technical details.

Detection Methods for CVE-2026-96396

Indicators of Compromise

  • Repeated crashes of com.apple.quicklook.ThumbnailsAgent or QuickLookUIService processes correlated with access to Affinity document files.
  • macOS crash reports in ~/Library/Logs/DiagnosticReports/ referencing the Affinity QuickLook extension bundle.
  • Unexpected Affinity document files (.afdesign, .afphoto, .afpub) arriving via email, messaging, or download channels.

Detection Strategies

  • Monitor endpoint telemetry for abnormal termination of QuickLook helper processes following file system access events.
  • Correlate file write events for Affinity document extensions with subsequent QuickLook extension crashes in a short time window.
  • Hunt for Affinity documents originating from untrusted senders or external domains in email and file-share logs.

Monitoring Recommendations

  • Centralize macOS unified logs and DiagnosticReports crash data for QuickLook subsystems in a SIEM for retention and analysis.
  • Baseline normal QuickLook extension behavior per host to surface anomalous crash clusters tied to Affinity file interactions.
  • Alert on execution of Affinity-related extensions by users who do not have the application installed through legitimate channels.

How to Mitigate CVE-2026-96396

Immediate Actions Required

  • Upgrade Affinity by Canva for macOS to version 3.3.1 or later from the October 2026 release.
  • Inventory macOS endpoints running Affinity Designer, Photo, or Publisher and prioritize patching for users who handle externally sourced documents.
  • Quarantine untrusted Affinity document files received before the patch is deployed.

Patch Information

Canva addressed the vulnerability in Affinity by Canva version 3.3.1, released October 2026. The fix corrects the image buffer size calculation in the QuickLook thumbnail and preview extension. Consult the Canva Trust Information portal for release notes and distribution channels.

Workarounds

  • Disable the Affinity QuickLook extension in System Settings → Privacy & Security → Extensions → Quick Look until patching is complete.
  • Avoid previewing Affinity document files from untrusted sources in Finder or via the Spacebar QuickLook shortcut.
  • Restrict delivery of Affinity document file types through email and web gateways where business workflows allow.
bash
# Disable the Affinity QuickLook generator cache and reset QuickLook
qlmanage -r
qlmanage -r cache
# Verify installed Affinity application version
mdls -name kMDItemVersion "/Applications/Affinity Designer 2.app"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.