Security mailing lists by PureSourceCode

CVE-2020-13131

MEDIUM 4.3CVSS 3.1

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.

Published
9 Jul 2020
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-125
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 4.3 CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD cve@mitre.org (Secondary) CVSS 3.0 MEDIUM 4.3 CVSS:3.0/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 1.9 AV:L/AC:M/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD yubico libykpiv
cpe:2.3:a:yubico:libykpiv:*:*:*:*:*:*:*:*
< 2.1.0 2.1.0
NVD yubico piv_tool_manager
cpe:2.3:a:yubico:piv_tool_manager:*:*:*:*:*:*:*:*
< 2.0.0 2.0.0
NVD yubico yubikey_smart_card_minidriver
cpe:2.3:a:yubico:yubikey_smart_card_minidriver:*:*:*:*:*:*:*:*
<= 4.1.0.172

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 9 Jul 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.