{"api_version":"1","generated_at":"2026-07-23T11:40:32+00:00","cve":"CVE-2023-22745","urls":{"html":"https://cve.report/CVE-2023-22745","api":"https://cve.report/api/cve/CVE-2023-22745.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-22745","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-22745"},"summary":{"title":"CVE-2023-22745","description":"tpm2-tss is an open source software implementation of the Trusted Computing Group (TCG) Trusted Platform Module (TPM) 2 Software Stack (TSS2). In affected versions `Tss2_RC_SetHandler` and `Tss2_RC_Decode` both index into `layer_handler` with an 8 bit layer number, but the array only has `TPM2_ERROR_TSS2_RC_LAYER_COUNT` entries, so trying to add a handler for higher-numbered layers or decode a response code with such a layer number reads/writes past the end of the buffer. This Buffer overrun, could result in arbitrary code execution. An example attack would be a MiTM bus attack that returns 0xFFFFFFFF for the RC. Given the common use case of TPM modules an attacker must have local access to the target machine with local system privileges which allows access to the TPM system. Usually TPM access requires administrative privilege.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-01-19 23:15:00","updated_at":"2023-01-26 20:25:00"},"problem_types":["CWE-120"],"metrics":[],"references":[{"url":"https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-4j3v-fh23-vx67","name":"https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-4j3v-fh23-vx67","refsource":"MISC","tags":[],"title":"Buffer Overlow in TSS2_RC_Decode · Advisory · tpm2-software/tpm2-tss · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/tpm2-software/tpm2-tss/commit/306490c8d848c367faa2d9df81f5e69dab46ffb5","name":"https://github.com/tpm2-software/tpm2-tss/commit/306490c8d848c367faa2d9df81f5e69dab46ffb5","refsource":"MISC","tags":[],"title":"tss2_rc: ensure layer number is in bounds · tpm2-software/tpm2-tss@306490c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-22745","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22745","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"22745","vulnerable":"1","versionEndIncluding":"4.0.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"tpm2_software_stack_project","cpe5":"tpm2_software_stack","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-22745","qid":"161118","title":"Oracle Enterprise Linux Security Update for tpm2-tss security and enhancement update (ELSA-2023-6685)"},{"cve":"CVE-2023-22745","qid":"161173","title":"Oracle Enterprise Linux Security Update for tpm2-tss security and enhancement update (ELSA-2023-7166)"},{"cve":"CVE-2023-22745","qid":"181915","title":"Debian Security Update for tpm2-tss (CVE-2023-22745)"},{"cve":"CVE-2023-22745","qid":"242332","title":"Red Hat Update for tpm2-tss (RHSA-2023:6685)"},{"cve":"CVE-2023-22745","qid":"242443","title":"Red Hat Update for tpm2-tss (RHSA-2023:7166)"},{"cve":"CVE-2023-22745","qid":"283687","title":"Fedora Security Update for tpm2 (FEDORA-2023-25617e952a)"},{"cve":"CVE-2023-22745","qid":"283716","title":"Fedora Security Update for tpm2 (FEDORA-2023-3a9674404c)"},{"cve":"CVE-2023-22745","qid":"355265","title":"Amazon Linux Security Advisory for tpm2-tss : ALAS2023-2023-110"},{"cve":"CVE-2023-22745","qid":"379257","title":"Alibaba Cloud Linux Security Update for tpm2-tss security and enhancement update (low) (ALINUX3-SA-2024:0006)"},{"cve":"CVE-2023-22745","qid":"672945","title":"EulerOS Security Update for tpm2-tss (EulerOS-SA-2023-1795)"},{"cve":"CVE-2023-22745","qid":"672948","title":"EulerOS Security Update for tpm2-tss (EulerOS-SA-2023-1773)"},{"cve":"CVE-2023-22745","qid":"673000","title":"EulerOS Security Update for tpm2-tss (EulerOS-SA-2023-1857)"},{"cve":"CVE-2023-22745","qid":"673001","title":"EulerOS Security Update for tpm2-tss (EulerOS-SA-2023-1882)"},{"cve":"CVE-2023-22745","qid":"673034","title":"EulerOS Security Update for tpm2-tss (EulerOS-SA-2023-1965)"},{"cve":"CVE-2023-22745","qid":"673056","title":"EulerOS Security Update for tpm2-tss (EulerOS-SA-2023-1987)"},{"cve":"CVE-2023-22745","qid":"673097","title":"EulerOS Security Update for tpm2-tss (EulerOS-SA-2023-2178)"},{"cve":"CVE-2023-22745","qid":"753739","title":"SUSE Enterprise Linux Security Update for tpm2-0-tss (SUSE-SU-2023:0613-1)"},{"cve":"CVE-2023-22745","qid":"905283","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for tpm2-tss (13043)"},{"cve":"CVE-2023-22745","qid":"905291","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for tpm2-tss (13055)"},{"cve":"CVE-2023-22745","qid":"905489","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for tpm2-tss (13043-1)"},{"cve":"CVE-2023-22745","qid":"905607","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for tpm2-tss (13055-1)"},{"cve":"CVE-2023-22745","qid":"906650","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for tpm2-tss (13055-3)"},{"cve":"CVE-2023-22745","qid":"941406","title":"AlmaLinux Security Update for tpm2-tss (ALSA-2023:6685)"},{"cve":"CVE-2023-22745","qid":"941454","title":"AlmaLinux Security Update for tpm2-tss (ALSA-2023:7166)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-22745","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"tpm2-tss is an open source software implementation of the Trusted Computing Group (TCG) Trusted Platform Module (TPM) 2 Software Stack (TSS2). In affected versions `Tss2_RC_SetHandler` and `Tss2_RC_Decode` both index into `layer_handler` with an 8 bit layer number, but the array only has `TPM2_ERROR_TSS2_RC_LAYER_COUNT` entries, so trying to add a handler for higher-numbered layers or decode a response code with such a layer number reads/writes past the end of the buffer. This Buffer overrun, could result in arbitrary code execution. An example attack would be a MiTM bus attack that returns 0xFFFFFFFF for the RC. Given the common use case of TPM modules an attacker must have local access to the target machine with local system privileges which allows access to the TPM system. Usually TPM access requires administrative privilege."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","cweId":"CWE-120"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"tpm2-software","product":{"product_data":[{"product_name":"tpm2-tss","version":{"version_data":[{"version_value":"<= 4.0.0","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-4j3v-fh23-vx67","refsource":"MISC","name":"https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-4j3v-fh23-vx67"},{"url":"https://github.com/tpm2-software/tpm2-tss/commit/306490c8d848c367faa2d9df81f5e69dab46ffb5","refsource":"MISC","name":"https://github.com/tpm2-software/tpm2-tss/commit/306490c8d848c367faa2d9df81f5e69dab46ffb5"}]},"source":{"advisory":"GHSA-4j3v-fh23-vx67","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.4,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-01-19 23:15:00","lastModifiedDate":"2023-01-26 20:25:00","problem_types":["CWE-120"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":6.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":0.5,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:tpm2_software_stack_project:tpm2_software_stack:*:*:*:*:*:*:*:*","versionEndIncluding":"4.0.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}