# CVE-2026-39853: osslsigncode has a Stack Buffer Overflow via Unbounded Digest Copy During Signature Verification

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 10% of CVEs (2026-11-30)
- Published: 2026-04-09T15:50:26.548Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mtrojnar osslsigncode: < 2.12
- osslsigncode_project osslsigncode: before 2.12

## References

- <https://github.com/mtrojnar/osslsigncode/security/advisories/GHSA-hx87-8754-xvh4> (vendor-advisory)
- <https://github.com/mtrojnar/osslsigncode/commit/cbee1e723c5a8547302bd841ad9943ed8144db68> (patch)
- <https://github.com/mtrojnar/osslsigncode/releases/tag/2.12> (product, release-notes)

## Sources

- CVE List: [CVE-2026-39853](https://www.cve.org/CVERecord?id=CVE-2026-39853), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2026-39853](https://nvd.nist.gov/vuln/detail/CVE-2026-39853), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39853 · Whole record: https://cve.day/CVE-2026-39853.json · Rebuilt by cve.day 2026-11-25T22:59:18.380Z
