CVE catalog

CVE-2018-14779

yubico-piv-tool: CVE-2018-14779

[CVE catalog]

Severity
High · CVSS 7.1CVSS:3.0/AV:P/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.49% · Oct 25, 2026

A buffer overflow issue was discovered in the Yubico-Piv 1.5.0 smartcard driver. The file lib/ykpiv.c contains the following code in the function `ykpiv_transfer_data()`: {% highlight c %} if(*out_len + recv_len - 2 > max_out) { fprintf(stderr, "Output buffer to small, wanted to write %lu, max was %lu.", *out_len + recv_len - 2, max_out); } if(out_data) { memcpy(out_data, data, recv_len - 2); out_data += recv_len - 2; *out_len += recv_len - 2; } {% endhighlight %} -- it is clearly checked whether the buffer is big enough to hold the data copied using `memcpy()`, but no error handling happens to avoid the `memcpy()` in such cases. This code path can be triggered with malicious data coming from a smartcard.

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~esm1fixed
Ubuntuyubico-piv-toolpro1.0.1-1vulnerable
Ubuntuyubico-piv-toolpro1.0.3-1vulnerable
Ubuntuyubico-piv-toolpro1.0.3-1ubuntu0.1~esm1fixed
Ubuntuyubico-piv-tool18.041.4.2-2vulnerable
Ubuntuyubico-piv-tool18.041.4.2-2ubuntu0.1fixed
Ubuntuyubico-piv-tool18.041.4.2-2vulnerable
Ubuntuyubico-piv-tool18.041.4.2-2ubuntu0.1fixed
Opensuseyubico-piv-tooltumbleweed2.2.0-1.5fixed
Opensuseyubico-piv-toolleap 15.01.5.0-lp150.2.3.1fixed
Suseyubico-piv-toollinux enterprise module for basesystem 151.5.0-3.3.33fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianyubico-piv-toolsourcesid1.6.1-1lowNot reported[906128]
Debianyubico-piv-toolsourceforky1.6.1-1lowNot reported[906128]
Debianyubico-piv-toolsourcetrixie1.6.1-1lowNot reported[906128]
Debianyubico-piv-toolsourcebookworm1.6.1-1lowNot reported[906128]
Ubuntuyubico-piv-tooldebpro1.0.3-1ubuntu0.1~esm1Not reportedUSN-4846-1Not reported
Ubuntuyubico-piv-tooldebpro1.0.3-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2018-14779Not reported
Ubuntuyubico-piv-tooldeb18.041.4.2-2ubuntu0.1Not reportedUBUNTU-CVE-2018-14779Not reported
Ubuntuyubico-piv-tooldeb18.041.4.2-2ubuntu0.1Not reportedUSN-4276-1Not reported
Opensuseyubico-piv-toolrpmtumbleweed2.2.0-1.5Not reportedOPENSUSE-SU-2024:11537-1Not reported
Opensuseyubico-piv-toolrpmleap 15.01.5.0-lp150.2.3.1Not reportedOPENSUSE-SU-2019:1341-1Not reported
Suseyubico-piv-toolrpmlinux enterprise module for basesystem 151.5.0-3.3.33Not reportedSUSE-SU-2019:1123-1Not reported

[Debian bug #906128]

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • [libykcs11-2]Unknown

    Source package: [yubico-piv-tool]

    Details (1)
    • 2.7.3-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 2.2.0-1.5

      Version impact unknown

      dsa · yubico-piv-tool · opensuse · tumbleweed

  • Source package: [yubico-piv-tool]

    Details (1)
    • 2.7.3-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 2.2.0-1.5

      Version impact unknown

      dsa · yubico-piv-tool · opensuse · tumbleweed

  • [libykpiv2]Unknown

    Source package: [yubico-piv-tool]

    Details (1)
    • 2.7.3-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 2.2.0-1.5

      Version impact unknown

      dsa · yubico-piv-tool · opensuse · tumbleweed

  • Source package: [yubico-piv-tool]

    Details (1)
    • 2.7.3-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 2.2.0-1.5

      Version impact unknown

      dsa · yubico-piv-tool · opensuse · tumbleweed

  • Source package: [yubico-piv-tool]

    Details (1)
    • 2.7.3-1.4 · x86_64 · tumbleweed

      Fixed · Fixed: 2.2.0-1.5

      dsa · yubico-piv-tool · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • [libykpiv2]Fixed

    Source package: [yubico-piv-tool]

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

      Fixed · Fixed: 1.6.1-1

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

    • 2.2.0-1.1 · arm64 · bookworm

      Fixed · Fixed: 1.6.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: 1.6.1-1

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

    • 2.2.0-1.1 · arm64 · bookworm

      Fixed · Fixed: 1.6.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: 1.6.1-1

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

    • 2.2.0-1.1 · arm64 · bookworm

      Fixed · Fixed: 1.6.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: 1.6.1-1

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

    • 2.2.0-1.1 · arm64 · bookworm

      Fixed · Fixed: 1.6.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: 1.6.1-1

      dsa · yubico-piv-tool · debian · 13

    • 2.7.1-1 · arm64 · trixie

      Fixed · Fixed: 1.6.1-1

      dsa · yubico-piv-tool · debian · 13

  • Source package: [yubico-piv-tool]

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

      Fixed · Fixed: 1.6.1-1

      dsa · yubico-piv-tool · debian · 13

    • 2.7.1-1 · arm64 · trixie

      Fixed · Fixed: 1.6.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: 1.6.1-1

      dsa · yubico-piv-tool · debian · 13

    • 2.7.1-1 · arm64 · trixie

      Fixed · Fixed: 1.6.1-1

      dsa · yubico-piv-tool · debian · 13

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

      Fixed · Fixed: 1.6.1-1

      dsa · yubico-piv-tool · debian · 13

    • 2.7.1-1 · arm64 · trixie

      Fixed · Fixed: 1.6.1-1

      dsa · yubico-piv-tool · debian · 13

Observed:

References