{"id":"CVE-2021-46703","aliases":["CVE-2021-46703","GHSA-ph3v-2hq5-5qfq"],"related":[],"kind":"vulnerability","state":"published","title":"Code injection in RazorEngine","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"** NO SOPORTADO CUANDO SE ASIGNÓ ** En el componente IsolatedRazorEngine de Antaris RazorEngine versiones hasta 4.5.1-alpha001, un atacante puede ejecutar código .NET arbitrario en un entorno sandboxed (si usuarios pueden controlar externamente el contenido de la plantilla). NOTA: Esta vulnerabilidad sólo afecta a productos que ya no son soportados por el mantenedor","source":"nvd"}],"published":"2022-03-06T05:29:07.000Z","modified":"2026-06-17T04:15:24.230Z","severity":{"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"},"severities":[{"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"}],"cwes":["CWE-1336"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"4.5.1-alpha001"}],"ecosystem":"NuGet","package":"RazorEngine","purl":"pkg:nuget/RazorEngine","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.5.1"},{"status":"affected","version":"4.5.1"}],"vendor":"razorengine_project","product":"razorengine","cpe":"cpe:2.3:a:razorengine_project:razorengine:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Antaris/RazorEngine/issues/585","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46703","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Antaris/RazorEngine","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46703","url":"https://www.cve.org/CVERecord?id=CVE-2021-46703","licence":"CVE Terms of Use","modified":"2024-08-04T05:17:41.625Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ph3v-2hq5-5qfq","url":"https://github.com/advisories/GHSA-ph3v-2hq5-5qfq","licence":"CC-BY-4.0","modified":"2025-03-26T15:47:54.296Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46703","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46703","licence":"Public domain","modified":"2026-06-17T04:15:24.230Z"}],"updatedAt":"2026-11-25T22:58:07.127Z","epss":{"score":0.01861,"percentile":0.79853,"date":"2026-12-01T12:00:22.000Z"}}