Security mailing lists by PureSourceCode

CVE-2021-46703

CRITICAL 9.8CVSS 3.1

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

Published
6 Mar 2022
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-1336
Also known as
GHSA-ph3v-2hq5-5qfq
Sources
NVDJSONOSV GHSA-ph3v-2hq5-5qfqJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD razorengine_project razorengine
cpe:2.3:a:razorengine_project:razorengine:*:*:*:*:*:*:*:*
< 4.5.1 4.5.1
NVD razorengine_project razorengine
cpe:2.3:a:razorengine_project:razorengine:4.5.1:alpha001:*:*:*:*:*:*
= 4.5.1
OSV NuGet RazorEngine <= 4.5.1-alpha001

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 6 Mar 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 7 Mar 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.