CVE & CISA-KEV Catalog

CVE-2018-14779

MEDIUM
6.8
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
yubico-piv-toolDebian
Fixed in:1.6.1-1CVE-2018-14779
Fixed in:1.6.1-1CVE-2018-14779
Fixed in:1.6.1-1CVE-2018-14779
Fixed in:1.6.1-1CVE-2018-14779
libykpiv1Ubuntu
Fixed in:1.0.3-1ubuntu0.1~esm1USN-4846-1
Fixed in:1.4.2-2ubuntu0.1USN-4276-1
ykcs11Ubuntu
Fixed in:1.4.2-2ubuntu0.1USN-4276-1
yubico-piv-toolUbuntu
Fixed in:1.0.3-1ubuntu0.1~esm1USN-4846-1
Fixed in:1.4.2-2ubuntu0.1USN-4276-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorPhysical
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.49%probability of exploitation in 30 days
38thpercentile

Low risk: more likely to be exploited than 38% of all known CVEs.

References

Vendor Advisory1
Third-Party Advisory2
Other references1

Related Vulnerabilities

Other CWE-119 (Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-4966Critical9.4100%KEV + RansomFix
CVE-2017-11882High7.8100%KEV + Ransom-
CVE-2020-0796Critical10.0100%KEV + Ransom-
CVE-2008-4250Critical9.899%KEV-
CVE-2017-15944Critical9.898%KEVFix
CVE-2015-0014High10.097%--
Embed a live status badge for CVE-2018-14779
CVE-2018-14779 severity badge

Markdown

[![CVE-2018-14779](https://tridentstack.com/cve/badge/CVE-2018-14779.svg)](https://tridentstack.com/cve/CVE-2018-14779)

HTML

<a href="https://tridentstack.com/cve/CVE-2018-14779"><img src="https://tridentstack.com/cve/badge/CVE-2018-14779.svg" alt="CVE-2018-14779"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.