CVE-2018-14780 json
An out-of-bounds read issue was discovered in the Yubico-Piv 1.5.0 smartcard driver.
published 2018-08-15 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-6664
- cvss
- 4.6
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- yubico piv_manager 1.4.2
- yubico piv_tool 1.6.0
- yubico-piv-tool Debian 14, Debian 13, Debian 12 1.6.1-1
debian advisories DEBIAN-CVE-2018-14780
- yubico-piv-tool Ubuntu 18.04 LTS 1.4.2-2ubuntu0.1
- yubico-piv-tool Ubuntu Pro 16.04 LTS 1.0.3-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2018-14780
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- yubico-piv-tool SLE Module for Basesystem 15 1.5.0-3.3.33
suse advisories SUSE-SU-2019:1123-1
- yubico-piv-tool openSUSE Tumbleweed 2.2.0-1.5
- yubico-piv-tool openSUSE Leap 15.0 1.5.0-lp150.2.3.1
opensuse advisories openSUSE-SU-2024:11537-1openSUSE-SU-2019:1341-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-14780 updated cvss 6.4
yubico-piv-tool: Unchecked Buffer in libykpiv
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 4.6 | CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
usn.ubuntu.com
/4276-1/
vendor-advisory
-
yubico.com
/support/security-advisories/ysa-2018-03/
vendor-advisory
-
x41-dsec.de
/lab/advisories/x41-2018-001-Yubico-Piv/
third-party-advisory
-
openwall.com
/lists/oss-security/2018/08/14/2
mailing-list, third-party-advisory
Sources
- CVE List CVE-2018-14780
- NVD CVE-2018-14780
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.