{"id":"CVE-2021-26701","aliases":["CVE-2021-26701","GHSA-ghhp-997w-qr28","BIT-DOTNET-2021-26701","BIT-DOTNET-SDK-2021-26701"],"related":[],"kind":"vulnerability","state":"published","title":".NET Core Remote Code Execution Vulnerability","summary":".NET Core Remote Code Execution Vulnerability","summarySource":"cvelist","descriptions":[{"lang":"en-US","text":".NET Core Remote Code Execution Vulnerability","source":"cvelist"},{"lang":"en","text":".NET Core Remote Code Execution Vulnerability This CVE ID is unique from CVE-2021-24112.\n\n### Executive summary\n\nMicrosoft is releasing this security advisory to provide information about a vulnerability in .NET 5.0, .NET Core 3.1, and .NET Core 2.1. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.\n\nA remote code execution vulnerability exists in .NET 5 and .NET Core due to how text encoding is performed.\n\n### Discussion\n\nDiscussion for this issue can be found at dotnet/runtime#49377\n\n### Mitigation factors\n\nMicrosoft has not identified any mitigating factors for this vulnerability.\n\n### Affected software\n\nThe vulnerable package is `System.Text.Encodings.Web` . Upgrading your package and redeploying your app should be sufficient to address this vulnerability.\n\nVulnerable package versions:\n\nAny .NET 5, .NET Core, or .NET Framework based application that uses the System.Text.Encodings.Web package with a vulnerable version listed below.\n\nPackage Name | Vulnerable Versions | Secure Versions\n-|-|-\nSystem.Text.Encodings.Web | 4.0.0 - 4.5.0 | 4.5.1\nSystem.Text.Encodings.Web |  4.6.0-4.7.1 | 4.7.2\nSystem.Text.Encodings.Web | 5.0.0 |  5.0.1\n\n\nPlease validate that each of the .NET versions you are using is in support. Security updates are only provided for supported .NET versions.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una Vulnerabilidad de Ejecución de Código Remota de .NET Core. Este ID de CVE es diferente de CVE-2021-24112","source":"nvd"}],"published":"2021-02-25T23:02:00.000Z","modified":"2026-09-08T08:46:49.103Z","severity":{"scorer":"microsoft","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"microsoft","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"custom","introduced":"2.1","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":".NET Core 2.1","cpe":"cpe:2.3:a:microsoft:.net_core:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"3.1","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":".NET Core 3.1","cpe":"cpe:2.3:a:microsoft:.net_core:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"5.0.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":".NET 5.0","cpe":"cpe:2.3:a:microsoft:.net:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"16.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3)","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"15.9.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2017 version 15.9 (includes 15.0 - 15.8)","cpe":"cpe:2.3:a:microsoft:visual_studio_2017:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"16.0.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6)","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"8.0.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":"Visual Studio 2019 for Mac","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:-:*:*:*:*:macos:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"16.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2019 version 16.8 (includes 16.0 - 16.7)","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:16.8:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"15.0.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":"Microsoft Visual Studio 2019 version 16.9 (includes 16.0 - 16.8)","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:16.9:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"7.1.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":"PowerShell Core 7.1","cpe":"cpe:2.3:a:microsoft:powershell_core:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"7.0.0","fixed":"publication","status":"affected"}],"vendor":"Microsoft","product":"PowerShell Core 7.0","cpe":"cpe:2.3:a:microsoft:powershell_core:*:*:*:*:*:*:*:*","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.5.1"}],"ecosystem":"NuGet","package":"System.Text.Encodings.Web","purl":"pkg:nuget/System.Text.Encodings.Web","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.6.0","status":"affected","fixed":"4.7.2"}],"ecosystem":"NuGet","package":"System.Text.Encodings.Web","purl":"pkg:nuget/System.Text.Encodings.Web","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.0.1"}],"ecosystem":"NuGet","package":"System.Text.Encodings.Web","purl":"pkg:nuget/System.Text.Encodings.Web","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.0","fixed":"5.0.4"}],"vendor":"microsoft","product":".net","cpe":"cpe:2.3:a:microsoft:.net:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.1","fixed":"2.1.28"},{"status":"affected","introduced":"3.1","fixed":"3.1.15"}],"vendor":"microsoft","product":".net_core","cpe":"cpe:2.3:a:microsoft:.net_core:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0"},{"status":"affected","version":"7.1"}],"vendor":"microsoft","product":"powershell_core","cpe":"cpe:2.3:a:microsoft:powershell_core:7.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"16.0","lastAffected":"16.9"}],"vendor":"microsoft","product":"visual_studio_2019","cpe":"cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"32"},{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.4"}],"ecosystem":"Bitnami","package":"dotnet","purl":"pkg:bitnami/dotnet","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.4"}],"ecosystem":"Bitnami","package":"dotnet-sdk","purl":"pkg:bitnami/dotnet-sdk","source":"bitnami"}],"references":[{"url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-26701","tags":["advisory","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XPUKFHIGP5YNJRRFWKDJ2XRS4WTFJNNK/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TW3ZSJTTMZAFKGW7NJWTVVFZUYYU2SJZ/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WA5WQJVHUL5C4XMJTLY3C67R4WP35EF4/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YLFATXASXW4OV2ZBSRP4G55HJH73QPBP/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UBOSSX7U6BSHV5RI74FCOW4ITJ5RRJR5/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2AZOUKMCHT2WBHR7MYDTYXWOBHZW5P5/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26701","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/dotnet/announcements/issues/178","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2AZOUKMCHT2WBHR7MYDTYXWOBHZW5P5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TW3ZSJTTMZAFKGW7NJWTVVFZUYYU2SJZ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UBOSSX7U6BSHV5RI74FCOW4ITJ5RRJR5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WA5WQJVHUL5C4XMJTLY3C67R4WP35EF4","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XPUKFHIGP5YNJRRFWKDJ2XRS4WTFJNNK","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YLFATXASXW4OV2ZBSRP4G55HJH73QPBP","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S2AZOUKMCHT2WBHR7MYDTYXWOBHZW5P5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TW3ZSJTTMZAFKGW7NJWTVVFZUYYU2SJZ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBOSSX7U6BSHV5RI74FCOW4ITJ5RRJR5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WA5WQJVHUL5C4XMJTLY3C67R4WP35EF4","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XPUKFHIGP5YNJRRFWKDJ2XRS4WTFJNNK","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YLFATXASXW4OV2ZBSRP4G55HJH73QPBP","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"microsoft","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-01-03T18:45:55.001Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-26701","url":"https://www.cve.org/CVERecord?id=CVE-2021-26701","licence":"CVE Terms of Use","modified":"2026-05-28T19:31:26.157Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ghhp-997w-qr28","url":"https://github.com/advisories/GHSA-ghhp-997w-qr28","licence":"CC-BY-4.0","modified":"2024-12-07T05:45:57.337Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-26701","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26701","licence":"Public domain","modified":"2026-06-17T03:43:40.920Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DOTNET-2021-26701","url":"https://osv.dev/vulnerability/BIT-DOTNET-2021-26701","licence":"Apache-2.0","modified":"2026-09-08T08:46:49.103Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DOTNET-SDK-2021-26701","url":"https://osv.dev/vulnerability/BIT-DOTNET-SDK-2021-26701","licence":"Apache-2.0","modified":"2026-09-08T08:46:39.426Z"}],"updatedAt":"2026-11-25T22:58:00.071Z","epss":{"score":0.30096,"percentile":0.98246,"date":"2026-12-01T12:00:22.000Z"}}