---
id: CVE-2026-103572
title: >-
  Improper control of generation of code ('code injection') in Visual Studio
  Tools for Applications and SQL Server Management Studio allows an unauthorized
  attacker to execute code over a network.
summary: >-
  Improper control of generation of code ('code injection') in Visual Studio
  Tools for Applications and SQL Server Management Studio allows an unauthorized
  attacker to execute code over a network.
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
published: '2026-10-13'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T22:17:25.633'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103572'
references:
  - url: 'https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-103572'
    label: secure@microsoft.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-13T19:43:28.903Z'
vendor: Microsoft
product: Microsoft Visual Studio 2022 version 17.14
affected:
  - visual_studio_2022_version_17.14 >= 17.14.0 < 17.14.42
  - visual_studio_2026_version_18.10 >= 18.10.0 < 18.10.4
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-13T21:13:16.613335Z'
epss: 0.00994
epssPercentile: 0.6245
---

## Overview

Improper control of generation of code ('code injection') in Visual Studio Tools for Applications and SQL Server Management Studio allows an unauthorized attacker to execute code over a network.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
