cve.bz

CVE-2021-24112 microsoft: Code Injection

8.1 highEPSS 3.5%Fix available

High (8.1) in microsoft. EPSS 3.5% estimated probability of exploitation activity in the next 30 days. Fixed in System.Drawing.Common 4.7.2, 5.0.3.

On this page
.NET Core Remote Code Execution Vulnerability

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.5% (unchanged from 3.5% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-24112 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-24112?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-24112?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-24112 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-24112

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-24112](https://cve.bz/cve/badge/CVE-2021-24112.svg)](https://cve.bz/cve/CVE-2021-24112)

HTML:

<a href="https://cve.bz/cve/CVE-2021-24112"><img src="https://cve.bz/cve/badge/CVE-2021-24112.svg" alt="CVE-2021-24112"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Microsoft Visual Studio 2019 for Macfrom 8.0.0 before publication
Microsoft Mono 6.12.0from 6.12.0 before publication
Microsoft .NET Core 2.1from 2.1 before publication
Microsoft .NET Core 3.1from 3.1 before publication
Microsoft .NET 5.0from 5.0.0 before publication

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rxg9-xrhp-64gjNuGetSystem.Drawing.Common>=4.0.0 <4.7.24.7.2
GHSA-rxg9-xrhp-64gjNuGetSystem.Drawing.Common>=5.0.0 <5.0.35.0.3

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Enterprise Linux 8 and the .NET versions as shipped by Red Hat are not affected by this vulnerability since libgdiplus is an optional dependency for .NET and is currently not available for Red Hat Enterprise Linux.

ProductPackageStateAdvisory
.NET Core 2.1 on Red Hat Enterprise Linuxrh-dotnet21Not affected
.NET Core 3.1 on Red Hat Enterprise Linuxrh-dotnet31Not affected
.NET Core 5.0 on Red Hat Enterprise Linuxrh-dotnet50Not affected
Red Hat Enterprise Linux 8dotnetNot affected
Red Hat Enterprise Linux 8dotnet3.1Not affected
Red Hat Enterprise Linux 8dotnet5.0Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-24112.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON