Vulnerability · Published Jul 9, 2020 · Assigned by mitre
CVE-2020-13131
Medium 4.3
In plain English
A medium-severity security flaw in the yubico-piv-tool package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | yubico-piv-tool | 2.1.1-1 | DEBIAN-CVE-2020-13131 |
| Debian:13 | yubico-piv-tool | 2.1.1-1 | DEBIAN-CVE-2020-13131 |
| Debian:14 | yubico-piv-tool | 2.1.1-1 | DEBIAN-CVE-2020-13131 |
Affected products (as reported)
References
- https://blog.inhq.net/posts/yubico-libykpiv-vuln/ x_refsource_MISC
- https://www.yubico.com/products/services-software/download/smart-card-drivers-tools/ x_refsource_CONFIRM