Home / Yubico / Libykpiv / CVE-2020-13131
CVE-2020-13131: is it exploited, and which versions of Yubico Libykpiv are affected and fixed?
CVE-2020-13131 is an out-of-bounds read vulnerability in Yubico Libykpiv. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: libykpiv before 2.1.0, piv tool manager before 2.0.0 and yubikey smart card minidriver through 4.1.0.172 (NVD). Fixed in 2.1.0 and 2.0.0 (NVD). Severity: Medium (4.3, CVSS 3.0, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:09 UTC.
What is 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.
From the CVE record by mitre, last updated August 4, 2024, 12:11 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| yubico | libykpiv | before 2.1.0 | application |
| yubico | piv tool manager | before 2.0.0 | application |
| yubico | yubikey smart card minidriver | through 4.1.0.172 | application |
NVD analysis (status Modified), last modified June 17, 2026, 02:52 UTC.
How severe is CVE-2020-13131?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.3 | CVSS 3.0 | CVSS:3.0/AC:L/AV:P/A:N/C:H/I:N/PR:N/S:U/UI:R | mitre |
| Medium 4.3 | CVSS 3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N | NVD |
| Low 1.9 | CVSS 2.0 | AV:L/AC:M/Au:N/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2020-13131 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.49% probability of exploitation activity in the next 30 days, percentile 43.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-125 Out-of-bounds Read
Where are the vendor advisories and 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
When was it published, and where is the official record?
- Reserved
- May 18, 2020
- Published
- July 9, 2020, 17:50 UTC
- CVE record updated
- August 4, 2024, 12:11 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 02:52 UTC
- Last checked
- CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:09 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libykpiv?
- Jul 9, 2020CVE-2020-13132 Yubico Libykpiv: release of invalid pointer
Questions about CVE-2020-13131
Is CVE-2020-13131 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.49% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Yubico Libykpiv are affected by CVE-2020-13131?
libykpiv before 2.1.0, piv tool manager before 2.0.0 and yubikey smart card minidriver through 4.1.0.172, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2020-13131?
2.1.0 and 2.0.0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2020-13131?
Medium (4.3, CVSS 3.0, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2020-13131?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.