{"id":"CVE-2021-46703","aliases":["EUVD-2022-1498","GHSA-ph3v-2hq5-5qfq"],"status":"published","title":"Code injection in RazorEngine","description":"In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01861,"percentile":0.7942,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-1336"],"published":"2022-03-06T05:29:07Z","modified":"2026-10-20T10:55:11Z","exploits":[{"source":"pocgithub","id":"BenEdridge/CVE-2021-46703","title":"BenEdridge/CVE-2021-46703","date":"2023-05-07","url":"https://github.com/BenEdridge/CVE-2021-46703"}],"affected":[{"source":"ghsa","ecosystem":"NuGet","package":"RazorEngine","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.5.1-alpha001"}]}]},{"source":"osv","ecosystem":"NuGet","package":"RazorEngine","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.5.1-alpha001"}]}],"versions":["2.1.0","3.0.0","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.1.0","3.10.0","3.10.1-alpha001","3.2.0","3.3.0","3.4.0","3.4.1","3.4.2","3.5.0","3.5.0-beta1","3.5.0-beta2","3.5.0-beta3","3.5.1","3.5.2","3.5.3","3.6.0","3.6.1","3.6.2","3.6.3","3.6.3-beta1","3.6.3-beta2","3.6.4","3.6.5","3.6.5-beta1","3.6.6","3.6.6-beta1","3.6.6-beta2","3.7.0","3.7.0-beta1","3.7.1-alpha1","3.7.2","3.7.3","3.7.4","3.7.5","3.7.5-beta1","3.7.5-beta2","3.7.6","3.7.7","3.8.0","3.8.1","3.8.2","3.9.0","3.9.1","3.9.2","3.9.3","4.0.0-beta1","4.0.0-beta2","4.0.1-beta1","4.0.2-beta1","4.0.3-beta1","4.1.0-beta1","4.1.1-beta1","4.1.2-beta1","4.1.3-beta2","4.1.4-beta1","4.1.5-beta1","4.1.6-beta1","4.2.0-beta1","4.2.0-beta2","4.2.0-beta3","4.2.1-beta1","4.2.2-beta1","4.2.3-beta1","4.2.4-beta1","4.2.5-beta1","4.2.6-beta1","4.2.7-beta1","4.3.0-beta1","4.3.1-beta1","4.3.2-beta1","4.4.0-rc1","4.4.1-rc1","4.4.2-rc1","4.4.3-rc1","4.5.0-rc1","4.5.1-alpha001"]}],"products":[{"vendor":"razorengine_project","product":"razorengine"}],"references":[{"url":"https://github.com/Antaris/RazorEngine/issues/585","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46703","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-ph3v-2hq5-5qfq"},{"url":"https://github.com/Antaris/RazorEngine","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-46703","description":"In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer","status":"published","published":"2022-03-06T05:29:07Z","modified":"2024-08-04T05:17:41.625Z","updated_at":"2026-11-02T14:33:02.930115Z"}],"euvd":[{"id":"EUVD-2022-1498","description":"In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer","status":"published","published":"2022-03-06T05:29:07Z","modified":"2024-08-04T05:17:41Z","updated_at":"2026-11-03T03:08:22.448202Z"}],"ghsa":[{"id":"GHSA-ph3v-2hq5-5qfq","title":"Code injection in RazorEngine","description":"In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer.","status":"published","published":"2022-03-07T00:00:41Z","modified":"2025-03-26T15:32:25Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T14:38:36.51789Z"}],"nvd":[{"id":"CVE-2021-46703","description":"In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer","status":"published","published":"2022-03-06T06:15:07.103Z","modified":"2026-06-17T04:15:24.23Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:07:05.198719Z"}],"osv":[{"id":"CVE-2021-46703","description":"In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer","status":"published","published":"2022-03-06T06:15:07.103Z","modified":"2026-10-20T10:55:11.656619308Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:22.18434Z"},{"id":"GHSA-ph3v-2hq5-5qfq","title":"Code injection in RazorEngine","description":"In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer.","status":"published","published":"2022-03-07T00:00:41Z","modified":"2025-03-26T15:47:54.296291Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T15:46:53.244788Z"}]}}
