CVE-2018-14780 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://usn.ubuntu.com/4276-1/ | CVE | |
| https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/ | CVE | Third Party Advisory |
| https://www.yubico.com/support/security-advisories/ysa-2018-03/ | CVE | Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2018/08/14/2 | CVE | Mailing ListThird Party Advisory |
| https://usn.ubuntu.com/4276-1/ | [email protected] | |
| https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/ | [email protected] | Third Party Advisory |
| https://www.yubico.com/support/security-advisories/ysa-2018-03/ | [email protected] | Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2018/08/14/2 | [email protected] | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yubico piv manager | < 1.4.2 1.4.2 1.4.2b 1.4.2c 1.4.2d 1.4.2e 1.4.2f 1.4.2g |
CPE
Remediation
| |
| yubico piv tool | < 1.6.0 |
CPE
Remediation
| |
| yubico smart card minidriver | <= 3.7.3.160 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 25, 2020 | CVE Modified | [email protected] |
| Oct 22, 2018 | Initial Analysis | [email protected] |