CVE-2021-24112
HIGH 8.1 ALL-YEARS.NET Core Remote Code Execution Vulnerability
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
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
GitHub Advisory Database · GHSA-rxg9-xrhp-64gj · Updated 2024-11-29T05:26:26.867037ZAdditional 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" } }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
GitHub Advisory Database · GHSA-rxg9-xrhp-64gj · Updated 2024-11-29T05:26:26.867037ZAdditional 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" } }
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:00rh-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:00rh-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:00rh-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:00rh-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:00rh-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:00aspnetcore-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:00aspnetcore-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:00aspnetcore-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:00aspnetcore-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:00dotnet 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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet-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:00dotnet.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:00dotnet3.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:00dotnet5.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:00netstandard-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
| Vendor | Product | Version 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 |
| Microsoft | Mono | ≥ 6.12.0 and < 6.12.0.122 |
| Microsoft | Visual 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
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-24112 CVE record · CVE · Updated 2024-08-03T19:21:18.636Z
CVE record · microsoft · Updated 2023-12-29T22:33:25.762Z
NVD · CVE-2021-24112 · Updated 2026-10-07T17:16:42.150
GitHub Advisory Database · GHSA-rxg9-xrhp-64gj
GitHub Advisory Database · GHSA-rxg9-xrhp-64gj · Updated 2024-11-29T05:26:26.867037Z
Advisories
- https://nvd.nist.gov/vuln/detail/CVE-2021-24112 GitHub Advisory Database · GHSA-rxg9-xrhp-64gj
GitHub Advisory Database · GHSA-rxg9-xrhp-64gj · Updated 2024-11-29T05:26:26.867037Z
Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00 - https://osv.dev/vulnerability/GHSA-rxg9-xrhp-64gj GitHub Advisory Database · GHSA-rxg9-xrhp-64gj
GitHub Advisory Database · GHSA-rxg9-xrhp-64gj · Updated 2024-11-29T05:26:26.867037Z - https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-24112.json Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-5253 EUVD · EUVD-2022-5253
Technical & other
- https://github.com/dotnet/announcements/issues/176 GitHub Advisory Database · GHSA-rxg9-xrhp-64gj
GitHub Advisory Database · GHSA-rxg9-xrhp-64gj · Updated 2024-11-29T05:26:26.867037Z - https://access.redhat.com/security/cve/CVE-2021-24112 Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
- https://bugzilla.redhat.com/show_bug.cgi?id=1933741 Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
- https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24112 Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
- https://www.cve.org/CVERecord?id=CVE-2021-24112 Red Hat · CVE-2021-24112 · Updated 2026-11-07T13:36:27+00:00
Sources: NVD · CVE.org · All sources and attribution · EPSS