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-2026-39855

CVE-2026-39855: osslsigncode Buffer Overflow Vulnerability

CVE-2026-39855 is a buffer overflow flaw in osslsigncode that stems from an integer underflow in PE page-hash computation. This post covers the technical details, affected versions, impact, and mitigation steps.

Published: April 9, 2026

CVE-2026-39855 Overview

An integer underflow vulnerability has been discovered in osslsigncode, a widely-used tool for implementing Authenticode signing and timestamping of PE (Portable Executable) files. The vulnerability exists in versions prior to 2.13 within the PE page-hash computation code, specifically in the pe_page_hash_calc() function. When processing PE files with page hashing enabled, the function fails to validate that pagesize is greater than or equal to hdrsize before performing subtraction, leading to an integer underflow condition that can result in out-of-bounds heap reads and process crashes.

Critical Impact

Attackers can craft malicious PE files that, when signed or verified, trigger an integer underflow leading to out-of-bounds heap reads and denial of service. This affects both signing operations with -ph flag and verification of already-signed malicious files.

Affected Products

  • osslsigncode versions prior to 2.13
  • osslsigncode version 2.12 and earlier

Discovery Timeline

  • 2026-04-09 - CVE CVE-2026-39855 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-39855

Vulnerability Analysis

This vulnerability stems from an integer underflow condition in the pe_page_hash_calc() function responsible for computing page hashes on PE files. The vulnerable code path subtracts hdrsize (derived from the PE file's SizeOfHeaders field) from pagesize (derived from SectionAlignment) without proper bounds validation. When a malicious PE file is crafted with SizeOfHeaders larger than SectionAlignment, this arithmetic operation underflows, producing an extremely large unsigned integer value.

The consequence is severe: the code allocates a zero-filled buffer of pagesize bytes but then attempts to hash pagesize - hdrsize bytes from that buffer. After the underflow, this value becomes very large, causing an out-of-bounds read from the heap. This memory corruption can crash the osslsigncode process, resulting in denial of service.

The vulnerability is classified as CWE-125 (Out-of-Bounds Read), which accurately describes the memory safety violation that occurs after the integer underflow.

Root Cause

The root cause is insufficient input validation in the pe_page_hash_calc() function. The code trusts that the PE file's SizeOfHeaders value is within acceptable bounds relative to SectionAlignment without performing proper validation. This violates the principle of defense in depth, as PE files are untrusted input that may have been maliciously crafted. The fix adds an additional boundary check to ensure hdrsize does not exceed filebound, preventing the underflow condition.

Attack Vector

The attack can be executed through two vectors:

  1. Signing Vector: An attacker convinces a victim to sign a malicious PE file with page hashing enabled using the -ph flag. This could occur in CI/CD pipelines or build systems that process untrusted executables.

  2. Verification Vector: An attacker provides a pre-signed malicious PE file containing page hashes for verification. Importantly, the victim does not need to pass the -ph flag during verification—simply verifying a malicious signed file triggers the vulnerability.

The following patch demonstrates the security fix implemented in version 2.13:

c
         return NULL;  /* FAILED */
     }
     off = ctx->pe_ctx->header_size + 160 + (size_t)ctx->pe_ctx->pe32plus * 16;
-    if (hdrsize < off) {
+    if (hdrsize < off || hdrsize > filebound) {
         BIO_free_all(bhash);
         return NULL;  /* FAILED: header too small */
     }

Source: GitHub Commit Update

The fix adds a check ensuring hdrsize does not exceed filebound, preventing the integer underflow by rejecting PE files with invalid header sizes early in the processing pipeline.

Detection Methods for CVE-2026-39855

Indicators of Compromise

  • Unexpected crashes of osslsigncode processes during signing or verification operations
  • Core dumps or crash reports showing heap memory access violations in pe_page_hash_calc() or related functions
  • PE files with abnormally large SizeOfHeaders values relative to SectionAlignment

Detection Strategies

  • Monitor for osslsigncode process crashes with SIGSEGV or similar memory access violation signals
  • Implement file integrity monitoring on PE files being processed through signing pipelines
  • Deploy static analysis tools to flag PE files where SizeOfHeaders exceeds SectionAlignment
  • Review build and signing pipeline logs for unexpected osslsigncode failures

Monitoring Recommendations

  • Enable crash reporting and analysis for systems running osslsigncode
  • Implement logging for all PE file signing and verification operations
  • Set up alerts for repeated osslsigncode process failures that may indicate exploitation attempts
  • Monitor system memory usage patterns during signing operations for anomalous behavior

How to Mitigate CVE-2026-39855

Immediate Actions Required

  • Upgrade osslsigncode to version 2.13 or later immediately
  • Audit signing pipelines to identify all instances of osslsigncode that require updates
  • Implement input validation for PE files before processing with osslsigncode
  • Review recently signed or verified PE files for potential exploitation attempts

Patch Information

The vulnerability has been fixed in osslsigncode version 2.13. The patch adds additional bounds checking to ensure the hdrsize value does not exceed filebound, preventing the integer underflow condition. Organizations should update to version 2.13 or later as soon as possible.

Relevant patch resources:

  • GitHub Commit Update
  • GitHub Release Version 2.13
  • GitHub Security Advisory GHSA-76vv-x5rr-q3mr

Workarounds

  • Avoid processing untrusted PE files with osslsigncode until the patch is applied
  • Implement pre-validation of PE file headers before passing to osslsigncode
  • Run osslsigncode in sandboxed environments to limit the impact of crashes
  • Disable page hashing (-ph) if not strictly required for your signing workflow
bash
# Upgrade osslsigncode to patched version
# From source:
git clone https://github.com/mtrojnar/osslsigncode.git
cd osslsigncode
git checkout 2.13
mkdir build && cd build
cmake ..
make && sudo make install

# Verify installed version
osslsigncode --version

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechOsslsigncode

  • SeverityMEDIUM

  • CVSS Score5.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Commit Update

  • GitHub Release Version 2.13

  • GitHub Security Advisory GHSA-76vv-x5rr-q3mr
  • Related CVEs
  • CVE-2026-39856: osslsigncode Buffer Overflow Vulnerability

  • CVE-2026-39853: osslsigncode Buffer Overflow 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