CVE-2023-40012
JSON

5.9medium

uthenticode EKU validation bypass

Severity
5.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
trailofbits uthenticode< 2.0.0, before 2.0.0CVE List, NVD

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-325CWE-347

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

uthenticode es una pequeña biblioteca multiplataforma para verificar parcialmente las firmas digitales Authenticode. Las versiones de uthenticode anteriores a la serie 2.x no comprobaban el uso de claves extendidas en los certificados, lo que infringía el perfil de certificado X.509 de Authenticode. Como resultado, un usuario malintencionado podría producir un archivo PE "firmado" que uthenticode verificaría y consideraría válido utilizando un certificado X.509 que no está autorizado a producir firmas de código (por ejemplo, un certificado SSL). Por diseño, uthenticode no realiza una validación de cadena completa. Sin embargo, la ausencia de validación EKU fue un descuido involuntario. La versión 2.0.0 incluye comprobaciones EKU. No existen soluciones a esta vulnerabilidad.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-40012 changed 2024-10-03CVE Terms of Use
NVDCVE-2023-40012 changed 2026-06-17Public domain