Skip to content
Heist/ feed
Back to feed
MediumFix available

yubico-piv-tool — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2020-13131

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.

Products
yubico-piv-tool
Affected versions
Not specified
Fixed versions
2.1.1-1
CVEs
CVE-2020-13131
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 13:23 UTC · Revision 1

Source evidence

DEBIAN-CVE-2020-13131

core-osv · Original source

Published 9 Jul 2020, 18:15 UTC

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.

osv:DEBIAN-CVE-2020-13131

yubico-piv-tool

Fixed versions: 2.1.1-1

yubico-piv-tool

Fixed versions: 2.1.1-1

yubico-piv-tool

Fixed versions: 2.1.1-1

Complete source record
{
  "id": "0905010f2b0e0a92a7ad60eabab2b0a88e92bc70fceae42475ed88df5e43a432",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-13131",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2020-13131",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2020-13131",
    "products": [
      {
        "name": {
          "value": "yubico-piv-tool",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.1-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "yubico-piv-tool",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.1-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "yubico-piv-tool",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2020-13131",
      "aliases": [
        "DEBIAN-CVE-2020-13131"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "yubico-piv-tool",
            "purl": "pkg:deb/debian/yubico-piv-tool?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-13131.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "yubico-piv-tool",
            "purl": "pkg:deb/debian/yubico-piv-tool?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-13131.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "yubico-piv-tool",
            "purl": "pkg:deb/debian/yubico-piv-tool?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-13131.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T12:02:25.662788201Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-13131"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2020-13131"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-13131",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 452163,
  "published_at": "2020-07-09T18:15:10.537+00:00"
}