CVE-2026-39855osslsigncode has an Integer Underflow in PE Page Hash Calculation Can Cause…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | osslsigncode | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | osslsigncode | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-39855 | |
| Ubuntu 24.04 | osslsigncode | Under investigation | UBUNTU-CVE-2026-39855 | |
| Ubuntu 22.04 | osslsigncode | Under investigation | UBUNTU-CVE-2026-39855 | |
| Ubuntu 20.04 | osslsigncode | Fix pending | UBUNTU-CVE-2026-39855 | |
| Ubuntu 18.04 | osslsigncode | Fix pending | UBUNTU-CVE-2026-39855 | |
| Ubuntu 16.04 | osslsigncode | Fix pending | UBUNTU-CVE-2026-39855 | |
| Debian 14 | osslsigncode | Fixed | 2.13-1 | DEBIAN-CVE-2026-39855 |
| Debian 13 | osslsigncode | Fix pending | DEBIAN-CVE-2026-39855 | |
| Debian 12 | osslsigncode | Fix pending | DEBIAN-CVE-2026-39855 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- mtrojnar osslsigncode: affected: < 2.13
References
- https://github.com/mtrojnar/osslsigncode/security/advisories/GHSA-76vv-x5rr-q3mr
- https://github.com/mtrojnar/osslsigncode/commit/2a5409b7c4b6c6fad2b093531e8fea6cf08e1568
- https://github.com/mtrojnar/osslsigncode/releases/tag/2.13
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.