Intel

AIKIDO-2026-608574

DynamicExpresso.Core is vulnerable to Unsafe Reflection

Unsafe ReflectionGHSA-5jx8-p6q2-455g Published Yesterday

88

High Risk

This Affects:

DOTNETDynamicExpresso.Core
2.8.0 - 2.19.3
Fixed in 2.19.5
Are you affected? Scan for Free

TL;DR

DynamicExpresso blocks reflection by default, but DisableReflectionVisitor only inspects static expression-tree nodes. With InterpreterOptions.LateBindObject enabled, casting a System.Type to object emits dynamic call sites that skip that check, so an attacker-controlled expression can load System.Diagnostics.Process and execute commands as the host process. The patch enforces the same reflection policy against the runtime target of late-bound operations.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range, enable InterpreterOptions.LateBindObject, and evaluate untrusted expression text.

Background info

DynamicExpresso.Core is vulnerable to Unsafe Reflection in versions 2.8.0 - 2.19.3.

How to fix this

Upgrade the DynamicExpresso.Core library to the patch version.