4.3
MEDIUM
CVE-2020-13131
Yubico libykpiv Buffer Overflow
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.

INFO

Published Date :

July 9, 2020, 6:15 p.m.

Last Modified :

July 16, 2020, 7:04 p.m.

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

0.7
Affected Products

The following products are affected by CVE-2020-13131 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Yubico libykpiv
2 Yubico piv_tool_manager
3 Yubico yubikey_smart_card_minidriver
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2020-13131.

URL Resource
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

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2020-13131 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2020-13131 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Jul. 16, 2020

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:L/AC:M/Au:N/C:P/I:N/A:N)
    Added CVSS V3.1 NIST AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
    Changed Reference Type https://blog.inhq.net/posts/yubico-libykpiv-vuln/ No Types Assigned https://blog.inhq.net/posts/yubico-libykpiv-vuln/ Exploit, Third Party Advisory
    Changed Reference Type https://www.yubico.com/products/services-software/download/smart-card-drivers-tools/ No Types Assigned https://www.yubico.com/products/services-software/download/smart-card-drivers-tools/ Vendor Advisory
    Added CWE NIST CWE-125
    Added CPE Configuration OR *cpe:2.3:a:yubico:libykpiv:*:*:*:*:*:*:*:* versions up to (excluding) 2.1.0
    Added CPE Configuration OR *cpe:2.3:a:yubico:piv_tool_manager:*:*:*:*:*:*:*:* versions up to (excluding) 2.0.0
    Added CPE Configuration OR *cpe:2.3:a:yubico:yubikey_smart_card_minidriver:*:*:*:*:*:*:*:* versions up to (including) 4.1.0.172
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2020-13131 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2020-13131 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.10 }} 0.01%

score

0.40970

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability