# CVE-2023-40012: uthenticode EKU validation bypass

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- 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 17% of CVEs (2026-12-01)
- Published: 2023-08-09T15:33:54.406Z
- Modified: 2026-06-17T06:15:44.317Z
- Weaknesses: CWE-325, CWE-347
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

uthenticode is a small cross-platform library for partially verifying Authenticode digital signatures. Versions of uthenticode prior to the 2.x series did not check Extended Key Usages in certificates, in violation of the Authenticode X.509 certificate profile. As a result, a malicious user could produce a "signed" PE file that uthenticode would verify and consider valid using an X.509 certificate that isn't entitled to produce code signatures (e.g., a SSL certificate). By design, uthenticode does not perform full-chain validation. However, the absence of EKU validation was an unintended oversight. The 2.0.0 release series includes EKU checks. There are no workarounds to this vulnerability.

(As written by CVE List.)

## Affected

- trailofbits uthenticode: < 2.0.0; before 2.0.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/trailofbits/uthenticode/security/advisories/GHSA-gm2f-j4rj-6xqj> (vendor-advisory)
- <https://github.com/trailofbits/uthenticode/pull/78> (patch)
- <https://github.com/trailofbits/uthenticode/commit/caeb1eb62412605f71bd96ce9bb9420644b6db53> (patch)

## Sources

- CVE List: [CVE-2023-40012](https://www.cve.org/CVERecord?id=CVE-2023-40012), CVE Terms of Use, modified 2024-10-03
- NVD: [CVE-2023-40012](https://nvd.nist.gov/vuln/detail/CVE-2023-40012), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40012 · Whole record: https://cve.day/CVE-2023-40012.json · Rebuilt by cve.day 2026-11-25T22:58:26.983Z
