Skip to content
Memory corruption Advisory Advanced CVE-2026-59117

Windows Terminal Remote Code Execution Vulnerability (CVE-2026-59117)

An integer overflow or wraparound flaw exists in Windows Terminal. An attacker could run a malicious server that a client connects to, potentially gaining code execution on that client.

Dhiraj Follow

Originally disclosed on Microsoft

High 7.5 View original

Description

Integer overflow or wraparound in Windows Terminal allows an unauthorized attacker to execute code over a network.

FAQ

According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). What is the target context of the remote code execution? This attack requires a client to connect to a malicious server, and that could allow the attacker to gain code execution on the client.

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to have a deep understanding of the system. Successful exploitation is not guaranteed and depends on a combination of factors that might include the environment, system configuration, and the presence of additional security measures.

Windows Terminal

Windows Terminal

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Dhiraj Mishra (@RandomDhiraj). Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an integer overflow or wraparound when handling data from a connected server, leading to memory corruption.

Impact

An attacker could gain code execution on a client that connects to their malicious server, though exploitation is not guaranteed and depends on the environment and configuration.

What the attacker needed

Victim connects to a malicious server; attacker has deep system knowledge

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Windows Terminal is the app used to open command-line windows on Windows. An integer overflow is when a number gets too big for the space set aside for it and wraps around to a small value, which can confuse the program. Here, if a user connects their terminal to a server controlled by an attacker, that confusion could let the attacker run their own code on the user's machine.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.