Home / LibVNC / LibVNC / CVE-2018-20021
CVE-2018-20021: is it exploited, and which versions of LibVNC are affected and fixed?
CVE-2018-20021 is an infinite loop (denial of service) vulnerability in LibVNC. 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, 10:38 UTC). Affected: LibVNC commit c3115350eb8bb635d0fdb4dbbb0d0541f38ed19c (CVE record by Kaspersky). Fixed in 0.9.12 (NVD). Severity: High (7.5, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:26 UTC.
What is CVE-2018-20021?
LibVNC before commit c3115350eb8bb635d0fdb4dbbb0d0541f38ed19c contains a CWE-835: Infinite loop vulnerability in VNC client code. Vulnerability allows attacker to consume excessive amount of resources like CPU and RAM
From the CVE record by Kaspersky, last updated August 5, 2024, 11:51 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| LibVNC | commit c3115350eb8bb635d0fdb4dbbb0d0541f38ed19c |
As the CVE record by Kaspersky states it, last updated August 5, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libvnc project | libvncserver | before 0.9.12 | application |
| canonical | ubuntu linux | 14.04 | operating system |
| canonical | ubuntu linux | 16.04 | operating system |
| canonical | ubuntu linux | 18.04 | operating system |
| canonical | ubuntu linux | 18.10 | operating system |
| debian | debian linux | 8.0 | operating system |
| debian | debian linux | 9.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 01:52 UTC.
How severe is CVE-2018-20021?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| High 7.8 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:C | 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-20021 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 3.42% probability of exploitation activity in the next 30 days, percentile 89.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-835 Loop with Unreachable Exit Condition
Where are the vendor advisories and references?
- DSA-4383 vendor-advisory, x_refsource_DEBIAN
- [debian-lts-announce] 20181227 [SECURITY] [DLA 1617-1] libvncserver security update mailing-list, x_refsource_MLIST
- https://ics-cert.kaspersky.com/advisories/klcert-advisories/2018/12/19/klcert-18-031-libvnc-infinite-loop/ x_refsource_MISC
- USN-3877-1 vendor-advisory, x_refsource_UBUNTU
- GLSA-201908-05 vendor-advisory, x_refsource_GENTOO
- [debian-lts-announce] 20191030 [SECURITY] [DLA 1979-1] italc security update mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20191129 [SECURITY] [DLA 2016-1] ssvnc security update mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20191221 [SECURITY] [DLA 2045-1] tightvnc security update mailing-list, x_refsource_MLIST
- GLSA-202006-06 vendor-advisory, x_refsource_GENTOO
- USN-4547-1 vendor-advisory, x_refsource_UBUNTU
- USN-4547-2 vendor-advisory, x_refsource_UBUNTU
- USN-4587-1 vendor-advisory, x_refsource_UBUNTU
When was it published, and where is the official record?
- Reserved
- December 10, 2018
- Published
- December 19, 2018, 16:00 UTC
- CVE record updated
- August 5, 2024, 11:51 UTC by Kaspersky
- 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:26 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect LibVNC?
- Dec 19, 2018CVE-2018-20024 LibVNC: NULL pointer dereference (crash)
- Dec 19, 2018CVE-2018-20023 LibVNC: improper initialization
- Dec 19, 2018CVE-2018-20022 LibVNC: improper initialization
- Dec 19, 2018CVE-2018-20020 LibVNC: out-of-bounds write (memory corruption)
- Dec 19, 2018CVE-2018-20019 LibVNC: out-of-bounds write (memory corruption)
- Dec 19, 2018CVE-2018-15127 LibVNC: out-of-bounds write (memory corruption)
- Dec 19, 2018CVE-2018-15126 LibVNC: use after free
- Dec 19, 2018CVE-2018-6307 LibVNC: use after free
Questions about CVE-2018-20021
Is CVE-2018-20021 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 3.42% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of LibVNC are affected by CVE-2018-20021?
LibVNC commit c3115350eb8bb635d0fdb4dbbb0d0541f38ed19c, per the CVE record by Kaspersky. The tables above give every range the sources list.
Which version fixes CVE-2018-20021?
0.9.12, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-20021?
High (7.5, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-20021?
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.