CVE-2026-42859

HIGH LAB

Neat VNC: Buffer overflow due to oversized RSA public keys

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-42859. PoCs published by exploitintel.

AI-analyzed exploit summary The repository contains a functional exploit PoC for CVE-2026-42859, a stack-based buffer overflow in neatvnc's RSA-AES authentication. The PoC demonstrates control-flow hijack by overflowing a 1024-byte stack buffer with attacker-controlled RSA key sizes, leading to RIP overwrite when stack canaries are disabled.

Description

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.

Exploits (1)

github WORKING POC 3 stars
by exploitintel · cpoc
https://github.com/exploitintel/eip-pocs-and-cves/tree/main/CVE-2026-42859

The repository contains a functional exploit PoC for CVE-2026-42859, a stack-based buffer overflow in neatvnc's RSA-AES authentication. The PoC demonstrates control-flow hijack by overflowing a 1024-byte stack buffer with attacker-controlled RSA key sizes, leading to RIP overwrite when stack canaries are disabled.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: neatvnc < 0.9.6
No auth needed
Prerequisites: neatvnc v0.9.5 with stack canaries disabled · network access to target port 5900
devstral-2 · analyzed May 13, 2026 Full analysis →

Scores

CVSS v4 8.1
EPSS 0.0055
EPSS Percentile 41.9%
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Lab Environment

EIP LAB
Docker Lab
vulnerable docker pull ghcr.io/exploitintel/cve-2026-42859-vulnerable:latest

Details

CWE
CWE-120
Status published
Products (1)
any1/neatvnc < 0.9.6
Published May 11, 2026
Tracked Since May 11, 2026