Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessNetwork scan for VNC port 5900
-
DeliveryInitiate VNC handshake
-
ExploitSend crafted RSA-AES security type message
-
ExecutionOverflow stack buffer with oversized RSA key
-
PersistOverwrite return address on stack
-
ImpactExecute arbitrary code as VNC server process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target VNC server to be running Neat VNC library version <0.9.6 with RSA-AES security types (type 5 or 129) enabled. The attacker must have network access to the VNC listening socket, typically TCP port 5900 or custom ports depending on deployment. No authentication is required - the vulnerability exists in the pre-authentication handshake phase before credentials are validated. No user interaction is needed (UI:N in CVSS vector). Exploitation succeeds against default configurations of Neat VNC if RSA-AES security types are enabled, which is a common deployment for encrypted VNC sessions. Limiting factors: The vulnerability is specific to Neat VNC library integrations and does not affect other VNC server implementations. Deployments that use different security types (e.g., VeNCrypt, standard VNC authentication) or disable RSA-AES types are not exploitable through this vector. Network firewalls or access controls that restrict VNC port access to trusted sources prevent remote exploitation from untrusted networks. |
| Impact | High real-world risk despite the vulnerability being fixed rapidly. CVSS 8.1 reflects the severe combination of unauthenticated network exposure (AV:N/PR:N), low attack complexity (AC:L), and high confidentiality/integrity/availability impact. The pre-authentication nature is critical - exploitation occurs before any credentials are required, making every exposed Neat VNC server instance vulnerable. Stack buffer overflows can lead to arbitrary code execution if an attacker crafts the overflow payload carefully, though the CVE description conservatively states 'at least denial of service via server crash.' The CVSS 4.0 vector shows Exploit Maturity as Unreported (E:U), but the GitHub commit diff reveals the vulnerability is trivial to exploit - an attacker simply needs to send a VNC handshake with a public key exceeding 1024 bytes. No EPSS or KEV data provided, but the low exploitation barrier and pre-auth nature make this a priority patch for any deployment exposing VNC services to untrusted networks. The fixed stack buffer size (1024 bytes) and straightforward overflow mechanism mean exploit development is trivial for any attacker with VNC protocol knowledge. Mitigating factor: Neat VNC is a library, so impact depends on how integrating applications expose the VNC service - internet-facing deployments carry maximum risk, while internal-only or firewalled instances have reduced exposure. |
| Exploit ScenarioDerived | An attacker scans for VNC services on port 5900 and identifies a server using Neat VNC <0.9.6. During the VNC handshake, when the server offers RSA-AES security type, the attacker sends a crafted security type 5 handshake message containing a maliciously oversized RSA public key (e.g., 2048 bytes instead of the expected 256-384 bytes). The server's rsa_aes_send_challenge function attempts to encrypt its challenge using this key, writing encrypted data into the fixed 1024-byte stack buffer and overflowing into adjacent stack memory. By carefully controlling the overflow content, the attacker can overwrite return addresses or function pointers to redirect execution to attacker-controlled code, achieving remote code execution with the privileges of the VNC server process. Alternatively, a simple overflow crashes the server, causing denial of service. Publicly available exploit code exists (based on the trivial nature revealed in the patch diff), making exploitation accessible to low-skill attackers. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Remote code execution and denial of service in Neat VNC library version <0.9.6 allows unauthenticated network attackers to overflow a 1024-byte stack buffer during RSA-AES security handshake. An attacker sends a crafted VNC security type 5 or 129 message with an oversized client RSA public key, triggering a stack buffer overflow in rsa_aes_send_challenge() when the server encrypts its challenge response. CVSS 8.1 (High) with network attack vector, low complexity, and no authentication required. No public exploit identified at time of analysis, though the vulnerability is trivial to trigger based on the patch diff showing a simple size validation check addition.
RemediationAI
Upgrade Neat VNC library to version 0.9.6 or later, which includes the fix committed in GitHub commit 1f6cd6b75cc167fed3a19a9d1552a1f662f6b337. The patch validates client RSA public key size against a 1MB maximum before processing and replaces the fixed 1024-byte stack buffer with dynamic heap allocation sized to the actual key length. Until patching, restrict VNC listening sockets to trusted networks only using firewall rules or network segmentation - do NOT expose VNC services directly to the internet. If RSA-AES security types are not required, disable security types 5 and 129 in the VNC server configuration to prevent exploitation while retaining other authentication methods, though this reduces encryption strength. Network restrictions are the only effective compensating control, as the vulnerability exists in pre-authentication handshake code that executes before any access controls apply. Review deployment configurations to identify which applications integrate Neat VNC library and prioritize patching internet-facing or high-value internal services.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Neat VNC is a VNC server library implementing the RFB (Remote Framebuffer) protocol. The vulnerability affects the RSA-AES and RSA-AES-256 security types (RFB security types 5 and 129), which provide encrypted authentication. During the VNC handshake, the client sends its RSA public key to the server. The vulnerable code in src/auth/rsa-aes.c allocated a fixed 1024-byte stack buffer to hold the RFB challenge message structure, then called crypto_rsa_encrypt() to encrypt the server's random challenge using the client-provided RSA public key. Because the code did not validate the size of the client's public key before encryption, an attacker could send a key exceeding 1024 bytes, causing crypto_rsa_encrypt() to write beyond the stack buffer boundary. This is a classic stack buffer overflow (CWE-120) in pre-authentication code. The patch introduces a MAX_PUB_KEY_SIZE constant (1,000,000 bytes) and validates the client key length before processing, plus replaces the fixed stack buffer with dynamically allocated memory sized to the actual key length.
Know when Neatvnc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
Neat VNC is a VNC server library. Prior to 0.9.6, a pre-authentication stack buffer overflow exists in neatvnc in the RSA-AES security type handler. An unauthenticated remote attacker who can reach the VNC listening socket can send a crafted security type 5 (RSA-AES) or security type 129 (RSA-AES-256) handshake with an oversized client RSA public key, causing rsa_aes_send_challenge in src/auth/rsa-aes.c to overflow a 1024-byte on-stack buffer when encrypting the server challenge. This results in at least a denial of service via server crash. This vulnerability is fixed in 0.9.6.
Executive ViewAI
Neat VNC library versions prior to 0.9.6 contain a critical remote code execution vulnerability affecting any VNC server implementation using this library. Unauthenticated attackers can trigger a stack buffer overflow during the initial VNC handshake, potentially gaining complete control of affected VNC servers or causing service disruption. Organizations running VNC services should immediately inventory deployments and plan urgent remediation, as the attack requires no credentials and can be executed from the network.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict VNC server access via firewall to authorized administrative IP ranges only; disable VNC security type 5 and 129 if configuration allows and alternative authentication methods exist; isolate affected VNC servers to segregated networks until patches are available; monitor VNC service logs for connection attempts with oversized RSA key exchanges.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-29167
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB