CVE-2025-21178 Visual Studio Remote Code Execution Vulnerability

High 8.8 Published Updated

An attacker can execute arbitrary code by exploiting memory corruption vulnerabilities in Microsoft Visual Studio.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-21178?

CVE-2025-21178 is a high-severity memory corruption vulnerability in Microsoft Visual Studio 2017, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Visual Studio Remote Code Execution Vulnerability

Weakness: CWE-125, CWE-122

Which versions are affected by CVE-2025-21178?

It affects 3 products.

Products include Microsoft Visual Studio 2017, Microsoft Visual Studio 2019, Microsoft Visual Studio 2022.

How do I fix CVE-2025-21178?

No fix has been published for CVE-2025-21178 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-21178 being exploited?

There is no known exploitation of CVE-2025-21178 in the wild and no public exploit code.

All Microsoft Visual Studio 2017 vulnerabilities

Sources

Also known as GHSA-7qvp-9xw6-rpfp.

Is CVE-2025-21178 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free