CVE-2026-39853osslsigncode has a Stack Buffer Overflow via Unbounded Digest Copy During Signature…
osslsigncode is a tool that implements Authenticode signing and timestamping. Prior to 2.12, A stack buffer overflow vulnerability exists in osslsigncode in several signature verification paths. During verification of a PKCS#7 signature, the code copies the digest value from a parsed SpcIndirectDataContent structure into a fixed-size stack buffer (mdbuf[EVP_MAX_MD_SIZE], 64 bytes) without validating that the source length fits within the destination buffer. This pattern is present in the verification handlers for PE, MSI, CAB, and script files. An attacker can craft a malicious signed file with an oversized digest field in SpcIndirectDataContent. When a user verifies such a file with osslsigncode verify, the unbounded memcpy can overflow the stack buffer and corrupt adjacent stack state. This vulnerability is fixed in 2.12.
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-39853 | |
| Ubuntu 24.04 | osslsigncode | Under investigation | UBUNTU-CVE-2026-39853 | |
| Ubuntu 22.04 | osslsigncode | Under investigation | UBUNTU-CVE-2026-39853 | |
| Ubuntu 20.04 | osslsigncode | Fix pending | UBUNTU-CVE-2026-39853 | |
| Ubuntu 18.04 | osslsigncode | Fix pending | UBUNTU-CVE-2026-39853 | |
| Ubuntu 16.04 | osslsigncode | Fix pending | UBUNTU-CVE-2026-39853 | |
| Debian 14 | osslsigncode | Fixed | 2.12-1 | DEBIAN-CVE-2026-39853 |
| Debian 13 | osslsigncode | Fix pending | DEBIAN-CVE-2026-39853 | |
| Debian 12 | osslsigncode | Fix pending | DEBIAN-CVE-2026-39853 |
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.12
References
- https://github.com/mtrojnar/osslsigncode/security/advisories/GHSA-hx87-8754-xvh4
- https://github.com/mtrojnar/osslsigncode/commit/cbee1e723c5a8547302bd841ad9943ed8144db68
- https://github.com/mtrojnar/osslsigncode/releases/tag/2.12
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.