CVE-2020-13131

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
4.3 MEDIUM
PHYSICAL
LOW
NONE
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
mitreCNA
4.3 MEDIUM
PHYSICAL
LOW
NONE
CVSS:3.0/AC:L/AV:P/A:N/C:H/I:N/PR:N/S:U/UI:R
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 22%
VendorProductVersion
yubicolibykpiv
𝑥
< 2.1.0
yubicopiv_tool_manager
𝑥
< 2.0.0
yubicoyubikey_smart_card_minidriver
𝑥
≤ 4.1.0.172
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
yubico-piv-tool
bullseye
2.2.0-1
fixed
stretch
not-affected
bookworm
2.2.0-1.1
fixed
sid
2.5.2-1
fixed
trixie
2.5.2-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
yubico-piv-tool
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
not-affected
jammy
not-affected
impish
not-affected
hirsute
not-affected
groovy
ignored
focal
needs-triage
eoan
ignored
bionic
needs-triage
xenial
needs-triage
trusty
dne