Skip to content

Code injection in RazorEngine

Moderate severity GitHub Reviewed Published Mar 7, 2022 to the GitHub Advisory Database • Updated Feb 3, 2023

Package

nuget RazorEngine (NuGet)

Affected versions

<= 4.5.1-alpha001

Patched versions

None

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.

References

Published by the National Vulnerability Database Mar 6, 2022
Published to the GitHub Advisory Database Mar 7, 2022
Reviewed Mar 11, 2022
Last updated Feb 3, 2023

Severity

Moderate

EPSS score

0.330%
(72nd percentile)

Weaknesses

No CWEs

CVE ID

CVE-2021-46703

GHSA ID

GHSA-ph3v-2hq5-5qfq

Source code

No known source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.