Skip to main content
CVE-2023-22745VulnerabilityPublished Updated

CVE-2023-22745: tpm2-tss · Classic Buffer Overflow

Affects tpm2-tssSource CVE Database V5

0

Not known to be exploited · CVSS 6.4 Medium : upgrade to 4.0.1 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
6.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.0.1
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Jan 2023

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade tpm2-software/tpm2-tss to 4.0.1.

Affected software

ProductAffectedFixed in
GitHubtpm2-software/tpm2-tsspkg:github/tpm2-software/tpm2-tssOther threatsAffected
  • <4.0.1
  • =3.2.2-rc0
Fixed in
  • 4.0.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2023-22745, European organizations should: 1) Immediately upgrade tpm2-tss to versions 4.1.0-rc0, 4.0.1, 3.2.2-rc1 or later where the vulnerability is patched. 2) Restrict local administrative access to systems with TPM modules, enforcing strict access controls and monitoring for unauthorized privilege escalation. 3) Implement endpoint detection and response (EDR) solutions to detect anomalous behavior indicative of exploitation attempts targeting TPM interfaces. 4) Harden physical and logical security controls to prevent unauthorized local access, including secure boot and BIOS/UEFI password protections. 5) Regularly audit TPM usage and software stack versions across the enterprise to ensure compliance with security policies. 6) Educate system administrators and security teams about the risks associated with TPM vulnerabilities and the importance of timely patching. 7) Consider network segmentation and isolation of critical systems to limit lateral movement if local compromise occurs. These steps go beyond generic advice by focusing on the unique access requirements and security context of TPM components.

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.

References

Community reviews

Loading reviews…