Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/google/go-attestation/attest
  4. ›
  5. CVE-2022-0317

CVE-2022-0317: Improper Input Validation

February 1, 2022 (updated February 9, 2023)

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.

References

  • github.com/advisories/GHSA-99cg-575x-774p
  • github.com/google/go-attestation/commit/82f2c9c2c76e1d3691d17ee78116d1d93a123788
  • github.com/google/go-attestation/security/advisories/GHSA-99cg-575x-774p
  • nvd.nist.gov/vuln/detail/CVE-2022-0317
  • pkg.go.dev/vuln/GO-2022-0294

Code Behaviors & Features

Detect and mitigate CVE-2022-0317 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.0

Fixed versions

  • v0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 3.3 LOW

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/google/go-attestation/attest/CVE-2022-0317.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:51 +0000.