Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2021-46703 EUVD-2022-1498GHSA-ph3v-2hq5-5qfq

Code injection in RazorEngine

Published Mar 6, 2022 · Updated Aug 4, 2024 · Assigned by mitre

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

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
NuGet RazorEngine <= 4.5.1-alpha001 — GHSA-ph3v-2hq5-5qfq

References