# CVE-2026-39855: osslsigncode has an Integer Underflow in PE Page Hash Calculation Can Cause Out-of-Bounds Read

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-125, CWE-190, CWE-191
- **Published:** 2026-04-09T15:58:38.559Z
- **Modified:** 2026-10-26T22:10:00.163Z

## Who should check

- Anyone running mtrojnar osslsigncode \< 2.13

## Description

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.

## Affected and fixed versions

- mtrojnar osslsigncode: \< 2.13 (cvelist)

## Mitigation

- Upgrade osslsigncode to 2.13 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-39855. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-39855.md
Affected: mtrojnar osslsigncode < 2.13
Fixed in: mtrojnar osslsigncode 2.13

Steps:
1. Search this machine and project for mtrojnar osslsigncode: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-39855 being exploited?

There is no confirmed exploitation: CVE-2026-39855 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-39855?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-39855?

mtrojnar osslsigncode \< 2.13.

### Is there a fix for CVE-2026-39855?

Yes. Fixed in mtrojnar osslsigncode 2.13. Upgrade osslsigncode to 2.13 or later.

### How do I check if I'm affected by CVE-2026-39855?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/mtrojnar/osslsigncode/security/advisories/GHSA-76vv-x5rr-q3mr>
- patch: <https://github.com/mtrojnar/osslsigncode/commit/2a5409b7c4b6c6fad2b093531e8fea6cf08e1568>
- other: <https://github.com/mtrojnar/osslsigncode/releases/tag/2.13>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-39855>

HTML: <https://flawdb.com/CVE-2026-39855> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-39855>
