
CVE catalog
CVE-2020-13131
yubico-piv-tool: CVE-2020-13131
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.49% · Oct 25, 2026
An issue was discovered in Yubico libykpiv before 2.1.0. lib/util.c in this library (which is included in yubico-piv-tool) does not properly check embedded length fields during device communication. A malicious PIV token can misreport the returned length fields during RSA key generation. This will cause stack memory to be copied into heap allocated memory that gets returned to the caller. The leaked memory could include PINs, passwords, key material, and other sensitive information depending on the integration. During further processing by the caller, this information could leak across trust boundaries. Note that RSA key generation is triggered by the host and cannot directly be triggered by the token.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | yubico-piv-tool | sid | 2.7.3-2 | fixed |
| Debian | yubico-piv-tool | forky | 2.7.3-2 | fixed |
| Debian | yubico-piv-tool | trixie | 2.7.1-1 | fixed |
| Debian | yubico-piv-tool | bookworm | 2.2.0-1.1 | fixed |
| Ubuntu | yubico-piv-tool | pro | 1.0.1-1 | vulnerable |
| Ubuntu | yubico-piv-tool | pro | 1.0.3-1 | vulnerable |
| Ubuntu | yubico-piv-tool | pro | 1.0.3-1ubuntu0.1~esm1 | vulnerable |
| Ubuntu | yubico-piv-tool | 18.04 | 1.4.2-2 | vulnerable |
| Ubuntu | yubico-piv-tool | 18.04 | 1.4.2-2ubuntu0.1 | vulnerable |
| Ubuntu | yubico-piv-tool | 20.04 | 1.7.0-1 | vulnerable |
| Ubuntu | yubico-piv-tool | 20.04 | 2.0.0-1 | vulnerable |
| Ubuntu | yubico-piv-tool | 20.04 | 2.0.0-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | yubico-piv-tool | source | sid | 2.1.1-1 | not yet assigned | Not reported | [975612] |
| Debian | yubico-piv-tool | source | forky | 2.1.1-1 | not yet assigned | Not reported | [975612] |
| Debian | yubico-piv-tool | source | trixie | 2.1.1-1 | not yet assigned | Not reported | [975612] |
| Debian | yubico-piv-tool | source | bookworm | 2.1.1-1 | not yet assigned | Not reported | [975612] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libykpiv2]Fixed
Source package: [yubico-piv-tool]
Details (2)
2.2.0-1.1· amd64 · bookwormFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12
2.2.0-1.1· arm64 · bookwormFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12
- [libykpiv-dev]Fixed
Source package: [yubico-piv-tool]
Details (2)
2.2.0-1.1· amd64 · bookwormFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12
2.2.0-1.1· arm64 · bookwormFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12
- [ykcs11]Fixed
Source package: [yubico-piv-tool]
Details (2)
2.2.0-1.1· amd64 · bookwormFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12
2.2.0-1.1· arm64 · bookwormFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12
- [yubico-piv-tool]Fixed
Details (2)
2.2.0-1.1· amd64 · bookwormFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12
2.2.0-1.1· arm64 · bookwormFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12
[Debian 13 (Trixie)]
- [libykpiv2]Fixed
Source package: [yubico-piv-tool]
Details (2)
2.7.1-1· amd64 · trixieFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · 13
2.7.1-1· arm64 · trixieFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · 13
- [libykpiv-dev]Fixed
Source package: [yubico-piv-tool]
Details (2)
2.7.1-1· amd64 · trixieFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · 13
2.7.1-1· arm64 · trixieFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · 13
- [ykcs11]Fixed
Source package: [yubico-piv-tool]
Details (2)
2.7.1-1· amd64 · trixieFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · 13
2.7.1-1· arm64 · trixieFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · 13
- [yubico-piv-tool]Fixed
Details (2)
2.7.1-1· amd64 · trixieFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · 13
2.7.1-1· arm64 · trixieFixed · Fixed:
2.1.1-1dsa · yubico-piv-tool · debian · 13
Observed: