Every CVE Search/ Get API key

CVE-2021-46703

Code injection in RazorEngine

9.8 CriticalPublic exploit

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.86%Up 1.0 points since Mar 6, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

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

Record
CVE-2021-46703
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Updated
2026-11-02
CVE List No score

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

Record
CVE-2021-46703
Updated
2026-11-02
EUVDEUVD-2022-1498 No score

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

Record
EUVD-2022-1498
Updated
2026-11-03
GitHub AdvisoriesGHSA-ph3v-2hq5-5qfq 9.8

Code injection in RazorEngine

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.

Record
GHSA-ph3v-2hq5-5qfq
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-1336
Updated
2026-11-02
OSV 9.8

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

Record
CVE-2021-46703
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-ph3v-2hq5-5qfq 9.8

Code injection in RazorEngine

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.

Record
GHSA-ph3v-2hq5-5qfq
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-1336
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
RazorEngine
NuGet
through 4.5.1-alpha001 None known
RazorEngine
NuGet
through 4.5.1-alpha001, plus listed versions
2.1.03.0.03.0.33.0.43.0.5
Show 45 moreShow less
3.0.63.0.73.0.83.1.03.10.03.10.1-alpha0013.2.03.3.03.4.03.4.13.4.23.5.03.5.0-beta13.5.0-beta23.5.0-beta33.5.13.5.23.5.33.6.03.6.13.6.23.6.33.6.3-beta13.6.3-beta23.6.43.6.53.6.5-beta13.6.63.6.6-beta13.6.6-beta23.7.03.7.0-beta13.7.1-alpha13.7.23.7.33.7.43.7.53.7.5-beta13.7.5-beta23.7.63.7.73.8.03.8.13.8.23.9.0
None known

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubBenEdridge/CVE-2021-467032023-05-07

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-46703 is a critical vulnerability (CVSS 9.8) in Razorengine Project Razorengine, published March 6, 2022. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.86%, the 79th percentile. No source names a fixed version.

References

This page doesn't list everything

Left out here: 33 versions. The JSON record has them.

MoveEnter Open