The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-40531

CVE-2021-40531: Sketch RCE Vulnerability via Library Feeds

CVE-2021-40531 is a remote code execution vulnerability in Sketch that exploits library feeds to bypass file quarantine protections. Attackers can execute arbitrary code by automatically downloading malicious files.

Published: February 25, 2026

CVE-2021-40531 Overview

CVE-2021-40531 is a critical remote code execution vulnerability affecting Sketch versions prior to 75 on macOS. The vulnerability exists in how Sketch handles library feeds, allowing malicious actors to bypass Apple's file quarantine security mechanism. When exploited, files are automatically downloaded and opened without the com.apple.quarantine extended attribute being applied, which is designed to protect users from running untrusted code downloaded from the internet.

This vulnerability is particularly dangerous because it enables remote code execution through seemingly legitimate design library functionality. An attacker could craft a malicious terminal profile that, when processed by Terminal.app, executes arbitrary commands via the CommandString parameter.

Critical Impact

Remote code execution through quarantine bypass allows attackers to execute arbitrary commands on victim machines without user interaction or security warnings.

Affected Products

  • Sketch versions prior to 75
  • Apple macOS (as the underlying platform)

Discovery Timeline

  • 2021-09-06 - CVE-2021-40531 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-40531

Vulnerability Analysis

This vulnerability falls under CWE-434 (Unrestricted Upload of File with Dangerous Type) and represents a security boundary bypass affecting macOS file quarantine protections. The core issue lies in Sketch's library feed handling mechanism, which fails to apply the com.apple.quarantine extended attribute to automatically downloaded files.

On macOS, the quarantine attribute serves as a critical security control that triggers Gatekeeper verification when users attempt to open files downloaded from the internet. When this attribute is missing, the operating system treats the file as trusted local content, bypassing security dialogs and code signing verification.

The attack chain involves crafting a malicious library feed that delivers a specially crafted terminal profile file. When Sketch processes this feed, it downloads the malicious file without quarantine protections. Subsequently, when the victim interacts with Terminal.app, the CommandString directive within the terminal profile executes attacker-controlled commands.

Root Cause

The root cause of this vulnerability is Sketch's failure to properly set the com.apple.quarantine extended attribute on files downloaded through its library feed functionality. This represents an improper implementation of macOS security best practices for applications that download and process external content. Applications that download files from the network should always apply quarantine attributes to ensure Gatekeeper can properly assess the trustworthiness of the content.

Attack Vector

The attack vector is network-based and can be exploited without user authentication or interaction. An attacker would need to:

  1. Host a malicious library feed accessible to the target
  2. Craft a terminal profile containing malicious CommandString directives
  3. Convince the victim to add the malicious library feed to Sketch, or compromise an existing legitimate feed
  4. When Sketch processes the feed, the malicious file is downloaded without quarantine protection
  5. The terminal profile executes arbitrary commands when Terminal.app processes it

The attack demonstrates how trusted application functionality can be abused to bypass platform security controls. For detailed technical analysis, see the Jon Palmisc CVE-2021-40531 Analysis.

Detection Methods for CVE-2021-40531

Indicators of Compromise

  • Files in Sketch library directories missing the com.apple.quarantine extended attribute
  • Unexpected terminal profile files (.terminal extension) appearing on the system
  • Unusual network connections from Sketch to untrusted library feed URLs
  • CommandString execution in Terminal.app logs originating from downloaded profiles

Detection Strategies

  • Monitor for files created by Sketch that lack the com.apple.quarantine extended attribute using xattr commands
  • Implement network monitoring for Sketch library feed connections to untrusted domains
  • Audit terminal profile files for suspicious CommandString directives
  • Use endpoint detection to identify unexpected command execution chains originating from design application workflows

Monitoring Recommendations

  • Enable macOS Unified Logging to capture file system extended attribute operations
  • Monitor process creation events for Terminal.app spawning child processes from downloaded profiles
  • Implement application allowlisting to restrict which terminal profiles can be executed
  • Review Sketch library feed configurations periodically for unauthorized additions

How to Mitigate CVE-2021-40531

Immediate Actions Required

  • Upgrade Sketch to version 75 or later immediately
  • Review and remove any untrusted library feeds from Sketch configurations
  • Audit systems for terminal profiles that may have been downloaded without quarantine attributes
  • Scan for indicators of compromise on systems running vulnerable Sketch versions

Patch Information

Sketch has addressed this vulnerability in version 75. Users should update to the latest version through the official update mechanism or by downloading from the Sketch website. The fix ensures that all files downloaded through library feeds properly receive the com.apple.quarantine extended attribute, restoring macOS Gatekeeper protections.

For official patch details, see the Sketch Version 75 Update.

Workarounds

  • Disable library feed functionality in Sketch until the update can be applied
  • Remove all external library feed subscriptions temporarily
  • Implement network-level blocking of untrusted library feed URLs
  • Use macOS Security & Privacy settings to only allow apps from identified developers
bash
# Check for files missing quarantine attribute in Sketch directories
find ~/Library/Application\ Support/com.bohemiancoding.sketch3 -type f -exec xattr -l {} \; | grep -L "com.apple.quarantine"

# Manually add quarantine attribute to suspicious files
xattr -w com.apple.quarantine "0081;00000000;Safari;" /path/to/suspicious/file

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSketch

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability6.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • Jon Palmisc CVE-2021-40531 Analysis
  • Vendor Resources
  • Sketch Version 75 Update
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English