CVE-2020-13131
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
yubico libykpivbefore 2.1.0NVD
yubico piv_tool_managerbefore 2.0.0NVD
yubico yubikey_smart_card_minidriverup to 4.1.0.172NVD

All scores

mitre4.3medium CVSS:3.0CVSS:3.0/AC:L/AV:P/A:N/C:H/I:N/PR:N/S:U/UI:R
NVD4.3medium CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD1.9low CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2020-13131 changed 2024-08-04CVE Terms of Use
NVDCVE-2020-13131 changed 2026-06-17Public domain