{"id":"GHSA-99cg-575x-774p","summary":"Go-Attestation Improper Input Validation with attacker-controlled TPM Quote","details":"### Impact\n\nAn improper input validation vulnerability in go-attestation before 0.4.0 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.\n\n### Patches\nThis issue is resolved in version 0.4.0. If your usage of this library verifies PCRs using multiple quotes, make sure to use the new method `AKPublic.VerifyAll()` instead of `AKPublic.Verify`.","aliases":["CVE-2022-0317","GO-2022-0294"],"modified":"2026-03-18T01:30:23.613007Z","published":"2022-02-01T00:43:17Z","database_specific":{"cwe_ids":["CWE-20"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-01-31T22:15:30Z","nvd_published_at":"2022-02-04T23:15:00Z"},"references":[{"type":"WEB","url":"https://github.com/google/go-attestation/security/advisories/GHSA-99cg-575x-774p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0317"},{"type":"WEB","url":"https://github.com/google/go-attestation/commit/82f2c9c2c76e1d3691d17ee78116d1d93a123788"},{"type":"WEB","url":"https://github.com/google/go-attestation"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0294"}],"affected":[{"package":{"name":"github.com/google/go-attestation","ecosystem":"Go","purl":"pkg:golang/github.com/google/go-attestation"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-99cg-575x-774p/GHSA-99cg-575x-774p.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}