CVE-2018-14780
An out-of-bounds read issue was discovered in the Yubico-Piv 1.5.0 smartcard driver. The file lib...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Physical
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
4.6
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.
- Record
CVE-2018-14780- CVSS 3.0
- 4.6 Medium
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 2.1 Low
AV:L/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-14780- Updated
- 2026-11-02
EUVDEUVD-2018-6664 No score
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.
- Record
EUVD-2018-6664- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xwgg-25ph-4c8p
4.6
An out-of-bounds read issue was discovered in the Yubico-Piv 1.5.0 smartcard driver. The file lib...
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.
- Record
GHSA-xwgg-25ph-4c8p- CVSS 3.0
- 4.6 Medium
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
4.6
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.
- Record
CVE-2018-14780- CVSS 3.0
- 4.6 Medium
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-14780
4.6
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.
- Record
DEBIAN-CVE-2018-14780- CVSS 3.0
- 4.6 Medium
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2018-14780
4.6
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.
- Record
UBUNTU-CVE-2018-14780- CVSS 3.0
- 4.6 Medium
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVopenSUSE-SU-2019:1341-1 No score
Security update for yubico-piv-tool
This update for yubico-piv-tool fixes the following issues:
Security issues fixed:
- Fixed an buffer overflow and an out of bounds memory read in ykpiv_transfer_data(), which could be triggered by a malicious token. (CVE-2018-14779, bsc#1104809, YSA-2018-03)
- Fixed an buffer overflow and an out of bounds memory read in _ykpiv_fetch_object(), which could be triggered by a malicious token. (CVE-2018-14780, bsc#1104811, YSA-2018-03)
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2019:1341-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11537-1 No score
libykcs11-2-2.2.0-1.5 on GA media
These are all security issues fixed in the libykcs11-2-2.2.0-1.5 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11537-1- Updated
- 2026-11-02
OSVSUSE-SU-2019:1123-1 No score
Security update for yubico-piv-tool
This update for yubico-piv-tool fixes the following issues:
Security issues fixed:
- Fixed an buffer overflow and an out of bounds memory read in ykpiv_transfer_data(), which could be triggered by a malicious token. (CVE-2018-14779, bsc#1104809, YSA-2018-03)
- Fixed an buffer overflow and an out of bounds memory read in _ykpiv_fetch_object(), which could be triggered by a malicious token. (CVE-2018-14780, bsc#1104811, YSA-2018-03)
- Record
SUSE-SU-2019:1123-1- Updated
- 2026-11-02
OSVUSN-4276-1 No score
Yubico PIV Tool vulnerabilities
It was discovered that libykpiv, a supporting library of the Yubico PIV Tool and YubiKey PIV Manager, mishandled specially crafted input. An attacker with a custom-made, malicious USB device could potentially execute arbitrary code on a computer running the Yubico PIV Tool or Yubikey PIV Manager.
- Record
USN-4276-1- Updated
- 2026-11-02
OSVUSN-4846-1 No score
yubico-piv-tool vulnerabilities
It was discovered that libykpiv, a supporting library of the Yubico PIV tool and YubiKey PIV Manager, mishandled specially crafted input. An attacker with a custom-made, malicious USB device could potentially execute arbitrary code on a computer running the Yubico PIV Tool or Yubikey PIV Manager.
- Record
USN-4846-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
yubico-piv-toolDebian:12 |
before 1.6.1-1 | 1.6.1-1 |
yubico-piv-toolDebian:13 |
before 1.6.1-1 | 1.6.1-1 |
yubico-piv-toolDebian:14 |
before 1.6.1-1 | 1.6.1-1 |
yubico-piv-toolSUSE:Linux Enterprise Module for Basesystem 15 |
before 1.5.0-3.3.33 | 1.5.0-3.3.33 |
yubico-piv-toolUbuntu:Pro:16.04:LTS |
before 1.0.3-1ubuntu0.1~esm1, plus listed versions 1.0.1-11.0.3-1 |
1.0.3-1ubuntu0.1~esm1 |
yubico-piv-toolUbuntu:18.04:LTS |
before 1.4.2-2ubuntu0.1, plus listed versions 1.4.2-2 |
1.4.2-2ubuntu0.1 |
yubico-piv-toolopenSUSE:Leap 15.0 |
before 1.5.0-lp150.2.3.1 | 1.5.0-lp150.2.3.1 |
yubico-piv-toolopenSUSE:Tumbleweed |
before 2.2.0-1.5 | 2.2.0-1.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-14780 is a medium vulnerability (CVSS 4.6) in Yubico Piv Manager, published August 15, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.45%, the 39th percentile. Fixed in yubico-piv-tool 1.6.1-1.
References
yubico.com/support/security-advisories/ysa-2018-03
x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv
openwall.com/lists/oss-security/2018/08/14/2
usn.ubuntu.com/4276-1
nvd.nist.gov/vuln/detail/CVE-2018-14780
github.com/advisories/GHSA-xwgg-25ph-4c8p
Show 12 moreShow less
security-tracker.debian.org/tracker/CVE-2018-14780
suse.com/support/update/announcement/2019/suse-su-20191123-1
bugzilla.suse.com/1104809
bugzilla.suse.com/1104811
suse.com/security/cve/CVE-2018-14779
suse.com/security/cve/CVE-2018-14780
ubuntu.com/security/CVE-2018-14780
ubuntu.com/security/notices/USN-4276-1
cve.org/CVERecord?id=CVE-2018-14780
ubuntu.com/security/notices/USN-4846-1
ubuntu.com/security/CVE-2018-14779
lists.opensuse.org/archives/list/[email protected]/thread/SKNALFJRS7OCVOWZEDZL7DT5WORQDQGM