BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2020-13131 in Yubico Libykpiv and 2 more products

Medium 4.3

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

Affects 3 products from 1 vendor. Facts below cite their sources.

CVSS 3.14.3
EPSS0.5%
EPSS percentile35th
FixSee advisory

Requires physical access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Yubico Libykpiv < 2.1.0
Yubico Piv Tool Manager < 2.0.0
Yubico Yubikey Smart Card Minidriver ≤ 4.1.0.172

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2020-13131
BreachSpider IDBS-2020-GLOBAL-144840-M
CVSS vectorCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Published2020-07-09
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-125: Out-of-Bounds Read

Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.

Related attack patterns (CAPEC)

CAPEC-540 Overread Buffers via CWE-125

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Yubico libykpiv before version 2.1.0 allows a malicious PIV token to misreport length fields during RSA key generation, leading to a stack memory leak.

The attack involves a malicious PIV token that misreports the length of data returned during RSA key generation, causing the system to copy stack memory into heap-allocated memory. This can potentially expose sensitive information.

Questions

What is CVE-2020-13131?

A vulnerability in Yubico libykpiv before version 2.1.0 allows a malicious PIV token to misreport length fields during RSA key generation, leading to a stack memory leak.

What is the CVSS score for CVE-2020-13131?

CVE-2020-13131 has CVSS 4.3 (Medium). Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N. EPSS: 0.5%.

Is CVE-2020-13131 actively exploited?

No confirmed active exploitation of CVE-2020-13131 as of 2026-09-25.

How do I remediate CVE-2020-13131?

Priority: MEDIUM. Advisory: https://www.yubico.com/products/services-software/download/smart-card-drivers-tools/ PSIRT: [email protected]

What systems are affected by CVE-2020-13131?

CVE-2020-13131 affects Yubico Libykpiv, Piv Tool Manager, Yubikey Smart Card Minidriver.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Yubico","product":"Libykpiv","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.