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

CVE-2026-39853: osslsigncode Buffer Overflow Vulnerability

CVE-2026-39853 is a stack buffer overflow in osslsigncode that occurs during PKCS#7 signature verification. Attackers can exploit this to corrupt stack memory. This article covers technical details, affected versions, and fixes.

Published: April 9, 2026

CVE-2026-39853 Overview

CVE-2026-39853 is a stack buffer overflow vulnerability in osslsigncode, an open-source tool that implements Authenticode signing and timestamping for executable files. The vulnerability exists in multiple signature verification paths where the code copies a digest value from a parsed SpcIndirectDataContent structure into a fixed-size stack buffer without validating that the source length fits within the destination buffer.

Critical Impact

An attacker can craft a malicious signed file with an oversized digest field that, when verified by osslsigncode, triggers a stack buffer overflow capable of corrupting adjacent stack state and potentially enabling arbitrary code execution.

Affected Products

  • osslsigncode versions prior to 2.12
  • PE file verification handler
  • MSI, CAB, and script file verification handlers

Discovery Timeline

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

Technical Details for CVE-2026-39853

Vulnerability Analysis

This vulnerability stems from unsafe memory handling during PKCS#7 signature verification. When osslsigncode parses a signed file, it extracts the message digest from the SpcIndirectDataContent ASN.1 structure and copies it into a stack-allocated buffer mdbuf[EVP_MAX_MD_SIZE], which is 64 bytes in size. The vulnerable code path performs a direct memcpy() operation using the digest length from the parsed structure without any bounds validation.

The vulnerability affects multiple file type handlers including PE executables, MSI installers, CAB archives, and script files—all of which share similar verification logic. An attacker who can convince a user to verify a maliciously crafted signed file can trigger the overflow, potentially achieving code execution in the context of the osslsigncode process.

Root Cause

The root cause is classified as CWE-121 (Stack-based Buffer Overflow). The vulnerable code directly copies attacker-controlled data from the parsed idc->messageDigest->digest->data field into a fixed-size stack buffer using the untrusted idc->messageDigest->digest->length value. This allows an attacker to specify a digest length exceeding 64 bytes, causing the memcpy() operation to write beyond the bounds of the destination buffer and corrupt adjacent stack memory.

Attack Vector

The attack requires local access with user interaction—specifically, a user must be tricked into running osslsigncode verify against a maliciously crafted signed file. The attacker crafts a file containing a valid PKCS#7 signature structure but with an oversized digest field in the SpcIndirectDataContent. When the verification routine processes this malformed structure, the unbounded memory copy overwrites stack data, potentially including return addresses or other security-critical values.

The following patches show the vulnerable memcpy() patterns that were replaced with safe extraction functions:

Patch in cab.c:

c
         const u_char *p = content_val->data;
         SpcIndirectDataContent *idc = d2i_SpcIndirectDataContent(NULL, &p, content_val->length);
         if (idc) {
-            if (idc->messageDigest && idc->messageDigest->digest && idc->messageDigest->digestAlgorithm) {
-                mdtype = OBJ_obj2nid(idc->messageDigest->digestAlgorithm->algorithm);
-                memcpy(mdbuf, idc->messageDigest->digest->data, (size_t)idc->messageDigest->digest->length);
+            if (spc_extract_digest_safe(idc, mdbuf, &mdtype) < 0) {
+                SpcIndirectDataContent_free(idc);
+                return 0; /* FAILED */
             }
             SpcIndirectDataContent_free(idc);
         }

Source: GitHub Commit Update

Patch in cat.c:

c
     idc = d2i_SpcIndirectDataContent(NULL, &data, ASN1_STRING_length(value));
     if (!idc)
         return 0; /* FAILED */
-    if (idc->messageDigest && idc->messageDigest->digest && idc->messageDigest->digestAlgorithm) {
-        /* get a digest algorithm a message digest of the file from the content */
-        mdtype = OBJ_obj2nid(idc->messageDigest->digestAlgorithm->algorithm);
-        memcpy(mdbuf, idc->messageDigest->digest->data, (size_t)idc->messageDigest->digest->length);
+    if (spc_extract_digest_safe(idc, mdbuf, &mdtype) < 0) {
+        SpcIndirectDataContent_free(idc);
+        return 0; /* FAILED */
     }
     SpcIndirectDataContent_free(idc);
     if (mdtype == -1) {

Source: GitHub Commit Update

Detection Methods for CVE-2026-39853

Indicators of Compromise

  • Presence of PE, MSI, CAB, or script files with abnormally large digest fields in their Authenticode signatures
  • Crash dumps or core files from osslsigncode processes showing stack corruption
  • Unexpected process termination when running osslsigncode verify commands

Detection Strategies

  • Monitor for osslsigncode process crashes during signature verification operations
  • Implement file integrity monitoring for systems where osslsigncode is used in automated workflows
  • Deploy endpoint detection rules that identify exploitation attempts targeting stack buffer overflows in verification tools

Monitoring Recommendations

  • Enable logging for all osslsigncode invocations in build pipelines and signing infrastructure
  • Monitor for unusual file submissions to signing or verification services that may be probing for vulnerable instances
  • Implement process behavior analysis to detect memory corruption exploitation attempts

How to Mitigate CVE-2026-39853

Immediate Actions Required

  • Upgrade osslsigncode to version 2.12 or later immediately
  • Audit systems for any instances of osslsigncode prior to version 2.12
  • Review logs for any suspicious signature verification failures that could indicate exploitation attempts

Patch Information

The vulnerability has been fixed in osslsigncode version 2.12. The patch introduces a new safe extraction function spc_extract_digest_safe() that validates the digest length before copying. The security fix is available at:

  • GitHub Release 2.12
  • Security Advisory GHSA-hx87-8754-xvh4
  • Commit cbee1e7

Workarounds

  • Avoid using vulnerable versions of osslsigncode to verify untrusted files until patching is complete
  • Isolate osslsigncode verification operations in sandboxed environments with limited privileges
  • Implement strict input validation on files before passing them to osslsigncode for verification
bash
# Verify osslsigncode version and upgrade if necessary
osslsigncode --version

# On systems with package managers, upgrade to latest version
# Example for systems building from source:
git clone https://github.com/mtrojnar/osslsigncode.git
cd osslsigncode
git checkout 2.12
cmake -B build && cmake --build build
sudo cmake --install build

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

  • SeverityHIGH

  • CVSS Score7.8

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

  • GitHub Release 2.12

  • GitHub Security Advisory GHSA-hx87-8754-xvh4
  • Related CVEs
  • CVE-2026-39856: osslsigncode Buffer Overflow Vulnerability

  • CVE-2026-39855: 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