CVE-2022-0317
LOW 3.3CVSS 3.1Go-Attestation Improper Input Validation with attacker-controlled TPM Quote
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.
- Published
- 4 Feb 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve-coordination@google.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-99cg-575x-774pGO-2022-0294
- Sources
- NVDJSONOSV GHSA-99cg-575x-774pJSONOSV GO-2022-0294JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve-coordination@google.com (Secondary) | CVSS 3.1 | MEDIUM 4.0 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.0 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-attestationcpe:2.3:a:google:go-attestation:*:*:*:*:*:*:*:* |
< 0.3.3 | 0.3.3 | |
| OSV | Go | github.com/google/go-attestation | < 0.4.0 | 0.4.0 |
References
- https://github.com/google/go-attestation/security/advisories/GHSA-99cg-575x-774p · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-0317 · ADVISORY
- https://github.com/google/go-attestation/commit/82f2c9c2c76e1d3691d17ee78116d1d93a123788 · WEB, FIX
- https://github.com/google/go-attestation · WEB
- https://pkg.go.dev/vuln/GO-2022-0294 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 4 Feb 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Feb 2022)