VYPR
Unrated severityNVD Advisory· Published Jun 17, 2020· Updated Aug 5, 2024

CVE-2018-21247

CVE-2018-21247

Description

An issue was discovered in LibVNCServer before 0.9.13. There is an information leak (of uninitialized memory contents) in the libvncclient/rfbproto.c ConnectToRFBRepeater function.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

LibVNCServer before 0.9.13 leaks uninitialized memory contents via the ConnectToRFBRepeater function in libvncclient/rfbproto.c.

Vulnerability

An information disclosure vulnerability exists in LibVNCServer versions prior to 0.9.13. The issue resides in the ConnectToRFBRepeater function in libvncclient/rfbproto.c and also appears in the example file examples/repeater.c [1][4]. The function uses snprintf to fill a stack buffer tmphost, then sends the entire buffer sizeof(tmphost) via WriteToRFBServer, including uninitialized memory beyond the formatted string [4]. This exposes heap or stack contents from the client application.

Exploitation

An attacker can exploit this by controlling a repeater server that triggers the vulnerable code path in a connecting VNC client. No authentication is required; the attacker only needs to act as the repeater endpoint. The client's ConnectToRFBRepeater call will send the oversized buffer, leaking uninitialized memory to the network [4]. The leaked data may contain sensitive information from the client process's memory.

Impact

Successful exploitation leads to information disclosure of uninitialized memory contents from the VNC client application. This could expose credentials, session keys, or other secrets present in the process address space at the time of the connection. The vulnerability does not directly allow code execution or privilege escalation, but the leaked data can be used for further attacks.

Mitigation

The fix was released in LibVNCServer version 0.9.13 [1]. Users should upgrade to this version or later. No known workaround is available for earlier versions. The vulnerability was reported by Pavel Cheremushkin of Kaspersky Lab ICS CERT [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

27

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

8

News mentions

0

No linked articles in our index yet.