CVE-2021-46703
JSON

9.8critical

Code injection in RazorEngine

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.86% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-ph3v-2hq5-5qfq

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
RazorEngine (NuGet)up to 4.5.1-alpha001GitHub Advisory Database
razorengine_project razorenginebefore 4.5.1, 4.5.1NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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

GitHub Advisory Database

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.

NVD (es)

** 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

References

Sources

SourceRecordLicence
CVE ListCVE-2021-46703 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-ph3v-2hq5-5qfq changed 2025-03-26CC-BY-4.0
NVDCVE-2021-46703 changed 2026-06-17Public domain