CVE-2018-14779 Details
Description
A buffer overflow 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_transfer_data()`: {% highlight c %} if(*out_len + recv_len - 2 > max_out) { fprintf(stderr, "Output buffer to small, wanted to write %lu, max was %lu.", *out_len + recv_len - 2, max_out); } if(out_data) { memcpy(out_data, data, recv_len - 2); out_data += recv_len - 2; *out_len += recv_len - 2; } {% endhighlight %} -- it is clearly checked whether the buffer is big enough to hold the data copied using `memcpy()`, but no error handling happens to avoid the `memcpy()` in such cases. This code path can be triggered with malicious data coming from a smartcard.
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-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-787 | Out-of-bounds Write | [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] |