Medium severity · published Aug 15, 2018
CVE-2018-14779
A buffer overflow issue was discovered in the Yubico-Piv 1.5.0 smartcard driver
6.8
CVSS
0.5%
EPSS
No
On KEV
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 vector
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Physical
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 42% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PM
Piv Manager · Yubico
before 1.4.2; 1.4.2; 1.4.2b; 1.4.2c; 1.4.2d; 1.4.2e; +2 more · source: NVD
PT
Piv Tool · Yubico
before 1.6.0 · source: NVD
SC
Smart Card Minidriver · Yubico
through 3.7.3.160 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-14779
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-14779
Mailing List
http://www.openwall.com/lists/oss-security/2018/08/14/2
usn.ubuntu.com
https://usn.ubuntu.com/4276-1/
Third Party Advisory
https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/
Vendor Advisory
https://www.yubico.com/support/security-advisories/ysa-2018-03/
More from Piv Manager
4.6
CVE-2018-14780
An out-of-bounds read issue was discovered in the Yubico-Piv 1.5.0 smartcard driver
