{"id":"GHSA-ph3v-2hq5-5qfq","summary":"Code injection in RazorEngine","details":"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.","aliases":["CVE-2021-46703"],"modified":"2025-03-26T16:14:56.172619Z","published":"2022-03-07T00:00:41Z","database_specific":{"github_reviewed_at":"2022-03-11T20:30:20Z","nvd_published_at":"2022-03-06T06:15:00Z","cwe_ids":["CWE-1336"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46703"},{"type":"WEB","url":"https://github.com/Antaris/RazorEngine/issues/585"},{"type":"PACKAGE","url":"https://github.com/Antaris/RazorEngine"}],"affected":[{"package":{"name":"RazorEngine","ecosystem":"NuGet","purl":"pkg:nuget/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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-ph3v-2hq5-5qfq/GHSA-ph3v-2hq5-5qfq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}