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.42% 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
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
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-7822A vulnerability was identified in itsourcecode Courier Manag…6.3
- CVE-2026-7823A security flaw has been discovered in Totolink A8000RU 7.1c…9.8
- CVE-2026-7824An issue was discovered in the PaperCut Hive Ricoh embedded …5.9
- CVE-2026-7828UltraVNC repeater through 1.8.2.2 contains an integer overfl…5.3
- CVE-2026-7829UltraVNC repeater through 1.8.2.2 contains a post-authentica…7.2
- CVE-2026-7830UltraVNC through 1.8.2.2 uses inadequate cryptography in the…7.4
- CVE-2026-7832A security flaw has been discovered in IObit Advanced System…7
- CVE-2026-7833A weakness has been identified in EFM ipTIME C200 up to 1.09…7.3
- CVE-2026-7834A security vulnerability has been detected in EFM ipTIME NAS…9.8
- CVE-2026-7835A format string argument mismatch in Netatalk 3.0.3 through …3.1
- CVE-2026-7836An incorrect calculation in the hextoint macro in Netatalk 2…3.1
- CVE-2026-7837A time-of-check time-of-use (TOCTOU) condition in the ad_flu…3.7
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
