CVE-2026-12681
JSON

8.9high

Go-Attestation: Hash injection into trusted measurement list via unskipped SignatureHeaderSize vendor bytes in parseEfiSignatureList()

Severity
8.9high CVSS:4.0 by Google
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Google
Also known as
GHSA-9r4w-jg96-92mvGO-2026-5298

Description

Improper Validation of Specified Index, Position, or Offset in Input vulnerability in Google go-attestation. parseEfiSignatureList() does not advance the buffer past vendor bytes before reading entries. For hashSHA256SigGUID lists, this allows attacker-controlled vendor header bytes to be appended to the trusted SHA256 hash list. A crafted TPM event log could inject arbitrary SHA256 hashes into the verifier's trusted measurement database, enabling a remote attestation verifier to accept a compromised boot state. This issue affects go-attestation: through 0.6.0.

Affected

Product or packageVersionsReported by
Google go-attestationup to 0.6.0CVE List
github.com/google/go-attestation (Go)before 0.6.1GitHub Advisory Database, Go Vulnerability Database

All scores

Google8.9high CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N
GitHub6.8high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Classification

CWE-20CWE-1285

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

What each source says

CVE List

Improper Validation of Specified Index, Position, or Offset in Input vulnerability in Google go-attestation. parseEfiSignatureList() does not advance the buffer past vendor bytes before reading entries. For hashSHA256SigGUID lists, this allows attacker-controlled vendor header bytes to be appended to the trusted SHA256 hash list. A crafted TPM event log could inject arbitrary SHA256 hashes into the verifier's trusted measurement database, enabling a remote attestation verifier to accept a compromised boot state. This issue affects go-attestation: through 0.6.0.

GitHub Advisory Database

Summary

parseEfiSignatureList() in attest/internal/events.go does not skip SignatureHeaderSize vendor bytes before reading EFI_SIGNATURE_LIST signature entries, violating UEFI specification section 31.4.1.

Impact

For hashSHA256SigGUID lists, attacker-controlled vendor header bytes are appended directly to the trusted SHA256 hash list. A crafted TPM event log can inject arbitrary SHA256 hashes into the verifier's trusted measurement database, allowing a remote attestation verifier to accept a compromised boot state as legitimate — breaking the core integrity guarantee of remote attestation.

Root Cause

After binary.Read(&signatures.Header) reads 28 bytes, buf points to the start of the SignatureHeaderSize vendor bytes. Both entry loops start at sigOffset := 0 instead of sigOffset := SignatureHeaderSize, causing vendor bytes to be read as signature entries.

Affected versions

All versions through commit f877374 (2026-05-15).

Fix

Pull request: https://github.com/google/go-attestation/pull/502

  • Add bound check: SignatureHeaderSize must not exceed remaining list space
  • Skip SignatureHeaderSize bytes before both entry loops
  • Regression test: TestParseEfiSignatureListNonZeroSignatureHeaderSize
Go Vulnerability Database

Hash injection into trusted measurement list in parseEfiSignatureList in github.com/google/go-attestation

NVD (es)

Vulnerabilidad de Validación Incorrecta de Índice, Posición u Offset Especificados en la Entrada en Google go-attestation. parseEfiSignatureList() no avanza el búfer más allá de los bytes del proveedor antes de leer las entradas. Para listas hashSHA256SigGUID, esto permite que los bytes de encabezado del proveedor controlados por el atacante se anexen a la lista de hashes SHA256 de confianza. Un registro de eventos TPM manipulado podría inyectar hashes SHA256 arbitrarios en la base de datos de mediciones de confianza del verificador, lo que permite a un verificador de atestación remota aceptar un estado de arranque comprometido. Este problema afecta a go-attestation: hasta 0.6.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-12681 changed 2026-06-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-9r4w-jg96-92mv changed 2026-09-12CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5298 changed 2026-11-24CC-BY-4.0
NVDCVE-2026-12681 changed 2026-10-25Public domain