Out-of-bounds read in Yubico-Piv 1.5.0 smartcard driver
Multiple products
At a glance
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.
Source description · CVE List / CNA
System impact
CVSS summary v3.0
- Published:
- Updated:
- EPSS:
- 0.449%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Physical
Related CWE
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:yubico | piv manager | Affected versions:< 1.4.2Show full version range for piv manager1.4.21.4.2b1.4.2c1.4.2d1.4.2e1.4.2f1.4.2g
|
| Vendor:yubico | piv tool | Affected versions:< 1.6.0Show full version range for piv tool
|
| Vendor:yubico | smart card minidriver | Affected versions:≤ 3.7.3.160Show full version range for smart card minidriver
|
1–3 of 3 · Page 1 of 1
CVSS scores and metrics2
[email protected] · NVD (Primary)Primary4.6 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- None
- Availability
- None
- Attack vector
- Physical
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N[email protected] · NVD (Primary)2.1 / 10LowCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:L/Au:N/C:P/I:N/A:NCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories7
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences