{"answers":{"affected":"6 open source packages ship an affected version, including System.Drawing.Common, dotnet and dotnet-sdk. It affects 4 products.","exploited":"There is no known exploitation of CVE-2021-24112 in the wild and no public exploit code.","fix":"Upgrade System.Drawing.Common to a fixed version for your release line: 4.7.2 or 5.0.3.","what":"CVE-2021-24112 is a high-severity code injection vulnerability in Microsoft .Net, published on 25 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-24112 and fix it if it is affected.\n\nWhat it is: CVE-2021-24112 is a high-severity code injection vulnerability in Microsoft .Net, published on 25 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-24112 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- System.Drawing.Common (NuGet): affected from 4.0.0; fixed in 4.7.2\n- System.Drawing.Common (NuGet): affected from 4.0.0; fixed in 4.7.2\n- System.Drawing.Common (NuGet): affected from 5.0.0; fixed in 5.0.3\n- System.Drawing.Common (NuGet): affected from 5.0.0; fixed in 5.0.3\n- dotnet (Bitnami): affected from 5.0.0; fixed in 5.0.3\n- dotnet-sdk (Bitnami): affected from 5.0.0; fixed in 5.0.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-24112/ (Markdown: https://insights.sbomify.com/CVE-2021-24112/index.md)","id":"CVE-2021-24112","markdown":"https://insights.sbomify.com/CVE-2021-24112/index.md","name":"CVE-2021-24112","record":{"aliases":["BIT-dotnet-2021-24112","BIT-dotnet-sdk-2021-24112","GHSA-rxg9-xrhp-64gj","openSUSE-SU-2024:11556-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":".NET Core runtime","requires_auth":"none","summary":"Attackers can execute arbitrary code via code injection in the .NET Core runtime, affecting developers and applications using affected versions.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":".net","vendor":"microsoft"},{"product":".net_core","vendor":"microsoft"},{"product":"mono","vendor":"microsoft"},{"product":"visual_studio_2019","vendor":"microsoft"}],"cvss":{"score":8.1,"severity":"high","source":"cna","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","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":".NET Core Remote Code Execution Vulnerability","ecosystems":["Bitnami","NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":".NET Core Remote Code Execution Vulnerability","id":"CVE-2021-24112","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"microsoft:.net","products":["microsoft:.net","microsoft:visual_studio_2019"],"type":"code_injection","year":"2021"},"n_packages":6,"n_references":1,"next":{"headline":"Microsoft Edge (Chromium-based) Security Feature Bypass Vulnerability","id":"CVE-2021-24113"},"packages":[{"ecosystem":"Bitnami","fixed":["5.0.3"],"introduced":["5.0.0"],"last_affected":[],"package":"dotnet","purl":"pkg:bitnami/dotnet","source":"BIT-dotnet-2021-24112"},{"ecosystem":"Bitnami","fixed":["5.0.3"],"introduced":["5.0.0"],"last_affected":[],"package":"dotnet-sdk","purl":"pkg:bitnami/dotnet-sdk","source":"BIT-dotnet-sdk-2021-24112"},{"ecosystem":"NuGet","fixed":["4.7.2"],"introduced":["4.0.0"],"last_affected":[],"package":"System.Drawing.Common","purl":null,"source":"GHSA-rxg9-xrhp-64gj"},{"ecosystem":"NuGet","fixed":["4.7.2"],"introduced":["4.0.0"],"last_affected":[],"package":"System.Drawing.Common","purl":"pkg:nuget/System.Drawing.Common","source":"GHSA-rxg9-xrhp-64gj"},{"ecosystem":"NuGet","fixed":["5.0.3"],"introduced":["5.0.0"],"last_affected":[],"package":"System.Drawing.Common","purl":null,"source":"GHSA-rxg9-xrhp-64gj"},{"ecosystem":"NuGet","fixed":["5.0.3"],"introduced":["5.0.0"],"last_affected":[],"package":"System.Drawing.Common","purl":"pkg:nuget/System.Drawing.Common","source":"GHSA-rxg9-xrhp-64gj"}],"prev":{"headline":".NET Framework Denial of Service Vulnerability","id":"CVE-2021-24111"},"products":[".NET 5.0",".NET Core 2.1",".NET Core 3.1","Mono 6.12.0","Visual Studio 2019 for Mac"],"published":"2021-02-25","related":[{"cvss_score":9.8,"headline":".NET and Visual Studio Remote Code Execution Vulnerability","id":"CVE-2024-43498","kev_date_added":null,"published":"2024-11-12"},{"cvss_score":9.1,"headline":"NET, .NET Framework, and Visual Studio Security Feature Bypass Vulnerability","id":"CVE-2024-0057","kev_date_added":null,"published":"2024-01-09"},{"cvss_score":8.8,"headline":".NET Security Feature Bypass Vulnerability","id":"CVE-2026-96957","kev_date_added":null,"published":"2026-10-13"},{"cvss_score":8.8,"headline":".NET and Visual Studio Elevation of Privilege Vulnerability","id":"CVE-2026-69439","kev_date_added":null,"published":"2026-09-08"},{"cvss_score":8.8,"headline":".NET and Visual Studio Remote Code Execution Vulnerability","id":"CVE-2026-71328","kev_date_added":null,"published":"2026-09-08"},{"cvss_score":8.8,"headline":"ASP.NET Core Elevation of Privilege Vulnerability","id":"CVE-2026-47300","kev_date_added":null,"published":"2026-07-14"},{"cvss_score":8.8,"headline":"ASP.NET Core Elevation of Privilege Vulnerability","id":"CVE-2026-47303","kev_date_added":null,"published":"2026-07-14"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-07","vendors":["Microsoft"]},"summary":"Attackers can execute arbitrary code via code injection in the .NET Core runtime, affecting developers and applications using affected versions.","url":"https://insights.sbomify.com/CVE-2021-24112/"}