{"id":"CVE-2022-0317","aliases":["CVE-2022-0317","GHSA-99cg-575x-774p","GO-2022-0294"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Input Validation in AKPublic.Verify in go-attestation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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`.","format":"markdown","source":"ghsa"},{"lang":"en","text":"A local attacker can defeat remotely-attested measured boot.\n\nImproper input validation in AKPublic.Verify can cause it to succeed when provided with a maliciously-formed Quote over no/some PCRs. Subsequent use of the same set of PCR values in Eventlog.Verify lacks the authentication performed by quote verification, meaning a local attacker can couple this vulnerability with a maliciously-formed TCG log in Eventlog.Verify to spoof events in the TCG log, defeating remotely-attested measured-boot.","format":"markdown","source":"go"},{"lang":"es","text":"Una vulnerabilidad de Comprobación de Entrada Inapropiada en go-attestation versiones anteriores a 0.3.3, permite a usuarios locales proporcionar una cita con forma maliciosa sobre no/algunas PCR, causando que AKPublic.Verify tenga éxito a pesar de la inconsistencia. El uso posterior del mismo conjunto de valores de PCR en Eventlog.Verify carece de la autenticación llevada a cabo por la verificación de citas, lo que significa que un atacante local podría acoplar esta vulnerabilidad con un registro TCG diseñado de forma maliciosa en Eventlog.Verify para falsificar eventos en el registro TCG, derrotando así el arranque medido comprobado de forma remota. Recomendamos actualizar a la versión 0.4.0 o superior","source":"nvd"}],"published":"2022-02-01T00:43:17.000Z","modified":"2026-06-17T04:20:23.133Z","severity":{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","score":2.1,"rating":"LOW"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.4.0","status":"affected"}],"vendor":"Google LLC","product":"go-attestation","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.0"}],"ecosystem":"Go","package":"github.com/google/go-attestation","purl":"pkg:golang/github.com/google/go-attestation","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.0"}],"ecosystem":"Go","package":"github.com/google/go-attestation","purl":"pkg:golang/github.com/google/go-attestation","source":"go"},{"ranges":[{"status":"affected","fixed":"0.3.3"}],"vendor":"google","product":"go-attestation","cpe":"cpe:2.3:a:google:go-attestation:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/google/go-attestation/security/advisories/GHSA-99cg-575x-774p","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0317","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/google/go-attestation/commit/82f2c9c2c76e1d3691d17ee78116d1d93a123788","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/google/go-attestation","tags":["web"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0294","tags":["web"],"sources":["ghsa"]}],"credits":["Nikki VonHollen"],"assigner":"Google","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-21T13:36:02.155Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0317","url":"https://www.cve.org/CVERecord?id=CVE-2022-0317","licence":"CVE Terms of Use","modified":"2025-04-21T13:56:50.110Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-99cg-575x-774p","url":"https://github.com/advisories/GHSA-99cg-575x-774p","licence":"CC-BY-4.0","modified":"2026-05-04T08:46:07.220Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0294","url":"https://pkg.go.dev/vuln/GO-2022-0294","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0317","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0317","licence":"Public domain","modified":"2026-06-17T04:20:23.133Z"}],"updatedAt":"2026-11-25T22:58:09.498Z","epss":{"score":0.00099,"percentile":0.00856,"date":"2026-12-01T12:00:22.000Z"}}