CVE-2021-24112 — Vulnerability in System.Drawing.Common — CVE Details
CRITICAL
.NET Core Remote Code Execution Vulnerability
Published May 24, 2022Updated November 29, 2024Source: osv
Summary
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.
Advisory Timeline
- First published May 24, 2022 (1602 days ago).
- Last revised November 29, 2024 — 919 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
NuGet
Update System.Drawing.Common to 5.0.3 or laterdotnet add package System.Drawing.Common --version 5.0.3
NuGet
Update System.Drawing.Common to 4.7.2 or laterdotnet add package System.Drawing.Common --version 4.7.2
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: nuget (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| System.Drawing.Common | nuget | 5.0.0, 5.0.1, 5.0.2 | 5.0.3 |
| System.Drawing.Common | nuget | 4.0.0, 4.5.0, 4.5.0-preview1-25718-03, 4.5.0-preview1-25914-04 (+10 more) | 4.7.2 |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2021-24112?
- .NET Core Remote Code Execution Vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2021-24112?
- CVE-2021-24112 affects System.Drawing.Common. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-24112 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
9.8
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
GHSA-rxg9-xrhp-64gj
BIT-dotnet-2021-24112
BIT-dotnet-sdk-2021-24112
Related CVEs
- CVE-2026-75513CRITICAL
Marten's LINQ provider has SQL injection via unescaped string literals
- CVE-2026-105794CRITICAL
MsQuic: Improper Certificate Validation in Microsoft.Native.Quic.MsQuic.OpenSSL
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies