CVE catalog

CVE-2020-13131

yubico-piv-tool: CVE-2020-13131

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
0.49% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianyubico-piv-toolsid2.7.3-2fixed
Debianyubico-piv-toolforky2.7.3-2fixed
Debianyubico-piv-tooltrixie2.7.1-1fixed
Debianyubico-piv-toolbookworm2.2.0-1.1fixed
Ubuntuyubico-piv-toolpro1.0.1-1vulnerable
Ubuntuyubico-piv-toolpro1.0.3-1vulnerable
Ubuntuyubico-piv-toolpro1.0.3-1ubuntu0.1~esm1vulnerable
Ubuntuyubico-piv-tool18.041.4.2-2vulnerable
Ubuntuyubico-piv-tool18.041.4.2-2ubuntu0.1vulnerable
Ubuntuyubico-piv-tool20.041.7.0-1vulnerable
Ubuntuyubico-piv-tool20.042.0.0-1vulnerable
Ubuntuyubico-piv-tool20.042.0.0-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianyubico-piv-toolsourcesid2.1.1-1not yet assignedNot reported[975612]
Debianyubico-piv-toolsourceforky2.1.1-1not yet assignedNot reported[975612]
Debianyubico-piv-toolsourcetrixie2.1.1-1not yet assignedNot reported[975612]
Debianyubico-piv-toolsourcebookworm2.1.1-1not yet assignedNot reported[975612]

[Debian bug #975612]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libykpiv2]Fixed

    Source package: [yubico-piv-tool]

    Details (2)
    • 2.2.0-1.1 · amd64 · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12

    • 2.2.0-1.1 · arm64 · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12

  • Source package: [yubico-piv-tool]

    Details (2)
    • 2.2.0-1.1 · amd64 · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12

    • 2.2.0-1.1 · arm64 · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12

  • [ykcs11]Fixed

    Source package: [yubico-piv-tool]

    Details (2)
    • 2.2.0-1.1 · amd64 · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12

    • 2.2.0-1.1 · arm64 · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12

  • Details (2)
    • 2.2.0-1.1 · amd64 · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12

    • 2.2.0-1.1 · arm64 · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · bookworm; dsa · yubico-piv-tool · debian · 12

[Debian 13 (Trixie)]

  • [libykpiv2]Fixed

    Source package: [yubico-piv-tool]

    Details (2)
    • 2.7.1-1 · amd64 · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · 13

    • 2.7.1-1 · arm64 · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · 13

  • Source package: [yubico-piv-tool]

    Details (2)
    • 2.7.1-1 · amd64 · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · 13

    • 2.7.1-1 · arm64 · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · 13

  • [ykcs11]Fixed

    Source package: [yubico-piv-tool]

    Details (2)
    • 2.7.1-1 · amd64 · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · 13

    • 2.7.1-1 · arm64 · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · 13

  • Details (2)
    • 2.7.1-1 · amd64 · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · 13

    • 2.7.1-1 · arm64 · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · yubico-piv-tool · debian · 13

Observed:

References