CVE-2019-20839
Description
libvncclient/sockets.c in LibVNCServer before 0.9.13 has a buffer overflow via a long socket filename.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In LibVNCServer before 0.9.13, a buffer overflow in ConnectClientToUnixSock allows attacks via a long socket filename.
Vulnerability
A buffer overflow vulnerability exists in libvncclient/sockets.c in LibVNCServer versions prior to 0.9.13. The function ConnectClientToUnixSock copies a socket filename into a fixed-size buffer (struct sockaddr_un.sun_path) using strcpy without length checking, leading to a stack-based buffer overflow when the filename exceeds the buffer size (typically 108 bytes). [1] [4]
Exploitation
An attacker can exploit this by providing an overly long socket filename to the VNC client, e.g., when connecting to a malicious VNC server that returns a crafted socket address. No authentication is required, but the attacker must control the socket filename passed to the vulnerable function. [1] [4]
Impact
Successful exploitation results in a buffer overflow, potentially causing a crash or arbitrary code execution in the context of the VNC client process. The impact is limited to denial of service or remote code execution depending on exploitability. [1] [4]
Mitigation
The vulnerability is fixed in LibVNCServer version 0.9.13, released in 2020. The fix adds a bounds check that rejects filenames longer than sizeof(addr.sun_path) (commit 3fd0397). Users should upgrade to 0.9.13 or later. No workaround is available. [1] [4]
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
28- LibVNCServer/LibVNCServerdescription
- Range: <=0.9.12
- osv-coords26 versionspkg:rpm/almalinux/libvncserverpkg:rpm/almalinux/libvncserver-develpkg:rpm/opensuse/LibVNCServer&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/LibVNCServer&distro=openSUSE%20Leap%2015.2pkg:rpm/suse/LibVNCServer&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/LibVNCServer&distro=SUSE%20Enterprise%20Storage%205pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP1pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP2pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP1pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP2pkg:rpm/suse/LibVNCServer&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/LibVNCServer&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/LibVNCServer&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/LibVNCServer&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/LibVNCServer&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 0.9.11-17.el8+ 25 more
- (no CPE)range: < 0.9.11-17.el8
- (no CPE)range: < 0.9.11-17.el8
- (no CPE)range: < 0.9.10-lp151.7.9.1
- (no CPE)range: < 0.9.10-lp152.9.8.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.10-4.22.1
- (no CPE)range: < 0.9.10-4.22.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.10-4.22.1
- (no CPE)range: < 0.9.10-4.22.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
- (no CPE)range: < 0.9.9-17.31.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
11- lists.opensuse.org/opensuse-security-announce/2020-07/msg00033.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2020-07/msg00055.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2020-07/msg00066.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4F6FUH4EFK4NAP6GT4TQRTBKWIRCZLIY/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NVP7TJVYJDXDFRHVQ3ENEN3H354QPXEZ/mitrevendor-advisoryx_refsource_FEDORA
- usn.ubuntu.com/4434-1/mitrevendor-advisoryx_refsource_UBUNTU
- cert-portal.siemens.com/productcert/pdf/ssa-390195.pdfmitrex_refsource_CONFIRM
- github.com/LibVNC/libvncserver/commit/3fd03977c9b35800d73a865f167338cb4d05b0c1mitrex_refsource_MISC
- github.com/LibVNC/libvncserver/compare/LibVNCServer-0.9.12...LibVNCServer-0.9.13mitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2020/06/msg00035.htmlmitremailing-listx_refsource_MLIST
- lists.debian.org/debian-lts-announce/2020/08/msg00045.htmlmitremailing-listx_refsource_MLIST
News mentions
0No linked articles in our index yet.