tpm2-tools — security advisory
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.
- Products
- tpm2-tools
- Affected versions
- 1.0.0+20160226.64b3334-0ubuntu1, 1.0.0+20160226.64b3334-0ubuntu2, 3.1.3-2, 4.0.1-1, 4.1-1, 4.1.1-1, 4.1.1-1ubuntu0.20.04.1, 5.0-2, 5.2-1, 5.2-1build1, 5.4-1, 5.6-1, 5.6-1build1, 5.6-1build3, 5.6-1build4, 5.7-1, 5.7-1build1, 5.7-1ubuntu1, 5.7-1ubuntu2
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3565
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:00 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2021-3565
tpm2-tools
Fixed versions: Not specified
tpm2-tools
Fixed versions: Not specified
tpm2-tools
Fixed versions: Not specified
tpm2-tools
Fixed versions: Not specified
tpm2-tools
Fixed versions: Not specified
tpm2-tools
Fixed versions: Not specified
tpm2-tools
Fixed versions: Not specified
Complete source record
{
"id": "8d62dd282cceb6ce177eaf8d02927c9b08d22f2c318356a87db2f091301c232e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-3565",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-3565",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2021-3565",
"products": [
{
"name": {
"value": "tpm2-tools",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.0+20160226.64b3334-0ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.0+20160226.64b3334-0ubuntu2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "tpm2-tools",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.1.3-2",
"evidence": "/affected/1/versions"
},
{
"value": "4.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.1-1ubuntu0.20.04.1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "tpm2-tools",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0-2",
"evidence": "/affected/2/versions"
},
{
"value": "5.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "5.2-1build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "tpm2-tools",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.4-1",
"evidence": "/affected/3/versions"
},
{
"value": "5.6-1",
"evidence": "/affected/3/versions"
},
{
"value": "5.6-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "5.6-1build3",
"evidence": "/affected/3/versions"
},
{
"value": "5.6-1build4",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "tpm2-tools",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.7-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "tpm2-tools",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.7-1build1",
"evidence": "/affected/5/versions"
},
{
"value": "5.7-1ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "5.7-1ubuntu2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "tpm2-tools",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.7-1",
"evidence": "/affected/6/versions"
},
{
"value": "5.7-1build1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2021-3565",
"aliases": [
"UBUNTU-CVE-2021-3565"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tpm2-tools",
"purl": "pkg:deb/ubuntu/tpm2-tools?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.0.0+20160226.64b3334-0ubuntu1",
"1.0.0+20160226.64b3334-0ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3565.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tpm2-tools",
"binary_version": "1.0.0+20160226.64b3334-0ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tpm2-tools",
"purl": "pkg:deb/ubuntu/tpm2-tools?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"3.1.3-2",
"4.0.1-1",
"4.1-1",
"4.1.1-1",
"4.1.1-1ubuntu0.20.04.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3565.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tpm2-tools",
"binary_version": "4.1.1-1ubuntu0.20.04.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tpm2-tools",
"purl": "pkg:deb/ubuntu/tpm2-tools?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"5.0-2",
"5.2-1",
"5.2-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3565.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tpm2-tools",
"binary_version": "5.2-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tpm2-tools",
"purl": "pkg:deb/ubuntu/tpm2-tools?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"5.4-1",
"5.6-1",
"5.6-1build1",
"5.6-1build3",
"5.6-1build4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3565.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tpm2-tools",
"binary_version": "5.6-1build4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tpm2-tools",
"purl": "pkg:deb/ubuntu/tpm2-tools?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"5.7-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3565.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tpm2-tools",
"binary_version": "5.7-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tpm2-tools",
"purl": "pkg:deb/ubuntu/tpm2-tools?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"5.7-1build1",
"5.7-1ubuntu1",
"5.7-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3565.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tpm2-tools",
"binary_version": "5.7-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tpm2-tools",
"purl": "pkg:deb/ubuntu/tpm2-tools?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"5.7-1",
"5.7-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3565.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tpm2-tools",
"binary_version": "5.7-1build1"
}
]
}
}
],
"modified": "2026-10-17T12:56:20.989321944Z",
"provider": "osv",
"upstream": [
"CVE-2021-3565"
],
"references": [
"https://ubuntu.com/security/CVE-2021-3565",
"https://bugzilla.redhat.com/show_bug.cgi?id=1964427",
"https://github.com/tpm2-software/tpm2-tools/issues/2738",
"https://github.com/tpm2-software/tpm2-tools/commit/c069e4f179d5e6653a84fb236816c375dca82515",
"https://www.cve.org/CVERecord?id=CVE-2021-3565"
]
},
"related_cves": [
{
"value": "CVE-2021-3565",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355374,
"published_at": "2021-06-04T12:15:00+00:00"
}