{"id":"CVE-2018-14780","details":"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.","modified":"2026-03-15T22:19:12.012070Z","published":"2018-08-15T18:29:00.887Z","related":["SUSE-SU-2019:1123-1","openSUSE-SU-2019:1341-1","openSUSE-SU-2024:11537-1"],"references":[{"type":"WEB","url":"https://usn.ubuntu.com/4276-1/"},{"type":"ADVISORY","url":"https://www.yubico.com/support/security-advisories/ysa-2018-03/"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2018/08/14/2"},{"type":"ADVISORY","url":"https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/"}],"affected":[{"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"1.4.2"}]},{"events":[{"introduced":"0"},{"last_affected":"1.4.2"}]},{"events":[{"introduced":"0"},{"last_affected":"1.4.2b"}]},{"events":[{"introduced":"0"},{"last_affected":"1.4.2c"}]},{"events":[{"introduced":"0"},{"last_affected":"1.4.2d"}]},{"events":[{"introduced":"0"},{"last_affected":"1.4.2e"}]},{"events":[{"introduced":"0"},{"last_affected":"1.4.2f"}]},{"events":[{"introduced":"0"},{"last_affected":"1.4.2g"}]},{"events":[{"introduced":"0"},{"fixed":"1.6.0"}]},{"events":[{"introduced":"0"},{"last_affected":"3.7.3.160"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-14780.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}