← Search CVEs

CVE-2021-24112

HIGH 8.1 ALL-YEARS

Published 2021-02-25 · Last modified 2026-10-07 · microsoft · NVD: Modified

.NET Core Remote Code Execution Vulnerability

ELEVATED IMPACT

Severe if exploited (CVSS 8.1); current sources show no confirmed exploitation. Consider exposure and affected versions when prioritizing remediation.

Exploitation likelihood

3.5%chance of exploitation in 30 days · 89th percentile

○ In CISA KEV○ Catalogued PoC◆ SSVC: exploitation none, automatable yes

Impact if exploited

8.1CVSS 3.1 · HIGH · CNA

  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh

What an attacker needs

  • ✓Access: Reachable over the network — no local access needed
  • ✓Privileges: No account or privileges required
  • ✓User interaction: No user interaction needed
  • ⚠Complexity: Needs a race window or specific setup

✓ lowers the bar for an attacker · ⚠ raises it

Proof of concept

No public PoC is currently catalogued.

Search for new PoCs

Search GitHub now — results may be empty or unverified.

Supported CVE and PoC feeds are scheduled every 30 minutes, including for older CVEs. Other enrichment runs daily or weekly; source availability can delay updates. A later release appears after a tracked source lists it and a refresh succeeds.

Affected

Vendors Microsoft

Products Visual Studio 2019 for Mac Mono 6.12.0 .NET Core 2.1 .NET Core 3.1 .NET 5.0 .Net .Net Core Mono Visual Studio 2019

Weakness (CWE)

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

CVSS 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

References and research data (JSON) · Change history

Packages and version ranges

Each advisory describes its own package and affected ranges. A boundary applies to that range; it is not a universal upgrade recommendation.

  • System.Drawing.Common NuGet

    pkg:nuget/System.Drawing.Common

    ECOSYSTEM range
    • Introduced version (included): 4.0.0
    • Fixed boundary (excluded): 4.7.2
    14 explicitly listed affected versions

    4.0.0, 4.5.0, 4.5.0-preview1-25718-03, 4.5.0-preview1-25914-04, 4.5.0-preview1-26216-02, 4.5.0-preview2-26406-04, 4.5.0-rc1, 4.5.1, 4.5.2, 4.6.0, 4.6.1, 4.6.2, 4.7.0, 4.7.1

    Additional upstream package constraints
    {
      "database": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-rxg9-xrhp-64gj/GHSA-rxg9-xrhp-64gj.json"
      }
    }
    GitHub Advisory Database · GHSA-rxg9-xrhp-64gj · Updated 2024-11-29T05:26:26.867037Z
  • System.Drawing.Common NuGet

    pkg:nuget/System.Drawing.Common

    ECOSYSTEM range
    • Introduced version (included): 5.0.0
    • Fixed boundary (excluded): 5.0.3
    3 explicitly listed affected versions

    5.0.0, 5.0.1, 5.0.2

    Additional upstream package constraints
    {
      "database": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-rxg9-xrhp-64gj/GHSA-rxg9-xrhp-64gj.json"
      }
    }
    GitHub Advisory Database · GHSA-rxg9-xrhp-64gj · Updated 2024-11-29T05:26:26.867037Z

Vendor product assessments

Showing 32 of 35 vendor product statements; 3 omitted. Read the full vendor advisory.

  • rh-dotnet21 as a component of .NET Core 2.1 on Red Hat Enterprise Linux · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/rh-dotnet21

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • rh-dotnet21-runtime as a component of .NET Core 2.1 on Red Hat Enterprise Linux · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/rh-dotnet21-runtime

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • rh-dotnet21.src as a component of .NET Core 2.1 on Red Hat Enterprise Linux · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/rh-dotnet21?arch=src

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • rh-dotnet31-runtime as a component of .NET Core 3.1 on Red Hat Enterprise Linux · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/rh-dotnet31-runtime

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • rh-dotnet31.src as a component of .NET Core 3.1 on Red Hat Enterprise Linux · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/rh-dotnet31?arch=src

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • rh-dotnet50-runtime as a component of .NET Core 5.0 on Red Hat Enterprise Linux · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/rh-dotnet50-runtime

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • aspnetcore-runtime-3.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/aspnetcore-runtime-3.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • aspnetcore-runtime-5.0 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/aspnetcore-runtime-5.0

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • aspnetcore-targeting-pack-3.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/aspnetcore-targeting-pack-3.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • aspnetcore-targeting-pack-5.0 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/aspnetcore-targeting-pack-5.0

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-apphost-pack-3.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-apphost-pack-3.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-apphost-pack-5.0 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-apphost-pack-5.0

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-host as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-host

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-host-fxr-2.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-host-fxr-2.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-hostfxr-3.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-hostfxr-3.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-runtime-2.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-runtime-2.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-runtime-3.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-runtime-3.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-runtime-5.0 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-runtime-5.0

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-sdk-2.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-sdk-2.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-sdk-2.1.5xx as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-sdk-2.1.5xx

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-sdk-3.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-sdk-3.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-sdk-3.1-source-built-artifacts as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-sdk-3.1-source-built-artifacts

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-sdk-5.0 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-sdk-5.0

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-sdk-5.0-source-built-artifacts as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-sdk-5.0-source-built-artifacts

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-targeting-pack-3.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-targeting-pack-3.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-templates-3.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-templates-3.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet-templates-5.0 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet-templates-5.0

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet.src as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet?arch=src

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet3.1.src as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet3.1?arch=src

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • dotnet5.0.src as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/dotnet5.0?arch=src

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
  • netstandard-targeting-pack-2.1 as a component of Red Hat Enterprise Linux 8 · known not affected

    Vendor assessment for this product only.

    Reason: vulnerable code not present

    pkg:rpm/redhat/netstandard-targeting-pack-2.1

    Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00

Known Affected Software Configurations

VendorProductVersion range
Microsoft.Net≥ 5.0 and ≤ 5.0.2
Microsoft.Net Core≥ 2.1 and ≤ 2.1.24
Microsoft.Net Core≥ 3.1 and ≤ 3.1.11
MicrosoftMono≥ 6.12.0 and < 6.12.0.122
MicrosoftVisual Studio 2019*

All CVSS metrics

  • HIGH 8.1 v3.1 · CNA Primary
    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
  • HIGH 8.1 v3.1 · NVD Secondary
    CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • CRITICAL 9.8 v3.1 · NVD Secondary
    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • HIGH 7.5 v2.0 · NVD Primary
    AV:N/AC:L/Au:N/C:P/I:P/A:P

References

Patches & mitigations

Advisories

Technical & other

Sources: NVD · CVE.org · All sources and attribution · EPSS