A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-9503

CVE-2026-9503: GNU LibreDWG Use-After-Free Vulnerability

CVE-2026-9503 is a use-after-free vulnerability in GNU LibreDWG up to version 0.14 affecting the DWG File Handler. This local exploit poses risks to system stability. This article covers technical details, impact, and patches.

Published: May 28, 2026

CVE-2026-9503 Overview

CVE-2026-9503 is a null pointer dereference vulnerability in GNU LibreDWG versions up to 0.14. The flaw resides in the dwg_next_entity function within src/decode.c, part of the DWG File Handler component. Attackers with local access can trigger the dereference by supplying a crafted DWG file, causing the library or any application linking against it to crash. The issue is tracked under [CWE-404] (Improper Resource Shutdown or Release) and has been publicly disclosed alongside a proof-of-concept. The maintainers have committed a fix in upstream commit 8f03865f37f5d4ffd616fef802acc980be54d300.

Critical Impact

Local attackers can crash applications that parse untrusted DWG files using LibreDWG, producing a denial-of-service condition in CAD and conversion workflows.

Affected Products

  • GNU LibreDWG versions up to and including 0.14
  • The dwg_next_entity function in src/decode.c
  • Applications and pipelines linking against vulnerable LibreDWG builds for DWG parsing

Discovery Timeline

  • 2026-05-25 - CVE-2026-9503 published to NVD
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2026-9503

Vulnerability Analysis

The vulnerability is a null pointer dereference [CWE-404] in the DWG decoder of GNU LibreDWG. When dwg_next_entity in src/decode.c walks the entity list of a malformed DWG file, it dereferences a pointer that has not been validated against NULL. A specifically crafted DWG file forces this code path and triggers a process crash.

A public proof-of-concept file has been released, demonstrating reliable triggering against unpatched builds. Exploitation requires local access and low privileges, and the impact is limited to availability of the parsing process. No code execution or information disclosure has been demonstrated.

Root Cause

The decoder did not enforce sufficient bounds and pointer validity checks on decompressed section metadata before traversing the entity chain. Address and size fields from the compressed section could exceed buffer boundaries, leaving downstream pointers uninitialized or invalid. The upstream patch tightens these checks to reject malformed sections before they reach dwg_next_entity.

Attack Vector

The attack vector is local. An attacker delivers a malicious DWG file to a user or automated pipeline that invokes a LibreDWG-based parser, such as dwgread, dwg2dxf, or any application embedding libredwg. Opening the file causes the decoder to traverse the corrupted structure and dereference a null pointer, terminating the process.

c
               = MIN ((BITCODE_RL)(info->size - es.fields.address),
                      es.fields.page_size);
           if (info->compressed == 2 || bytes_left < 0
+              || es.fields.address > max_decomp_size
               || es.fields.address + size > max_decomp_size
+              || es.fields.address + size > dec.size
               || offset + size > dat->size)
             {
               LOG_ERROR ("Some section size or address out of bounds");

Source: GitHub Commit 8f03865. The patch adds explicit bounds checks on es.fields.address against max_decomp_size and dec.size, rejecting sections whose decompressed address or size would exceed the allocated buffer before any downstream pointer arithmetic occurs.

Detection Methods for CVE-2026-9503

Indicators of Compromise

  • Unexpected crashes or SIGSEGV signals from processes invoking libredwg, dwgread, or related CLI tools while parsing DWG files
  • Presence of the public PoC sample libredwg_6d6a339_heap_oob_write_read_2004_compressed_section.dwg or files with similar malformed AutoCAD R2004 compressed section structures
  • Core dumps referencing the dwg_next_entity symbol or src/decode.c frames

Detection Strategies

  • Inventory systems for installed LibreDWG packages and compare versions against 0.14 and earlier using package managers such as dpkg -l libredwg* or rpm -qa | grep libredwg
  • Hash-match incoming DWG attachments and uploads against the published PoC artifact referenced in the GitHub PoC Repository
  • Scan source builds and container images for the absence of commit 8f03865f37f5d4ffd616fef802acc980be54d300 in vendored LibreDWG copies

Monitoring Recommendations

  • Monitor application logs and system journals for repeated abnormal terminations of CAD or file-conversion services that process user-supplied DWG content
  • Alert on file uploads to shared drives and document portals where DWG files fail validation or trigger parser exceptions
  • Track outbound process telemetry from build agents and CI workers that batch-process DWG files for unexpected exit codes

How to Mitigate CVE-2026-9503

Immediate Actions Required

  • Upgrade GNU LibreDWG to a version that includes commit 8f03865f37f5d4ffd616fef802acc980be54d300 or later
  • Rebuild and redeploy any applications statically linking a vendored copy of LibreDWG after applying the patch
  • Restrict ingestion of DWG files from untrusted sources until patched builds are in place

Patch Information

The fix is upstream commit 8f03865f37f5d4ffd616fef802acc980be54d300, which adds bounds checks on decompressed section address and size in src/decode.c. Track maintainer discussion in the LibreDWG Issue Tracker and the VulDB Vulnerability Report.

Workarounds

  • Sandbox DWG parsing operations using containers, seccomp, or firejail so a crash in dwg_next_entity cannot affect host services
  • Validate file provenance and apply size or origin filters before passing DWG content to LibreDWG-based tools
  • Disable automated DWG conversion in shared services until a patched LibreDWG package is deployed
bash
# Configuration example: rebuild LibreDWG from patched source
git clone https://github.com/LibreDWG/libredwg.git
cd libredwg
git checkout 8f03865f37f5d4ffd616fef802acc980be54d300
sh autogen.sh
./configure --disable-bindings
make -j"$(nproc)"
sudo make install

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLibredwg

  • SeverityLOW

  • CVSS Score1.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-404
  • Technical References
  • GitHub PoC Repository

  • GitHub Commit Log

  • GitHub Issue Tracker

  • VulDB Submission Page

  • VulDB Vulnerability Report

  • VulDB CTI Details

  • GNU Organization Homepage
  • Related CVEs
  • CVE-2026-9530: GNU LibreDWG Use-After-Free Vulnerability

  • CVE-2026-9504: GNU LibreDWG Use-After-Free Vulnerability

  • CVE-2026-9605: GNU libredwg Buffer Overflow Vulnerability

  • CVE-2026-9502: GNU LibreDWG Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

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