# CVE-2020-13131: An issue was discovered in Yubico libykpiv before 2.1.0.

- Severity: Medium 4.3 (CVSS:3.0, scored by mitre) `CVSS:3.0/AC:L/AV:P/A:N/C:H/I:N/PR:N/S:U/UI:R`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-07-09T17:50:36.000Z
- Modified: 2026-06-17T02:52:40.290Z
- Weaknesses: CWE-125
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- yubico libykpiv: before 2.1.0
- yubico piv_tool_manager: before 2.0.0
- yubico yubikey_smart_card_minidriver: up to 4.1.0.172

## Every score

- mitre: CVSS:3.0 4.3 Medium `CVSS:3.0/AC:L/AV:P/A:N/C:H/I:N/PR:N/S:U/UI:R`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 1.9 Low `AV:L/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://blog.inhq.net/posts/yubico-libykpiv-vuln/> (exploit, third-party-advisory)
- <https://www.yubico.com/products/services-software/download/smart-card-drivers-tools/> (vendor-advisory)

## Sources

- CVE List: [CVE-2020-13131](https://www.cve.org/CVERecord?id=CVE-2020-13131), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-13131](https://nvd.nist.gov/vuln/detail/CVE-2020-13131), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-13131 · Whole record: https://cve.day/CVE-2020-13131.json · Rebuilt by cve.day 2026-11-25T22:57:53.300Z
