Critical Buffer Overflow Vulnerability in libvncserver: CVE-2016-9942

libvncserver Updated 02 Oct 2025

Summary

31/12/2016
N/A
Yes i
Critical
9.8

ALPINE-CVE-2016-9942: Heap-based buffer overflow in ultra.c in LibVNCClient in LibVNCServer before 0.9.11 allows remote servers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted FramebufferUpdat... Affects libvncserver versions < 0.9.11-r0. Fixed in 0.9.11-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libvncserver is an open-source library that enables the implementation of VNC (Virtual Network Computing) server functionality. It allows users to remotely control another computer's desktop environment. The library is widely used in various applications that require remote desktop access. However, it has been found to be vulnerable to a critical buffer overflow issue, which can lead to severe security risks if not addressed.

Vulnerability Detail

The vulnerability, identified as CVE-2016-9942, is a heap-based buffer overflow located in the ultra.c file of the LibVNCClient component of libvncserver. This flaw allows remote servers to send crafted FramebufferUpdate messages with an Ultra type tile, causing the decompressed length of the LZO payload to exceed the specified tile dimensions. This can lead to application crashes or potentially allow attackers to execute arbitrary code, posing a significant threat to system integrity and confidentiality.

How To Fix

Minimum fixed version

0.9.11-r0

This is the first release that contains the fix.

sudo apk add --upgrade libvncserver

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider implementing network-level security measures such as firewalls to restrict access to the VNC server. Additionally, monitor logs for unusual activity that may indicate exploitation attempts.

Conclusion

The CVE-2016-9942 vulnerability in libvncserver poses a significant risk due to its potential for remote code execution and application crashes. It is crucial for users to update to the latest patched versions of the library to safeguard their systems. Utilizing tools like Vulert can aid in monitoring for such vulnerabilities effectively.

See every vulnerability recorded for libvncserver →

Share this vulnerability

FAQ

CVE-2016-9942 is a critical buffer overflow vulnerability in the libvncserver library that can lead to application crashes or arbitrary code execution.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software by simply using a manifest file like package-lock.json.

The CVSS score for CVE-2016-9942 is 9.8, indicating a critical level of severity.

Exploitation of this vulnerability can lead to denial of service or unauthorized remote code execution, compromising system security.

Yes, implementing network security measures such as firewalls and monitoring for unusual activity can help mitigate risks until a patch is applied.

Related vulnerabilities

Recent vulnerabilities recorded for libvncserver.

How To Fix

Minimum fixed version

0.9.11-r0

This is the first release that contains the fix.

sudo apk add --upgrade libvncserver

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback