Skip to main content

Osslsigncode CVE-2026-39855

| EUVDEUVD-2026-20944 MEDIUM
Out-of-bounds Read (CWE-125)
2026-04-09 GitHub_M
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS v3.1 score of 5.5 (Medium) reflects the attack vector (AV:L - local only), low complexity (AC:L), no privilege requirement (PR:N), and high availability impact (A:H). However, the actual real-world risk is elevated by several factors. First, the vulnerability can be triggered during PE file verification without any special flags (page hashing is validated regardless of -ph), meaning any user or automated tool that verifies a signed PE file is at risk. Second, the attack vector is 'local' but the trigger mechanism (processing an untrusted PE file) is common in supply-chain scenarios where signed PE files are distributed and verified before execution. Third, the underflow is straightforward to reproduce once understood, though no public proof-of-concept has been identified. CVSS does not capture the verification-without-flags aspect, which lowers the barrier to exploitation. The vulnerability causes denial-of-service (process crash), not data exfiltration or code execution, limiting damage. Priority should be high for developers and build systems that verify PE signatures, moderate for end users unless they manually verify signatures.

Exploit ScenarioDerived

A developer downloads what appears to be a legitimate third-party PE library from a compromised or attacker-controlled source. The PE file is crafted with SizeOfHeaders set to a value larger than SectionAlignment, triggering the integer underflow. When the developer's build system automatically verifies the digital signature of the PE file before linking or deployment (a standard practice), osslsigncode crashes during the verification step, halting the build. While this is a denial-of-service to the build pipeline rather than a direct attack on the developer's machine, repeated crashes from malicious PE files could disrupt software development workflows or be used to obfuscate other attack activity.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 09, 2026

Osslsigncode 2.12 and earlier contains an integer underflow in PE page-hash computation that allows local attackers to trigger an out-of-bounds heap read and crash the process via a specially crafted PE file with SizeOfHeaders larger than SectionAlignment. The vulnerability is triggered either when signing a malicious PE file with page hashing enabled (-ph flag) or when verifying an already-signed PE file containing page hashes, making verification particularly dangerous since no special flags are required. This is a denial-of-service vulnerability with no public exploit code identified at time of analysis, though the root cause (missing validation in integer subtraction) is straightforward to exploit.

RemediationAI

Vendor-released patch: upgrade to osslsigncode 2.13 or later. The fix is available in the official release at https://github.com/mtrojnar/osslsigncode/releases/tag/2.13, and the upstream commit implementing the fix is available at https://github.com/mtrojnar/osslsigncode/commit/2a5409b7c4b6c6fad2b093531e8fea6cf08e1568. Users should update immediately if they use osslsigncode for PE signing or verification workflows. There are no workarounds short of upgrading, as the vulnerability is embedded in core signature processing logic. For organizations unable to upgrade immediately, avoiding verification of untrusted PE files is not a practical mitigation, as legitimate supply-chain workflows require verification; therefore, patching is the primary remediation path.

Affected VersionsENISA

osslsigncode < 2.13

Affected Packages

euvd osslsigncode fix: 2.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Osslsigncode is a command-line tool for digitally signing Windows Portable Executable (PE) files using OpenSSL, implementing Microsoft Authenticode signatures and timestamping. The vulnerability resides in the pe_page_hash_calc() function, which processes PE file headers during signature generation or verification. PE files have two critical size fields: SizeOfHeaders (hdrsize) and SectionAlignment (pagesize). The vulnerable code performs an unchecked subtraction (pagesize - hdrsize) to determine how many bytes to read from an allocated buffer. When a malicious PE file violates the PE specification by setting SizeOfHeaders larger than SectionAlignment, the unsigned integer subtraction underflows, wrapping around to a very large positive value (near 2^32 or 2^64 depending on architecture). The function then attempts to read this enormous quantity of bytes from a heap buffer allocated to only pagesize bytes, resulting in an out-of-bounds read. This is a classic integer underflow (CWE-125) leading to buffer over-read. The affected product is identified by CPE cpe:2.3:a:mtrojnar:osslsigncode:*:*:*:*:*:*:*:*, indicating all versions of the tool distributed by maintainer mtrojnar are in scope.

Know when Osslsigncode gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
SUSE MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Apr 16, 2026 - 05:29 EUVD
2.13
CVE Published
Apr 09, 2026 - 15:58 nvd
MEDIUM 5.5

DescriptionCVE.org

osslsigncode is a tool that implements Authenticode signing and timestamping. Prior to 2.13, an integer underflow vulnerability exists in osslsigncode version 2.12 and earlier in the PE page-hash computation code (pe_page_hash_calc()). When page hash processing is performed on a PE file, the function subtracts hdrsize from pagesize without first validating that pagesize >= hdrsize. If a malicious PE file sets SizeOfHeaders (hdrsize) larger than SectionAlignment (pagesize), the subtraction underflows and produces a very large unsigned length. The code allocates a zero-filled buffer of pagesize bytes and then attempts to hash pagesize - hdrsize bytes from that buffer. After the underflow, this results in an out-of-bounds read from the heap and can crash the process. The vulnerability can be triggered while signing a malicious PE file with page hashing enabled (-ph), or while verifying a malicious signed PE file that already contains page hashes. Verification of an already signed file does not require the verifier to pass -ph. This vulnerability is fixed in 2.13.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Related Vulnerabilities in osslsigncode Buffer Overflow and OOB Read

View all 3

Vendor StatusVendor

SUSE

Severity: Medium

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy