{"answers":{"affected":"3 open source packages ship an affected version, including github.com/google/go-tpm. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-8918 in the wild and no public exploit code.","fix":"Upgrade github.com/google/go-tpm to 0.3.0 or later.","what":"CVE-2020-8918 is a medium-severity vulnerability in google/go-tpm library, published on 11 Aug 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-8918 and fix it if it is affected.\n\nWhat it is: CVE-2020-8918 is a medium-severity vulnerability in google/go-tpm library, published on 11 Aug 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-8918 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/google/go-tpm (Go): affected all versions; fixed in 0.3.0\n- github.com/google/go-tpm (Go): affected all versions; fixed in 0.3.0\n- github.com/google/go-tpm (Go): affected all versions; fixed in 0.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-8918/ (Markdown: https://insights.sbomify.com/CVE-2020-8918/index.md)","id":"CVE-2020-8918","markdown":"https://insights.sbomify.com/CVE-2020-8918/index.md","name":"CVE-2020-8918","record":{"aliases":["GHSA-5x29-3hr9-6wpw","GO-2021-0095"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go TPM library","requires_auth":"none","summary":"An eavesdropper can recover TPM key authorization values due to improper initialization in the go-tpm library, exposing sensitive credentials.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"go-tpm","vendor":"google"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-665","name":"Improper Initialization"}],"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'.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"TPM 1.2 key authorization values are vulnerable to a TPM transport eavesdropper","id":"CVE-2020-8918","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2020"},"n_packages":3,"n_references":1,"next":{"headline":"Information leakage in Gerrit","id":"CVE-2020-8919"},"packages":[{"ecosystem":"Go","fixed":["0.3.0"],"introduced":["0"],"last_affected":[],"package":"github.com/google/go-tpm","purl":null,"source":"GHSA-5x29-3hr9-6wpw"},{"ecosystem":"Go","fixed":["0.3.0"],"introduced":["0"],"last_affected":[],"package":"github.com/google/go-tpm","purl":"pkg:golang/github.com/google/go-tpm","source":"GHSA-5x29-3hr9-6wpw"},{"ecosystem":"Go","fixed":["0.3.0"],"introduced":["0"],"last_affected":[],"package":"github.com/google/go-tpm","purl":"pkg:golang/github.com/google/go-tpm","source":"GO-2021-0095"}],"prev":{"headline":"Memory leak in wpanctl can lead to DoS","id":"CVE-2020-8916"},"products":["google/go-tpm library"],"published":"2020-08-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Google LLC"]},"summary":"An eavesdropper can recover TPM key authorization values due to improper initialization in the go-tpm library, exposing sensitive credentials.","url":"https://insights.sbomify.com/CVE-2020-8918/"}