cve.bz

CVE-2018-14780 yubico: Out-of-bounds Read

4.6 mediumEPSS 0.4%

Medium (4.6) in yubico. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

4.6 medium
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-14780 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-14780?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-14780?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-14780 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
yubico:piv_managerbefore 1.4.2
yubico:piv_manager1.4.2
yubico:piv_manager1.4.2b
yubico:piv_manager1.4.2c
yubico:piv_manager1.4.2d
yubico:piv_manager1.4.2e
yubico:piv_manager1.4.2f
yubico:piv_manager1.4.2g
yubico:piv_toolbefore 1.6.0
yubico:smart_card_minidriverthrough 3.7.3.160

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14yubico-piv-tool1.6.1-1DEBIAN-CVE-2018-14780
Ubuntu18.04:LTSyubico-piv-tool1.4.2-2ubuntu0.1UBUNTU-CVE-2018-14780 USN-4276-1
UbuntuPro:16.04:LTSyubico-piv-tool1.0.3-1ubuntu0.1~esm1UBUNTU-CVE-2018-14780 USN-4846-1
SUSELinux Enterprise Module for Basesystem 15yubico-piv-tool1.5.0-3.3.33SUSE-SU-2019:1123-1
openSUSELeap 15.0yubico-piv-tool1.5.0-lp150.2.3.1openSUSE-SU-2019:1341-1
openSUSETumbleweedyubico-piv-tool2.2.0-1.5openSUSE-SU-2024:11537-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON