UBUNTU-CVE-2020-13131

Source
https://ubuntu.com/security/CVE-2020-13131
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-13131.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2020-13131
Upstream
Published
2020-07-09T18:15:00Z
Modified
2025-10-24T04:48:29Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.0/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / yubico-piv-tool

Package

Name
yubico-piv-tool
Purl
pkg:deb/ubuntu/yubico-piv-tool@1.0.3-1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.1-1
1.0.3-1
1.0.3-1ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.0.3-1ubuntu0.1~esm1",
            "binary_name": "libykpiv-dev"
        },
        {
            "binary_version": "1.0.3-1ubuntu0.1~esm1",
            "binary_name": "libykpiv1"
        },
        {
            "binary_version": "1.0.3-1ubuntu0.1~esm1",
            "binary_name": "yubico-piv-tool"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-13131.json"

Ubuntu:18.04:LTS / yubico-piv-tool

Package

Name
yubico-piv-tool
Purl
pkg:deb/ubuntu/yubico-piv-tool@1.4.2-2ubuntu0.1?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.4.2-2
1.4.2-2ubuntu0.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.4.2-2ubuntu0.1",
            "binary_name": "libykpiv-dev"
        },
        {
            "binary_version": "1.4.2-2ubuntu0.1",
            "binary_name": "libykpiv1"
        },
        {
            "binary_version": "1.4.2-2ubuntu0.1",
            "binary_name": "ykcs11"
        },
        {
            "binary_version": "1.4.2-2ubuntu0.1",
            "binary_name": "yubico-piv-tool"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-13131.json"

Ubuntu:20.04:LTS / yubico-piv-tool

Package

Name
yubico-piv-tool
Purl
pkg:deb/ubuntu/yubico-piv-tool@2.0.0-2?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.0-1
2.*
2.0.0-1
2.0.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.0.0-2",
            "binary_name": "libykpiv-dev"
        },
        {
            "binary_version": "2.0.0-2",
            "binary_name": "libykpiv1"
        },
        {
            "binary_version": "2.0.0-2",
            "binary_name": "ykcs11"
        },
        {
            "binary_version": "2.0.0-2",
            "binary_name": "yubico-piv-tool"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-13131.json"