cve.bz

CVE-2018-14779 yubico: Out-of-bounds Write

6.8 mediumEPSS 0.5%

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

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

Severity

CVSS 3.0

6.8 medium
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-787 Out-of-bounds Write
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-14779 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-14779?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-14779?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-14779 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-14779
Ubuntu18.04:LTSyubico-piv-tool1.4.2-2ubuntu0.1UBUNTU-CVE-2018-14779 USN-4276-1
UbuntuPro:16.04:LTSyubico-piv-tool1.0.3-1ubuntu0.1~esm1UBUNTU-CVE-2018-14779 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)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON