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-38593

CVE-2021-38593: Qt Buffer Overflow Vulnerability

CVE-2021-38593 is a buffer overflow vulnerability in Qt framework affecting versions 5.x before 5.15.6 and 6.x through 6.1.2. This flaw involves an out-of-bounds write that could compromise application security.

Published: February 25, 2026

CVE-2021-38593 Overview

CVE-2021-38593 is an out-of-bounds write vulnerability affecting Qt 5.x before 5.15.6 and 6.x through 6.1.2. The flaw exists in the QOutlineMapper::convertPath function, which is called from QRasterPaintEngine::fill and QPaintEngineEx::stroke. This vulnerability can be triggered when processing specially crafted graphical content, potentially leading to application crashes and denial of service conditions.

Critical Impact

Applications using vulnerable Qt versions for rendering graphical content may be susceptible to denial of service attacks through maliciously crafted input that triggers the out-of-bounds write condition.

Affected Products

  • Qt 5.x versions before 5.15.6
  • Qt 6.x versions through 6.1.2
  • Fedora 35 and Fedora 36 (via bundled Qt packages)

Discovery Timeline

  • August 12, 2021 - CVE-2021-38593 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-38593

Vulnerability Analysis

This vulnerability (CWE-787: Out-of-bounds Write) occurs within Qt's painting subsystem, specifically in the path conversion and stroke rendering pipeline. The issue was discovered through fuzzing efforts documented in Chromium Issue #35566. The vulnerability manifests when the painting engine attempts to process dash patterns with certain edge-case extent values.

The root of the problem lies in how Qt handles the calculation of dash pattern rendering. When an extent value approaches zero or results in an extremely high number of tiny dashes (exceeding 10,000 iterations), the rendering engine can write beyond allocated buffer boundaries, corrupting adjacent memory.

Root Cause

The vulnerability stems from insufficient validation of the extent variable before performing division operations in the dash pattern rendering code. When extent is zero or very close to zero, the subsequent calculations can produce undefined behavior or trigger excessive memory operations. The original code only checked if extent / patternLength > 10000 but failed to validate whether extent itself was a valid, non-zero value.

Attack Vector

An attacker can exploit this vulnerability by providing malformed graphical content (such as SVG files, images, or Qt Quick/QML content) to applications that use Qt for rendering. The attack vector is network-accessible when vulnerable applications process untrusted graphical content from remote sources. Successful exploitation results in application crashes, enabling denial of service attacks against Qt-based applications.

cpp
// Security patch from QtBase (Source: https://github.com/qt/qtbase/commit/1ca02cf2879a5e1511a2f2109f0925cf4c892862)
            patternLength *= pen.widthF();
        if (qFuzzyIsNull(patternLength)) {
            pen.setStyle(Qt::NoPen);
-        } else if (extent / patternLength > 10000) {
+        } else if (qFuzzyIsNull(extent) || extent / patternLength > 10000) {
            // approximate stream of tiny dashes with semi-transparent solid line
            pen.setStyle(Qt::SolidLine);
            QColor color(pen.color());

The fix adds an additional check using qFuzzyIsNull(extent) to validate that the extent value is not effectively zero before proceeding with the division operation.

Detection Methods for CVE-2021-38593

Indicators of Compromise

  • Unexpected crashes in Qt-based applications during graphical content rendering
  • Application log entries showing segmentation faults or memory access violations in QOutlineMapper::convertPath, QRasterPaintEngine::fill, or QPaintEngineEx::stroke
  • Abnormal termination of processes linked against vulnerable Qt libraries (libQt5Gui.so, libQt6Gui.so)
  • Core dumps indicating memory corruption in painting subsystem components

Detection Strategies

  • Monitor for crash reports from Qt-based applications with stack traces containing QOutlineMapper::convertPath or QPaintEngineEx::stroke
  • Implement software composition analysis (SCA) to identify Qt library versions in use across your environment
  • Use vulnerability scanners to detect Qt installations matching affected CPE URIs (cpe:2.3:a:qt:qt:*)
  • Deploy application crash monitoring to detect potential exploitation attempts

Monitoring Recommendations

  • Enable core dump collection for Qt-based applications to capture crash details
  • Monitor system logs for repeated application failures that may indicate exploitation attempts
  • Track Qt library versions deployed across endpoints using asset inventory tools
  • Configure alerting for unusual patterns of application restarts in Qt-dependent services

How to Mitigate CVE-2021-38593

Immediate Actions Required

  • Upgrade Qt 5.x installations to version 5.15.6 or later
  • Upgrade Qt 6.x installations to a patched version beyond 6.1.2
  • Apply distribution-specific security updates for Fedora 35 and 36 systems
  • Review and update third-party applications that bundle Qt libraries

Patch Information

Qt has released security patches addressing this vulnerability across multiple branches. The fix involves adding proper validation for the extent variable before performing dash pattern calculations. Patches are available in the following commits:

  • QtBase Commit 1ca02cf
  • QtBase Commit 202143b
  • QtBase Commit 6b400e3

Additional information is available in the Qt 5.15 Release Known Issues documentation and the Gentoo GLSA 202402-03 advisory.

Workarounds

  • Restrict processing of untrusted graphical content in Qt-based applications until patches can be applied
  • Implement input validation to sanitize or reject potentially malicious SVG or image content before Qt rendering
  • Consider sandboxing Qt-based applications that process untrusted content to limit impact of crashes
  • For subscription license holders, extended support patches are available as noted in the Qt Blog on Extended Support
bash
# Check installed Qt version on Linux systems
qmake --version

# For Fedora systems, update Qt packages
sudo dnf update qt5-qtbase qt6-qtbase

# Verify Qt library versions in use
ldconfig -p | grep -i qt

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechQt

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.83%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • GitHub Vulnerability Report OSV-2021-903

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202402-03

  • Qt Blog on Extended Support
  • Vendor Resources
  • Chromium Issue #35566

  • QtBase Commit 1ca02cf

  • QtBase Commit 202143b

  • QtBase Commit 6b400e3

  • Qt Wiki Known Issues
  • Related CVEs
  • CVE-2024-25580: Qt Buffer Overflow Vulnerability

  • CVE-2025-23050: Qt QLowEnergyController Buffer Overflow

  • CVE-2025-3512: Qt Framework Buffer Overflow Vulnerability

  • CVE-2023-32763: Qt Buffer Overflow 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