CVE-2020-13131

EUVD-2020-5407
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
NISTPrimary
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
Base Score
CVSS 3.x
EPSS Score
Percentile: 21%
Affected Products (NVD)
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
bookworm
2.2.0-1.1
fixed
bullseye
2.2.0-1
fixed
sid
2.5.2-1
fixed
stretch
not-affected
trixie
2.5.2-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
yubico-piv-tool
bionic
needs-triage
eoan
ignored
focal
needs-triage
groovy
ignored
hirsute
not-affected
impish
not-affected
jammy
not-affected
kinetic
not-affected
lunar
not-affected
mantic
not-affected
noble
not-affected
trusty
dne
xenial
needs-triage