Advisory Details

June 10th, 2025

Microsoft Visual Studio initializeCommand Insufficient UI Warning Remote Code Execution Vulnerability

ZDI-25-359
ZDI-CAN-26586

CVE ID CVE-2025-47959
CVSS SCORE 7.8, AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AFFECTED VENDORS Microsoft
AFFECTED PRODUCTS Visual Studio
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft Visual Studio. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the handling of the devcontainer.json file. When opening an project, the user interface fails to warn the user of unsafe actions. An attacker can leverage this vulnerability to execute code in the context of the current user.

ADDITIONAL DETAILS Microsoft has issued an update to correct this vulnerability. More details can be found at:
https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-47959
DISCLOSURE TIMELINE
  • 2025-02-19 - Vulnerability reported to vendor
  • 2025-06-10 - Coordinated public release of advisory
  • 2025-06-11 - Advisory Updated
CREDIT Nitesh Surana (@_niteshsurana) & Nelson William Gamazo Sanchez of Trend Micro Research
BACK TO ADVISORIES