CVE-2026-7831
Last modified
CVE-2026-7831 is a high-severity vulnerability rated 7.6/10 on the CVSS scale. UltraVNC viewer through 1.8.2.2 contains an off-by-one stack buffer overflow in the RFB ServerInit message handler. In vncviewer/ClientConnection.cpp, when the server-supplied nameLength equals exactly 2024 the code declares a 2024-byte stack buffer _dn[2024] and calls ReadString(_dn, 2024). EPSS estimates a 0.74% chance of exploitation in the next 30 days.
Description
UltraVNC viewer through 1.8.2.2 contains an off-by-one stack buffer overflow in the RFB ServerInit message handler. In vncviewer/ClientConnection.cpp, when the server-supplied nameLength equals exactly 2024 the code declares a 2024-byte stack buffer _dn[2024] and calls ReadString(_dn, 2024). ReadString writes the NUL terminator at buf[length], i.e., _dn[2024], one byte past the end of the stack buffer. A malicious VNC server can trigger this condition by advertising a desktop name of length 2024 in its ServerInit message. On release builds without stack canaries the single-byte NUL overwrite adjacent stack data. On builds with /GS stack protection the canary is corrupted and the process terminates, resulting in denial of service. User interaction (connecting the viewer to the malicious server) is required.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Uvnc | Ultravnc | <= 1.8.2.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-7831?
How severe is CVE-2026-7831?
How do I fix CVE-2026-7831?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-78302Joomla Extension - joomshaper.com - Unauthenticated Stored C…8.6
- CVE-2026-78303Joomla Extension - joomshaper.com - Unvalidated Email Destin…6.9
- CVE-2026-78304Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-78306DJI drones expose an unauthenticated DUML command interface …8.5
- CVE-2026-78308Improper Authentication vulnerability in DIAEnergie allows A…9.8
- CVE-2026-78309SQL Injection vulnerability in DIAEnergie. This issue affec…8.8
- CVE-2026-78310Authorization Bypass Through User-Controlled Key in DIAEnerg…4.3
- CVE-2026-78311SQL Injection vulnerability in DIAEnergie. This issue affec…8.8
- CVE-2026-78312Path Traversal in DIAEnergie. This issue affects DIAEnergie…9.1
- CVE-2026-78313Improper Access Control in DIAEnergie. This issue affects D…6.5
- CVE-2026-78314SQL Injection in Delta DIAEnergie v1.11.00.002 allows attack…8.8
- CVE-2026-78315SQL Injection in Delta DIAEnergie v1.11.00.002 allows attack…8.8
Are you affected by CVE-2026-7831?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
