NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
.NET
.NET NuGet
Not in CISA KEV
HIGH severity

CVE-2021-24112 — System.Drawing.Common

HIGH

CVE-2021-24112 is a high-severity (CVSS 8.1) Code Injection vulnerability in System.Drawing.Common. A fix is available for System.Drawing.Common — see the affected versions and patch details below.

.NET Core Remote Code Execution Vulnerability

Also known asBIT-dotnet-2021-24112BIT-dotnet-sdk-2021-24112GHSA-rxg9-xrhp-64gj
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Nov 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2021-24112.

EPSS Exploitation Probability

via FIRST.org ↗
3.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs89th percentile — riskier than 89% of all scored CVEsHighest risk
0.40%1.65%2.91%4.16%1.1%3.5%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
.NETSystem.Drawing.Common.NETSystem.Drawing.Common

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.

Description

A remote code execution vulnerability exists when parsing certain types of graphics files. This vulnerability only exists on systems running on MacOS or Linux. This CVE ID is unique from CVE-2021-26701.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
.NETNuGetSystem.Drawing.Common≥ 4.0.0&&< 4.7.24.7.2dotnet add package System.Drawing.Common --version 4.7.2
.NETNuGetSystem.Drawing.Common≥ 5.0.0&&< 5.0.35.0.3dotnet add package System.Drawing.Common --version 5.0.3

Affected Products

4 products · 5 configurations
Application
.netmicrosoft
≥ 5.0 && ≤ 5.0.2
range
Application
.net coremicrosoft
≥ 3.1 && ≤ 3.1.11
range
Application
monomicrosoft
≥ 6.12.0 && < 6.12.0.122
range
Application
visual studio 2019microsoft
all

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for System.Drawing.Common, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update System.Drawing.Common to 4.7.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-24112 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Frequently Asked Questions

A remote code execution vulnerability exists when parsing certain types of graphics files. This vulnerability only exists on systems running on MacOS or Linux. This CVE ID is unique from CVE-2021-26701.
O3 Security · Impact-Aware SCA

Is CVE-2021-24112 in your dependencies?

Find it across NuGet, including transitive dependencies.

CVE-2021-24112: System.Drawing RCE — Fixed in 4.7.2