CVEfocus › CVE database › CVE-2020-13131

CVE-2020-13131

CVSS 4.3 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2020-07-09Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
3Fix pending
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04yubico-piv-toolNot affected
vulnerable_code_not_present
Ubuntu 25.10yubico-piv-toolNot affected
vulnerable_code_not_present
Ubuntu 24.04yubico-piv-toolNot affected
vulnerable_code_not_present
Ubuntu 22.04yubico-piv-toolNot affected
vulnerable_code_not_present
Ubuntu 20.04yubico-piv-toolFix pendingUBUNTU-CVE-2020-13131
Ubuntu 18.04yubico-piv-toolFix pendingUBUNTU-CVE-2020-13131
Ubuntu 16.04yubico-piv-toolFix pendingUBUNTU-CVE-2020-13131
Debian 14yubico-piv-toolFixed2.1.1-1DEBIAN-CVE-2020-13131
Debian 13yubico-piv-toolFixed2.1.1-1DEBIAN-CVE-2020-13131
Debian 12yubico-piv-toolFixed2.1.1-1DEBIAN-CVE-2020-13131

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.