cve.bz

CVE-2021-3565 Use of Hard-coded Credentials

5.9 mediumEPSS 1.3%Fix available

Medium (5.9). EPSS 1.3% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in tpm2-tools in versions before 5.1.1 and before 4.3.2. tpm2_import used a fixed AES key for the inner wrapper, potentially allowing a MITM attacker to unwrap the inner portion and reveal the key being imported. The highest threat from this vulnerability is to data confidentiality.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-798 Use of Hard-coded Credentials
CWE-665 Improper Initialization
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3565 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3565?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3565?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3565 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tpm2-tools_project:tpm2-toolsbefore 4.3.2
tpm2-tools_project:tpm2-toolsfrom 5.1 before 5.1.1
redhat:enterprise_linux8.0
fedoraproject:fedora33
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14tpm2-tools5.0-2DEBIAN-CVE-2021-3565
Ubuntu16.04:LTS, 20.04:LTS, 22.04:LTS and 4 moretpm2-toolsno fix listedUBUNTU-CVE-2021-3565
Red Hatenterprise_linux:8::baseostpm2-tools, tpm2-tools-debuginfo, tpm2-tools-debugsource0:4.1.1-5.el8RHSA-2021:4413
SUSELinux Enterprise Module for Basesystem 15 SP2tpm2.0-tools4.1-3.3.1SUSE-SU-2021:1999-1
SUSELinux Enterprise Module for Basesystem 15 SP3tpm2.0-tools4.3.0-4.3.1SUSE-SU-2021:1998-1
openSUSELeap 15.2tpm2.0-tools4.1-lp152.2.3.1openSUSE-SU-2021:0934-1
openSUSELeap 15.3tpm2.0-tools4.3.0-4.3.1openSUSE-SU-2021:1998-1
openSUSETumbleweedtpm2.0-tools5.1.1-3.2openSUSE-SU-2024:11471-1
AlmaLinux8tpm2-tools4.1.1-5.el8ALSA-2021:4413
Rocky Linux8tpm2-tools0:4.1.1-5.el8RLSA-2021:4413
Azure Linux2tpm2-tools4.2-2AZL-6923

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Enterprise Linux 7 is not affected by this issue, as it ships an older version of `tpm2-tools` which does not include the tpm2_import tool.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8tpm2-tools-0:4.1.1-5.el8Fixed 2021-11-09RHSA-2021:4413
Red Hat Enterprise Linux 7tpm2-toolsNot affected
Red Hat Enterprise Linux 9tpm2-toolsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3565.

Attack patterns (CAPEC)

  • CAPEC-70 Try Common or Default Usernames and Passwords Likelihood: Medium · Severity: High
  • CAPEC-191 Read Sensitive Constants Within an Executable Severity: Low
  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON