Advisory

GHSA-ph3v-2hq5-5qfq

Also known as: CVE-2021-46703

Summary

Code injection in RazorEngine

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-03-07 00:00 UTC
Modified
2025-03-26 15:47 UTC

Affected packages and fixes

RazorEngine

NuGet · All systems

Affected

  • introduced 0, last affected 4.5.1-alpha001 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences