CVE-2021-46703

In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if…

published March 6, 2022

CVSS
—
EPSS
2%
Percentile
79.1
In the wild
Unconfirmed
What it is

⚠️ A crafty template modification could unleash .NET code execution in a controlled environment! 🌪️ The IsolatedRazorEngine component in Antaris RazorEngine, up to version 4.5.1-alpha001, is the sneaky culprit here! Think of it like a restaurant that allows customers to make their own special sauce from a selection of ingredients. If they can sneak in something harmful, they could ruin the whole dish without the kitchen checking what’s mixed in! This vulnerability opens the door for attackers to execute arbitrary code, potentially compromising your application. Even in a controlled environment, it could lead to severe disruptions or unauthorized operations, especially since the affected products are no longer supported. It's like inviting a rogue chef into your kitchen and letting them tamper with the menu!

Put simply

Think of it like a restaurant that allows customers to make their own special sauce from a selection of ingredients. If they can sneak in something harmful, they could ruin the whole dish without the kitchen checking what’s mixed in! The IsolatedRazorEngine component allows user-controlled template content, which can be exploited to run any .NET code, effectively breaking the intended isolation. This could lead to unexpected behavior and security risks.

What to do

This vulnerability opens the door for attackers to execute arbitrary code, potentially compromising your application. Even in a controlled environment, it could lead to severe disruptions or unauthorized operations, especially since the affected products are no longer supported. It's like inviting a rogue chef into your kitchen and letting them tamper with the menu! Since this vulnerability affects unsupported products, the best course of action is to migrate to a supported version or switch to an alternative templating engine. Review your current implementation to ensure there’s no external control over the template content. If you need to keep using it, ensure proper monitoring and restrictions are in place. You've got this! With some proactive steps, you can keep your environment secure! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01861 · 79.1th percentile
Published
2022-03-06T05:29Z
EPSS history
Timeline
  • 06 MAR 05:29Z
    In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if…
    cvelistv5