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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| RazorEngine (NuGet) | up to 4.5.1-alpha001 | GitHub Advisory Database |
| razorengine_project razorengine | before 4.5.1, 4.5.1 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV: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
| https://github.com/Antaris/RazorEngine/issues/585 | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-46703 | advisory | |
| https://github.com/Antaris/RazorEngine | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-46703 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ph3v-2hq5-5qfq changed 2025-03-26 | CC-BY-4.0 |
| NVD | CVE-2021-46703 changed 2026-06-17 | Public domain |