cve.bz

CVE-2019-20839 Classic Buffer Overflow

7.5 highEPSS 3.6%Fix available

High (7.5). EPSS 3.6% estimated probability of exploitation activity in the next 30 days.

On this page
libvncclient/sockets.c in LibVNCServer before 0.9.13 has a buffer overflow via a long socket filename.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.6% (unchanged from 3.6% a week ago; 3.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
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-2019-20839 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-20839?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-20839?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-2019-20839 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
libvnc_project:libvncserverthrough 0.9.12
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
canonical:ubuntu_linux20.04
debian:debian_linux8.0
debian:debian_linux9.0
siemens:simatic_itc1500_firmwarefrom 3.0.0.0 before 3.2.1.0
siemens:simatic_itc1500_pro_firmwarefrom 3.0.0.0 before 3.2.1.0
siemens:simatic_itc1900_firmwarefrom 3.0.0.0 before 3.2.1.0
siemens:simatic_itc1900_pro_firmwarefrom 3.0.0.0 before 3.2.1.0
siemens:simatic_itc2200_firmwarefrom 3.0.0.0 before 3.2.1.0
siemens:simatic_itc2200_pro_firmwarefrom 3.0.0.0 before 3.2.1.0
opensuse:leap15.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libvncserver0.9.9+dfsg2-6.1+deb8u8DLA-2264-1
Debian9libvncserver0.9.11+dfsg-1.3~deb9u5DLA-2347-1
Debian12, 13, 14libvncserver0.9.13+dfsg-1DEBIAN-CVE-2019-20839
Ubuntu14.04:LTSx11vncno fix listedUBUNTU-CVE-2019-20839
Ubuntu16.04:LTSlibvncserver0.9.10+dfsg-3ubuntu0.16.04.5UBUNTU-CVE-2019-20839 USN-4434-1
Ubuntu18.04:LTSlibvncserver0.9.11+dfsg-1ubuntu1.3UBUNTU-CVE-2019-20839 USN-4434-1
Ubuntu20.04:LTSlibvncserver0.9.12+dfsg-9ubuntu0.2UBUNTU-CVE-2019-20839 USN-4434-1
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 moreveyonno fix listedUBUNTU-CVE-2019-20839
Red Hatenterprise_linux:8::appstreamlibvncserver, libvncserver-debuginfo, libvncserver-debugsource0:0.9.11-17.el8RHSA-2021:1811
Red Hatenterprise_linux:8::crblibvncserver-devel, libvncserver-debuginfo, libvncserver-debugsource0:0.9.11-17.el8RHSA-2021:1811
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 15 moreLibVNCServer0.9.9-17.31.1SUSE-SU-2020:2167-1
SUSELinux Enterprise Module for Package Hub 15 SP1, Linux Enterprise Module for Package Hub 15 SP2, Linux Enterprise Workstation Extension 15 SP1 and 1 moreLibVNCServer0.9.10-4.22.1SUSE-SU-2020:1922-1
openSUSELeap 15.1LibVNCServer0.9.10-lp151.7.9.1openSUSE-SU-2020:0988-1
openSUSELeap 15.2LibVNCServer0.9.10-lp152.9.4.2openSUSE-SU-2020:1056-1
openSUSELeap 15.2LibVNCServer0.9.10-lp152.9.8.1openSUSE-SU-2020:1025-1
AlmaLinux8libvncserver, libvncserver-devel0.9.11-17.el8ALSA-2021:1811
Rocky Linux8libvncserver0:0.9.11-17.el8RLSA-2021:1811
Alpinev3.12, v3.13, v3.14 and 10 morelibvncserver0.9.13-r0ALPINE-CVE-2019-20839

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This is only an issue if the "ConnectClientToUnixSock()" function is used directly with an overly long socket name. It's more common that the "ConnectToRFBServer()" function is used, which would prevent exploiting this flaw as it performs additional checks. Additionally, the buffer overflow is caught by compiled-in buffer overflow checks, limiting the impact to a crash.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libvncserver-0:0.9.11-17.el8Fixed 2021-05-18RHSA-2021:1811
Red Hat Enterprise Linux 6libvncserverNot affected
Red Hat Enterprise Linux 7libvncserverWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-20839.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-21-350-12Siemens SIMATIC ITC2021-12-14MultipleSIMATIC ITC1500 V3, SIMATIC ITC1500 V3 PRO, SIMATIC ITC1900 V3 and 3 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

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-120 (13).

References

Check your stackJSON