{"schemaVersion":3,"id":"CVE-2020-8918","aliases":["GHSA-5x29-3hr9-6wpw","GO-2021-0095"],"status":"published","duplicateOf":null,"title":null,"description":"An improperly initialized 'migrationAuth' value in Google's go-tpm TPM1.2 library versions prior to 0.3.0 can lead an eavesdropping attacker to discover the auth value for a key created with CreateWrapKey. An attacker listening in on the channel can collect both 'encUsageAuth' and 'encMigrationAuth', and then can calculate 'usageAuth ^ encMigrationAuth' as the 'migrationAuth' can be guessed for all keys created with CreateWrapKey. TPM2.0 is not impacted by this. We recommend updating your library to 0.3.0 or later, or, if you cannot update, to call CreateWrapKey with a random 20-byte value for 'migrationAuth'.","dates":{"published":"2020-08-11T18:35:11.000Z","modified":"2024-08-04T10:12:11.062Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":4.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.6,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0018,"percentile":0.07096,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0018},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0018,"percentile":0.07096}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0018,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0018,"percentile":0.07096}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_GOOGLE_GO-TPM","name":"Go Tpm","source":"github","url":"https://github.com/google/go-tpm/security/advisories/GHSA-5x29-3hr9-6wpw","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-665","name":"Improper Initialization","description":"The product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/665.html"}],"affected":[{"vendor":"github.com/google","product":"go-tpm","name":"github.com/google/go-tpm","label":"go-tpm","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/google/go-tpm","purlType":"golang","versions":[{"text":"< 0.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.0","eol":null,"hubHref":null},{"vendor":"google llc","product":"google/go-tpm library","name":"google/go-tpm library","label":"google/go-tpm library","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ stable, < 0.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ stable, < 0.3.0","eol":null,"hubHref":"/vendor/google_llc/googlego-tpm_library"},{"vendor":"google","product":"go-tpm","name":"go-tpm","label":"go-tpm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.0","eol":null,"hubHref":"/vendor/google/go-tpm"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/google/go-tpm/security/advisories/GHSA-5x29-3hr9-6wpw","label":"github.com/google/go-tpm/security/advisories/GHSA-5x29-3hr9-6wpw","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8918","label":"nvd.nist.gov/vuln/detail/CVE-2020-8918","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/google/go-tpm/pull/195","label":"github.com/google/go-tpm/pull/195","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/google/go-tpm/commit/d7806cce857a1a020190c03348e5361725d8f141","label":"github.com/google/go-tpm/commit/d7806cce857a1a020190c03348e5361725d8f141","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/google/go-tpm","label":"github.com/google/go-tpm","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0095","label":"pkg.go.dev/vuln/GO-2021-0095","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-08-11T18:35:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T10:12:11.062Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":38,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T16:21:12.494Z","stale":false,"partial":false}}