{"cve":"CVE-2018-14779","nvd":{"published":"2018-08-15T18:29:00.747","modified":"2026-06-17T01:41:37.347","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":6.8},"cwes":["CWE-119","CWE-787"],"references":["http://www.openwall.com/lists/oss-security/2018/08/14/2","https://usn.ubuntu.com/4276-1/","https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/","https://www.yubico.com/support/security-advisories/ysa-2018-03/","http://www.openwall.com/lists/oss-security/2018/08/14/2"],"products":["yubico:piv_manager","yubico:piv_tool","yubico:smart_card_minidriver"],"source":"nvd","synced_at":"2026-10-19T20:52:03.425131697+00:00"},"epss":{"cve":"CVE-2018-14779","score":0.00491,"percentile":0.42196,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}