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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-20944
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB