{"answers":{"affected":"3 open source packages ship an affected version, including github.com/google/go-attestation.","exploited":"There is no known exploitation of CVE-2026-12681 in the wild and no public exploit code.","fix":"Upgrade github.com/google/go-attestation to 0.6.1 or later.","what":"CVE-2026-12681 is a high-severity vulnerability in Google go-attestation, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-12681 and fix it if it is affected.\n\nWhat it is: CVE-2026-12681 is a high-severity vulnerability in Google go-attestation, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-12681 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/google/go-attestation (Go): affected all versions; no fix listed\n- github.com/google/go-attestation (Go): affected all versions; fixed in 0.6.1\n- github.com/google/go-attestation (Go): affected all versions; fixed in 0.6.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-12681/ (Markdown: https://insights.sbomify.com/CVE-2026-12681/index.md)","id":"CVE-2026-12681","markdown":"https://insights.sbomify.com/CVE-2026-12681/index.md","name":"CVE-2026-12681","record":{"aliases":["DEBIAN-CVE-2026-12681","GHSA-9r4w-jg96-92mv","GO-2026-5298","MINI-7h4r-f7m3-3jw2","MINI-q3gf-2vwj-q2fv","UBUNTU-CVE-2026-12681"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go attestation library","requires_auth":"none","summary":"Attackers can inject arbitrary hashes into TPM event logs, bypassing remote attestation verification in the go-attestation library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[],"cvss":{"score":8.9,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N","version":"4.0"},"cwes":[{"id":"CWE-1285","name":"Improper Validation of Specified Index, Position, or Offset in Input"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Go-Attestation: Hash injection into trusted measurement list via unskipped SignatureHeaderSize vendor bytes in parseEfiSignatureList()","id":"CVE-2026-12681","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"other","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Stored XSS in Ankaref's LIBRID/LIBREF","id":"CVE-2026-12682"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/google/go-attestation","purl":"pkg:golang/github.com/google/go-attestation","source":"GO-2026-5298"},{"ecosystem":"Go","fixed":["0.6.1"],"introduced":["0"],"last_affected":[],"package":"github.com/google/go-attestation","purl":null,"source":"GHSA-9r4w-jg96-92mv"},{"ecosystem":"Go","fixed":["0.6.1"],"introduced":["0"],"last_affected":[],"package":"github.com/google/go-attestation","purl":"pkg:golang/github.com/google/go-attestation","source":"GHSA-9r4w-jg96-92mv"}],"prev":{"headline":"Privilege escalation in liquidfiles","id":"CVE-2026-12673"},"products":["go-attestation"],"published":"2026-06-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-24","vendors":["Google"]},"summary":"Attackers can inject arbitrary hashes into TPM event logs, bypassing remote attestation verification in the go-attestation library.","url":"https://insights.sbomify.com/CVE-2026-12681/"}