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
    • 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-2025-66865

CVE-2025-66865: GNU Binutils DOS Vulnerability

CVE-2025-66865 is a denial of service flaw in GNU Binutils 2.26 that allows attackers to crash the application using a crafted PE file. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 22, 2026

CVE-2025-66865 Overview

A stack-based buffer overflow vulnerability has been discovered in GNU BinUtils 2.26, specifically within the d_print_comp_inner function in the cp-demangle.c file. This vulnerability allows remote attackers to cause a denial of service condition by crafting malicious PE (Portable Executable) files that trigger the overflow when processed by affected BinUtils utilities.

Critical Impact

Processing a specially crafted PE file can cause application crashes and denial of service, potentially disrupting development workflows and automated build systems that rely on BinUtils tools like c++filt or nm.

Affected Products

  • GNU BinUtils version 2.26
  • Systems and applications using the cp-demangle.c demangling functionality
  • Development environments and build pipelines utilizing affected BinUtils versions

Discovery Timeline

  • 2025-12-29 - CVE-2025-66865 published to NVD
  • 2026-01-14 - Last updated in NVD database

Technical Details for CVE-2025-66865

Vulnerability Analysis

This vulnerability is classified under CWE-121 (Stack-based Buffer Overflow), indicating that the d_print_comp_inner function in cp-demangle.c fails to properly validate input boundaries when processing demangled symbol names from PE files. The demangling process, which converts compiler-generated symbol names back to human-readable format, can be exploited when handling maliciously constructed input data.

The network attack vector indicates that this vulnerability can be triggered remotely through scenarios where BinUtils processes untrusted PE files, such as in automated analysis pipelines, CI/CD environments, or development tools that handle external binary artifacts.

Root Cause

The root cause lies in insufficient bounds checking within the d_print_comp_inner function when handling symbol demangling operations. The function processes nested component structures recursively, and specially crafted input can cause excessive stack consumption or direct memory corruption through unchecked buffer writes. The lack of proper input validation allows malformed PE file data to overflow stack-allocated buffers during the demangling process.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious PE file containing specially constructed mangled C++ symbol names. When a victim processes this file using BinUtils utilities such as c++filt, nm, objdump, or similar tools that invoke the demangling functionality, the vulnerable d_print_comp_inner function processes the malformed data, leading to a stack buffer overflow and subsequent application crash.

The attack requires no authentication and no user interaction beyond processing the malicious file. Attack scenarios include:

  • Submitting malicious binaries to automated analysis systems
  • Including crafted objects in open-source repositories
  • Exploiting development environments that process external dependencies

The vulnerability mechanism involves recursive processing of demangled symbol components. When the demangling engine encounters deeply nested or malformed component structures in the PE file, the d_print_comp_inner function can exhaust stack space or write beyond allocated buffer boundaries. For technical details and proof of concept information, see the GitHub PoC Repository.

Detection Methods for CVE-2025-66865

Indicators of Compromise

  • Unexpected crashes or segmentation faults in BinUtils utilities (c++filt, nm, objdump, readelf)
  • Core dumps indicating stack corruption in processes handling PE files
  • Abnormal termination of build processes or CI/CD pipelines processing external binaries
  • Log entries showing repeated failures when processing specific binary files

Detection Strategies

  • Monitor for abnormal process terminations in BinUtils utilities through system logging
  • Implement file integrity checking for binaries processed by development tools
  • Deploy application-level monitoring to detect stack overflow conditions
  • Use sandbox environments for processing untrusted PE files

Monitoring Recommendations

  • Enable core dump analysis for BinUtils processes to identify exploitation attempts
  • Implement resource limits and process isolation for binary analysis operations
  • Configure alerting on repeated crashes of demangling-related processes
  • Review logs for patterns indicating malicious file processing attempts

How to Mitigate CVE-2025-66865

Immediate Actions Required

  • Upgrade GNU BinUtils to a patched version that addresses this vulnerability
  • Avoid processing untrusted PE files with vulnerable BinUtils versions
  • Implement process isolation for binary analysis operations
  • Deploy input validation to reject malformed PE files before processing

Patch Information

Users should upgrade to a version of GNU BinUtils newer than 2.26 that contains the security fix for the d_print_comp_inner function. Check the official GNU BinUtils project for security advisories and patched releases. Organizations should prioritize updating BinUtils installations in build servers, CI/CD pipelines, and development environments.

Workarounds

  • Process untrusted PE files in isolated sandbox environments with resource limits
  • Implement stack size limits using ulimit -s to constrain potential overflow damage
  • Use containerized environments for binary analysis to contain potential crashes
  • Temporarily disable C++ name demangling features when processing untrusted files using the -C flag alternatives
bash
# Configuration example
# Limit stack size to detect overflow attempts early
ulimit -s 8192

# Run c++filt in a restricted environment
firejail --noprofile --timeout=30 c++filt < input.txt

# Process binaries in a container with limited resources
docker run --rm --memory=512m --cpus=0.5 -v $(pwd):/work binutils:safe nm /work/suspicious.exe

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechGnu Binutils

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.08%

  • 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-121
  • Technical References
  • GitHub PoC Repository
  • Related CVEs
  • CVE-2026-4647: GNU Binutils BFD Library DoS Vulnerability

  • CVE-2025-69650: GNU Binutils Double Free DoS Vulnerability

  • CVE-2025-69649: GNU Binutils Denial of Service Vulnerability

  • CVE-2025-69652: GNU Binutils readelf DoS Vulnerability
Default Legacy - Prefooter | 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