4.3medium
An issue was discovered in Yubico libykpiv before 2.1.0.
- Severity
- 4.3medium CVSS:3.0 by mitre
- Exploit likelihood
- 0.49% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
Description
An issue was discovered in Yubico libykpiv before 2.1.0. lib/util.c in this library (which is included in yubico-piv-tool) does not properly check embedded length fields during device communication. A malicious PIV token can misreport the returned length fields during RSA key generation. This will cause stack memory to be copied into heap allocated memory that gets returned to the caller. The leaked memory could include PINs, passwords, key material, and other sensitive information depending on the integration. During further processing by the caller, this information could leak across trust boundaries. Note that RSA key generation is triggered by the host and cannot directly be triggered by the token.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| yubico libykpiv | before 2.1.0 | NVD |
| yubico piv_tool_manager | before 2.0.0 | NVD |
| yubico yubikey_smart_card_minidriver | up to 4.1.0.172 | NVD |
All scores
| mitre | 4.3medium CVSS:3.0 | CVSS:3.0/AC:L/AV:P/A:N/C:H/I:N/PR:N/S:U/UI:R |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | 1.9low CVSS:2.0 | AV:L/AC:M/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
An issue was discovered in Yubico libykpiv before 2.1.0. lib/util.c in this library (which is included in yubico-piv-tool) does not properly check embedded length fields during device communication. A malicious PIV token can misreport the returned length fields during RSA key generation. This will cause stack memory to be copied into heap allocated memory that gets returned to the caller. The leaked memory could include PINs, passwords, key material, and other sensitive information depending on the integration. During further processing by the caller, this information could leak across trust boundaries. Note that RSA key generation is triggered by the host and cannot directly be triggered by the token.
NVD (es)
Se detectó un problema en Yubico libykpiv versiones anteriores a 2.1.0. La biblioteca lib/util.c (que es incluida en yubico-piv-tool) no comprueba apropiadamente los campos de longitud incorporados durante la comunicación del dispositivo. Un token PIV malicioso puede reportar erróneamente los campos de longitud devueltos durante la generación de claves RSA. Esto causará que la memoria stack sea copiada en la memoria asignada de heap que se devuelve a la persona que llama. La memoria filtrada podría incluir PIN, contraseñas, material clave y otra información confidencial dependiendo de la integración. Durante el procesamiento posterior por parte de la persona que llama, esta información podría filtrarse a través de límites de confianza. Tome en cuenta que la generación de claves RSA es desencadenada por el host y no puede ser desencadenada directamente por el token
References
| https://blog.inhq.net/posts/yubico-libykpiv-vuln/ | exploit, third-party-advisory | |
| https://www.yubico.com/products/services-software/download/smart-card-drivers-tools/ | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-13131 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2020-13131 changed 2026-06-17 | Public domain |