4.6
MEDIUM
CVE-2018-14780
Yubico Piv Out-of-Bounds Read Vulnerability
Description

An out-of-bounds read issue was discovered in the Yubico-Piv 1.5.0 smartcard driver. The file lib/ykpiv.c contains the following code in the function `_ykpiv_fetch_object()`: {% highlight c %} if(sw == SW_SUCCESS) { size_t outlen; int offs = _ykpiv_get_length(data + 1, &outlen); if(offs == 0) { return YKPIV_SIZE_ERROR; } memmove(data, data + 1 + offs, outlen); *len = outlen; return YKPIV_OK; } else { return YKPIV_GENERIC_ERROR; } {% endhighlight %} -- in the end, a `memmove()` occurs with a length retrieved from APDU data. This length is not checked for whether it is outside of the APDU data retrieved. Therefore the `memmove()` could copy bytes behind the allocated data buffer into this buffer.

INFO

Published Date :

Aug. 15, 2018, 6:29 p.m.

Last Modified :

Feb. 25, 2020, 4:15 a.m.

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

0.9
Affected Products

The following products are affected by CVE-2018-14780 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 piv_manager
2 Yubico piv_tool
3 Yubico 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-2018-14780.

URL Resource
http://www.openwall.com/lists/oss-security/2018/08/14/2 Mailing List Third Party Advisory
https://usn.ubuntu.com/4276-1/
https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/ Third Party Advisory
https://www.yubico.com/support/security-advisories/ysa-2018-03/ 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-2018-14780 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2018-14780 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
  • CVE Modified by [email protected]

    Feb. 25, 2020

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/4276-1/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Oct. 22, 2018

    Action Type Old Value New Value
    Added CVSS V2 (AV:L/AC:L/Au:N/C:P/I:N/A:N)
    Added CVSS V3 AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    Changed Reference Type http://www.openwall.com/lists/oss-security/2018/08/14/2 No Types Assigned http://www.openwall.com/lists/oss-security/2018/08/14/2 Mailing List, Third Party Advisory
    Changed Reference Type https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/ No Types Assigned https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/ Third Party Advisory
    Changed Reference Type https://www.yubico.com/support/security-advisories/ysa-2018-03/ No Types Assigned https://www.yubico.com/support/security-advisories/ysa-2018-03/ Vendor Advisory
    Added CWE CWE-125
    Added CPE Configuration OR *cpe:2.3:a:yubico:piv_manager:*:*:*:*:*:*:*:* versions up to (excluding) 1.4.2 *cpe:2.3:a:yubico:piv_manager:1.4.2:*:*:*:*:*:*:* *cpe:2.3:a:yubico:piv_manager:1.4.2b:*:*:*:*:*:*:* *cpe:2.3:a:yubico:piv_manager:1.4.2c:*:*:*:*:*:*:* *cpe:2.3:a:yubico:piv_manager:1.4.2d:*:*:*:*:*:*:* *cpe:2.3:a:yubico:piv_manager:1.4.2e:*:*:*:*:*:*:* *cpe:2.3:a:yubico:piv_manager:1.4.2f:*:*:*:*:*:*:* *cpe:2.3:a:yubico:piv_manager:1.4.2g:*:*:*:*:*:*:* *cpe:2.3:a:yubico:piv_tool:*:*:*:*:*:*:*:* versions up to (excluding) 1.6.0 *cpe:2.3:a:yubico:smart_card_minidriver:*:*:*:*:*:*:*:* versions up to (including) 3.7.3.160
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-2018-14780 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-2018-14780 weaknesses.

Exploit Prediction

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

0.12 }} -0.01%

score

0.44956

percentile

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