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

Windows FTP Service Remote Code Execution Vulnerability (CVE-2026-49172)

A heap-based buffer overflow exists in the Windows FTP Service when it processes and logs oversized FTP commands. An unauthenticated attacker could send crafted commands over the network to corrupt memory, potentially causing a crash or enabling code execution.

Linzishan Follow

Originally disclosed on Microsoft

High 9.8 View original

Description

Heap-based buffer overflow in Windows FTP Service allows an unauthorized attacker to execute code over a network.

FAQ

How could an attacker exploit this vulnerability? An attacker could exploit this vulnerability by sending specially crafted FTP commands that exceed the expected length to a vulnerable FTP service. When the service processes and logs these oversized commands, it may write beyond the bounds of allocated memory, causing memory corruption that could lead to a service crash or allow code execution.

Windows FTP Service

Windows FTP Service

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Linzishan & Anemone& Zhiniang Peng (HUST). 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 the service does not properly check the length of incoming FTP commands before copying them into a fixed-size heap buffer used for logging.

Impact

An attacker could crash the FTP service or potentially execute arbitrary code on the affected system.

What the attacker needed

Network access to the FTP service; no authentication required

The fix

Microsoft should add proper bounds checking when handling and logging FTP commands, and customers should apply the vendor update.

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.

The Windows FTP Service is a program that lets people transfer files to and from a Windows computer over a network. A buffer overflow happens when a program accepts more data than it reserved space for, so the extra data spills into nearby memory and can break the program or let an attacker run their own code. Here, sending an unusually long FTP command could trigger that spill.

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.