Home / Yubico / Libu2f-host / CVE-2018-20340
CVE-2018-20340: is it exploited, and which versions of Yubico Libu2f-host are affected and fixed?
CVE-2018-20340 is a memory corruption (buffer overflow) vulnerability in Yubico Libu2f-host. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:38 UTC). Affected: libu2f-host 1.1.6 and debian linux 9.0 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.8, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:24 UTC.
What is CVE-2018-20340?
Yubico libu2f-host 1.1.6 contains unchecked buffers in devs.c, which could enable a malicious token to exploit a buffer overflow. An attacker could use this to attempt to execute malicious code using a crafted USB device masquerading as a security token on a computer where the affected library is currently in use. It is not possible to perform this attack with a genuine YubiKey.
From the CVE record by mitre, last updated August 5, 2024, 11:58 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| yubico | libu2f-host | 1.1.6 | application |
| debian | debian linux | 9.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 01:52 UTC.
How severe is CVE-2018-20340?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 3.0 | CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 4.6 | CVSS 2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-20340 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.50% probability of exploitation activity in the next 30 days, percentile 44.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Where are the vendor advisories and references?
- https://seclists.org/bugtraq/2019/Feb/23 x_refsource_MISC
- https://www.debian.org/security/2019/dsa-4389 x_refsource_MISC
- https://www.yubico.com/support/security-advisories/ysa-2019-01/ x_refsource_CONFIRM
- https://developers.yubico.com/libu2f-host/Release_Notes.html x_refsource_CONFIRM
- https://blog.inhq.net/posts/yubico-libu2f-host-vuln-part1/ x_refsource_MISC
- GLSA-202004-15 vendor-advisory, x_refsource_GENTOO
When was it published, and where is the official record?
- Reserved
- December 21, 2018
- Published
- March 17, 2019, 20:06 UTC
- CVE record updated
- August 5, 2024, 11:58 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:52 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:24 UTC; KEV December 3, 2026, 08:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libu2f-host?
- Mar 5, 2019CVE-2019-9578 Yubico Libu2f-host: use of uninitialized resource
Questions about CVE-2018-20340
Is CVE-2018-20340 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:38 UTC. FIRST's EPSS gives it a 0.50% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Yubico Libu2f-host are affected by CVE-2018-20340?
libu2f-host 1.1.6 and debian linux 9.0, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2018-20340?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2018-20340?
Medium (6.8, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-20340?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.