Heap-based buffer overflow in Visual Studio - CVE-2025-21178

 

Heap-based buffer overflow in Visual Studio - CVE-2025-21178

Published: January 15, 2025


Vulnerability identifier: #VU102785
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-21178
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Visual Studio. A remote attacker can trick a victim to open a specially crafted file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Visual Studio

How to mitigate CVE-2025-21178

Install updates from vendor's website.

Visual Studio - addressed in versions 14.0.24252.2 14.0.24252.2, 15.9.69 15.9.69, 16.11.43 16.11.35706.149, 17.6.22 17.6.35707.66, 17.8.17 17.8.35707.121, 17.10.10 17.10.35707.196, 17.12.4 17.12.35707.178

External References

Related Security Bulletins