{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-22745 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2023-22745 is a medium-severity memory corruption vulnerability in tpm2-software tpm2-tss, published on 19 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-22745 and fix it if it is affected.\n\nWhat it is: CVE-2023-22745 is a medium-severity memory corruption vulnerability in tpm2-software tpm2-tss, published on 19 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-22745 exists.\n\nAffected product: tpm2-software tpm2-tss. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2023-22745/ (Markdown: https://insights.sbomify.com/CVE-2023-22745/index.md)","id":"CVE-2023-22745","markdown":"https://insights.sbomify.com/CVE-2023-22745/index.md","name":"CVE-2023-22745","record":{"aliases":["ALSA-2023:6685","ALSA-2023:7166","AZL-13055","AZL-69129","BELL-CVE-2023-22745","CLSA-2025-1760021057","DEBIAN-CVE-2023-22745","GHSA-4j3v-fh23-vx67","MGASA-2023-0050","OESA-2023-1079","RHSA-2023:6685","RHSA-2023:7166","RHSA-2024:4408","RHSA-2024:4739","SUSE-SU-2023:0526-1","SUSE-SU-2023:0613-1","UBUNTU-CVE-2023-22745","openSUSE-SU-2024:12629-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"TPM 2 Software Stack","requires_auth":"high_privilege","summary":"A buffer overflow in tpm2-tss allows local attackers with TPM access to execute arbitrary code via crafted response codes.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tpm2_software_stack","vendor":"tpm2_software_stack_project"}],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"tpm2-tss is an open source software implementation of the Trusted Computing Group (TCG) Trusted Platform Module (TPM) 2 Software Stack (TSS2). In versions prior to 4.1.0-rc0, 4.0.1, and 3.2.2-rc1, `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. Versions 4.1.0-rc0, 4.0.1, and 3.2.2-rc1 fix the issue.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.6::baseos","Red Hat:rhel_eus:8.8::baseos","Red Hat:rhel_tus:8.6::baseos","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Real Time 15 SP3","openSUSE:Leap 15.4","openSUSE:Leap Micro 5.3"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Buffer Overlow in TSS2_RC_Decode in tpm2-tss","id":"CVE-2023-22745","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2023"},"n_packages":36,"n_references":4,"next":{"headline":"CKAN is vulnerable to session secret shared across instances using Docker images","id":"CVE-2023-22746"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["2.3.2-5.el8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss","purl":"pkg:rpm/almalinux/tpm2-tss","source":"ALSA-2023:7166"},{"ecosystem":"AlmaLinux:8","fixed":["2.3.2-5.el8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-devel","purl":"pkg:rpm/almalinux/tpm2-tss-devel","source":"ALSA-2023:7166"},{"ecosystem":"AlmaLinux:9","fixed":["3.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss","purl":"pkg:rpm/almalinux/tpm2-tss","source":"ALSA-2023:6685"},{"ecosystem":"AlmaLinux:9","fixed":["3.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-devel","purl":"pkg:rpm/almalinux/tpm2-tss-devel","source":"ALSA-2023:6685"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.2-5.el8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss","purl":"pkg:rpm/redhat/tpm2-tss","source":"RHSA-2023:7166"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.2-5.el8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debuginfo","purl":"pkg:rpm/redhat/tpm2-tss-debuginfo","source":"RHSA-2023:7166"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.2-5.el8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debugsource","purl":"pkg:rpm/redhat/tpm2-tss-debugsource","source":"RHSA-2023:7166"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.2-5.el8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-devel","purl":"pkg:rpm/redhat/tpm2-tss-devel","source":"RHSA-2023:7166"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:3.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss","purl":"pkg:rpm/redhat/tpm2-tss","source":"RHSA-2023:6685"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:3.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debuginfo","purl":"pkg:rpm/redhat/tpm2-tss-debuginfo","source":"RHSA-2023:6685"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:3.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debugsource","purl":"pkg:rpm/redhat/tpm2-tss-debugsource","source":"RHSA-2023:6685"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debuginfo","purl":"pkg:rpm/redhat/tpm2-tss-debuginfo","source":"RHSA-2023:6685"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debugsource","purl":"pkg:rpm/redhat/tpm2-tss-debugsource","source":"RHSA-2023:6685"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-devel","purl":"pkg:rpm/redhat/tpm2-tss-devel","source":"RHSA-2023:6685"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss","purl":"pkg:rpm/redhat/tpm2-tss","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debuginfo","purl":"pkg:rpm/redhat/tpm2-tss-debuginfo","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debugsource","purl":"pkg:rpm/redhat/tpm2-tss-debugsource","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-devel","purl":"pkg:rpm/redhat/tpm2-tss-devel","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss","purl":"pkg:rpm/redhat/tpm2-tss","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debuginfo","purl":"pkg:rpm/redhat/tpm2-tss-debuginfo","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debugsource","purl":"pkg:rpm/redhat/tpm2-tss-debugsource","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-devel","purl":"pkg:rpm/redhat/tpm2-tss-devel","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["0:2.3.2-5.el8_8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss","purl":"pkg:rpm/redhat/tpm2-tss","source":"RHSA-2024:4739"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["0:2.3.2-5.el8_8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debuginfo","purl":"pkg:rpm/redhat/tpm2-tss-debuginfo","source":"RHSA-2024:4739"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["0:2.3.2-5.el8_8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debugsource","purl":"pkg:rpm/redhat/tpm2-tss-debugsource","source":"RHSA-2024:4739"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["0:2.3.2-5.el8_8"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-devel","purl":"pkg:rpm/redhat/tpm2-tss-devel","source":"RHSA-2024:4739"},{"ecosystem":"Red Hat:rhel_tus:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss","purl":"pkg:rpm/redhat/tpm2-tss","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_tus:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debuginfo","purl":"pkg:rpm/redhat/tpm2-tss-debuginfo","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_tus:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-debugsource","purl":"pkg:rpm/redhat/tpm2-tss-debugsource","source":"RHSA-2024:4408"},{"ecosystem":"Red Hat:rhel_tus:8.6::baseos","fixed":["0:2.3.2-5.el8_6"],"introduced":["0"],"last_affected":[],"package":"tpm2-tss-devel","purl":"pkg:rpm/redhat/tpm2-tss-devel","source":"RHSA-2024:4408"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["3.1.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/suse/tpm2-0-tss\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2023:0526-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["3.1.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/suse/tpm2-0-tss\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2023:0526-1"},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP3","fixed":["2.4.5-150300.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/suse/tpm2-0-tss\u0026distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3","source":"SUSE-SU-2023:0613-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["2.4.5-150300.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/opensuse/tpm2-0-tss\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:0613-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["3.1.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/opensuse/tpm2-0-tss\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:0526-1"},{"ecosystem":"openSUSE:Leap Micro 5.3","fixed":["3.1.0-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/opensuse/tpm2-0-tss\u0026distro=openSUSE%20Leap%20Micro%205.3","source":"SUSE-SU-2023:0526-1"}],"prev":{"headline":"Git for Windows' installer is susceptible to DLL side loading attacks","id":"CVE-2023-22743"},"products":["tpm2-tss"],"published":"2023-01-19","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-21","vendors":["tpm2-software"]},"summary":"A buffer overflow in tpm2-tss allows local attackers with TPM access to execute arbitrary code via crafted response codes.","url":"https://insights.sbomify.com/CVE-2023-22745/"}