CVE-2018-20750
Description
LibVNC through 0.9.12 contains a heap out-of-bounds write vulnerability in libvncserver/rfbserver.c. The fix for CVE-2018-15127 was incomplete.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
CVE-2018-20750 is a heap out-of-bounds write in LibVNC's rfbProcessFileTransferReadBuffer() due to an incomplete fix for CVE-2018-15127, allowing remote attackers to crash or potentially execute code.
Vulnerability
CVE-2018-20750 is a heap out-of-bounds write vulnerability located in libvncserver/rfbserver.c of LibVNC through version 0.9.12. The bug exists in the function rfbProcessFileTransferReadBuffer(), which is invoked during file transfer operations. The issue arises because the previous fix for CVE-2018-15127 was incomplete; the code failed to properly validate the length parameter, allowing a value larger than INT_MAX to be used in subsequent operations, leading to an out-of-bounds write on the heap [1][2][3].
Exploitation
An attacker can exploit this vulnerability by sending a crafted file transfer request with an overly large length field. The attack requires network access as a VNC client to a LibVNC server that supports file transfers. No authentication is needed if the server allows unauthenticated connections. The attacker triggers the vulnerable code path by initiating a file transfer and setting the length to a value exceeding INT_MAX (0x7FFFFFFF). This causes rfbProcessFileTransferReadBuffer() to allocate insufficient memory and then write data beyond the allocated buffer [2][3].
Impact
Successful exploitation results in a heap out-of-bounds write, which can lead to a denial of service (crash) or potentially arbitrary code execution under the privileges of the VNC server process. The attacker may gain the ability to corrupt heap metadata or overwrite critical data structures, compromising the integrity and availability of the server [1][2].
Mitigation
The fix was implemented in commit 09e8fc02f59f16e2583b34fe1a270c238bd9ffec in the LibVNC repository, which adds a check that length is not greater than INT_MAX in addition to the pre-existing SIZE_MAX check [2]. Users should upgrade to a version containing this commit (later than 0.9.12) or apply the patch manually. As a workaround, disabling file transfer support on VNC servers can mitigate the attack surface until patching is possible [3].
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
23LibVNCServer-0.9.10, LibVNCServer-0.9.11, LibVNCServer-0.9.12, …+ 1 more
- (no CPE)range: LibVNCServer-0.9.10, LibVNCServer-0.9.11, LibVNCServer-0.9.12, …
- (no CPE)range: <=0.9.12
- osv-coords21 versionspkg:rpm/opensuse/LibVNCServer&distro=openSUSE%20Leap%2015.0pkg:rpm/suse/LibVNCServer&distro=SUSE%20Enterprise%20Storage%204pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSSpkg: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%20SP3pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSSpkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg: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%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP4pkg:rpm/suse/LibVNCServer&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015pkg:rpm/suse/LibVNCServer&distro=SUSE%20OpenStack%20Cloud%207
< 0.9.10-lp150.3.6.1+ 20 more
- (no CPE)range: < 0.9.10-lp150.3.6.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.10-4.6.1
- (no CPE)range: < 0.9.1-160.9.1
- (no CPE)range: < 0.9.1-160.9.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.1-160.9.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.1-160.9.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.9-17.11.1
- (no CPE)range: < 0.9.10-4.6.1
- (no CPE)range: < 0.9.9-17.11.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
10- usn.ubuntu.com/3877-1/mitrevendor-advisoryx_refsource_UBUNTU
- usn.ubuntu.com/4547-1/mitrevendor-advisoryx_refsource_UBUNTU
- usn.ubuntu.com/4587-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.securityfocus.com/bid/106825mitrevdb-entryx_refsource_BID
- cert-portal.siemens.com/productcert/pdf/ssa-390195.pdfmitrex_refsource_CONFIRM
- github.com/LibVNC/libvncserver/commit/09e8fc02f59f16e2583b34fe1a270c238bd9ffecmitrex_refsource_MISC
- github.com/LibVNC/libvncserver/issues/273mitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2019/01/msg00029.htmlmitremailing-listx_refsource_MLIST
- lists.debian.org/debian-lts-announce/2019/10/msg00042.htmlmitremailing-listx_refsource_MLIST
- www.openwall.com/lists/oss-security/2018/12/10/8mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.