.NET Core Remote Code Execution VulnerabilityGHSA-rxg9-xrhp-64gj
CRITICALGHSA-rxg9-xrhp-64gj is a critical-severity (CVSS 9.8) Code Injection vulnerability in System.Drawing.Common. A fix is available for System.Drawing.Common — see the affected versions and patch details below.
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 GHSA-rxg9-xrhp-64gj.
EPSS Exploitation Probability
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
System.Drawing.Common.NETSystem.Drawing.CommonReal-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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | System.Drawing.Common | ≥ 4.0.0&&< 4.7.2 | 4.7.2dotnet add package System.Drawing.Common --version 4.7.2 |
| .NETNuGet | System.Drawing.Common | ≥ 5.0.0&&< 5.0.3 | 5.0.3dotnet add package System.Drawing.Common --version 5.0.3 |
Affected Products
.netmicrosoft.net coremicrosoftmonomicrosoftvisual studio 2019microsoftDetection & mitigation playbook
Open-source dependencyDetect
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.
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 GHSA-rxg9-xrhp-64gj is resolved across your whole dependency graph.
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
Is GHSA-rxg9-xrhp-64gj in your dependencies?
Find it across NuGet, including transitive dependencies.