CVE & CISA-KEV Catalog

CVE-2018-14780

MEDIUM
4.6
CVSS v3
NVD

Description

An out-of-bounds read 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_fetch_object()`: {% highlight c %} if(sw == SW_SUCCESS) { size_t outlen; int offs = _ykpiv_get_length(data + 1, &outlen); if(offs == 0) { return YKPIV_SIZE_ERROR; } memmove(data, data + 1 + offs, outlen); *len = outlen; return YKPIV_OK; } else { return YKPIV_GENERIC_ERROR; } {% endhighlight %} -- in the end, a `memmove()` occurs with a length retrieved from APDU data. This length is not checked for whether it is outside of the APDU data retrieved. Therefore the `memmove()` could copy bytes behind the allocated data buffer into this buffer.

How to fix

Remediation Available
yubico-piv-toolDebian
Fixed in:1.6.1-1CVE-2018-14780
Fixed in:1.6.1-1CVE-2018-14780
Fixed in:1.6.1-1CVE-2018-14780
Fixed in:1.6.1-1CVE-2018-14780
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
IntegrityNone
AvailabilityNone

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

Exploit Intelligence

0.45%probability of exploitation in 30 days
36thpercentile

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

References

Vendor Advisory1
Third-Party Advisory2
Other references1

Related Vulnerabilities

Other CWE-125 (Out-of-bounds Read) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2014-0160High7.5100%KEVFix
CVE-2025-5777High7.5100%KEV + RansomFix
CVE-2021-4034High7.895%KEVFix
CVE-2023-21769High7.592%-Fix
CVE-2023-49285High8.689%-Fix
CVE-2020-8794Critical9.889%-Fix
Embed a live status badge for CVE-2018-14780
CVE-2018-14780 severity badge

Markdown

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

HTML

<a href="https://tridentstack.com/cve/CVE-2018-14780"><img src="https://tridentstack.com/cve/badge/CVE-2018-14780.svg" alt="CVE-2018-14780"></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.