Description
Improper control of generation of code ('code injection') in .NET Framework allows an unauthorized attacker to elevate privileges locally.
Published: 2026-07-14
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Improper control of code generation, also known as code injection, allows a local attacker who can supply a crafted assembly or script to the .NET runtime to execute arbitrary code under the privileges of the host process. This vulnerability is represented by CWE‑94. If exploited, the attacker can gain administrative rights or other elevated privileges, potentially compromising confidentiality, integrity, or availability on the compromised host.

Affected Systems

Microsoft .NET Framework versions 3.5 through 4.8.1, Microsoft .NET 8.0 and 9.0, and Microsoft Visual Studio 2022 versions 17.12, 17.14, and 18.7 (Visual Studio 2026).

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity flaw that can be leveraged locally. With an EPSS score of less than 1%, the likelihood of widespread exploitation is currently low, and the vulnerability is not listed in the CISA KEV catalog. An attacker must have local or process‑level access to supply the malicious assembly or invoke dynamic code generation. Upon success, injected code runs with the same privileges as the affected process, enabling the attacker to elevate privileges to system level without additional network or remote conditions.

Generated by OpenCVE AI on July 31, 2026 at 05:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install the Microsoft security update for all affected .NET Framework and .NET runtime versions, following the update guide for CVE‑2026‑50650.
  • Upgrade Visual Studio 2022 to version 17.14 or newer and Visual Studio 2026 to the latest release to incorporate patched runtime components.
  • Review application code for dynamic code generation using System.CodeDom.Compiler, System.Reflection.Emit, or DynamicMethods; replace or remove such usage, or enforce execution of only signed assemblies.

Generated by OpenCVE AI on July 31, 2026 at 05:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2969-4q4w-w5h3 Microsoft Security Advisory CVE-2026-50650 – .NET Elevation of Privilege Vulnerability
History

Sat, 18 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

threat_severity

Important


Wed, 15 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description Improper control of generation of code ('code injection') in .NET Framework allows an unauthorized attacker to elevate privileges locally.
Title .NET Framework Elevation of Privilege Vulnerability
First Time appeared Microsoft
Microsoft .net
Microsoft visual Studio 2022
Microsoft visual Studio 2026
Weaknesses CWE-94
CPEs cpe:2.3:a:microsoft:.net:*:*:*:*:*:*:*:*
cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:*
cpe:2.3:a:microsoft:visual_studio_2026:*:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft .net
Microsoft visual Studio 2022
Microsoft visual Studio 2026
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C'}


Subscriptions

Microsoft .net Visual Studio 2022 Visual Studio 2026
Redhat Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: microsoft

Published:

Updated: 2026-08-03T22:56:27.691Z

Reserved: 2026-06-05T14:33:50.830Z

Link: CVE-2026-50650

cve-icon Vulnrichment

Updated: 2026-07-15T11:01:08.487Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-14T19:29:58Z

Links: CVE-2026-50650 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T05:30:07Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')