National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2018-14780 Detail

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

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 4.6 MEDIUM
Vector:  CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://www.openwall.com/lists/oss-security/2018/08/14/2 Mailing List Third Party Advisory
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

Weakness Enumeration

CWE-ID CWE Name Source
CWE-125 Out-of-bounds Read NIST  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:yubico:piv_manager:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (excluding)
1.4.2
 cpe:2.3:a:yubico:piv_manager:1.4.2b:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2c:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2d:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2e:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2f:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2g:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_tool:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (excluding)
1.6.0
 cpe:2.3:a:yubico:smart_card_minidriver:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (including)
3.7.3.160


Change History

1 change record found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2018-14780
NVD Published Date:
08/15/2018
NVD Last Modified:
10/22/2018