DynamicExpresso.Core is vulnerable to Unsafe Reflection
88
CVE Score
High
Unsafe Reflection
DynamicExpresso enforces a default reflection restriction through DisableReflectionVisitor, but lambda bodies are parsed by a second, internally-created Interpreter that never receives this visitor. An expression that uses InterpreterOptions.LambdaExpressions together with a dynamic parameter (LateBindObject or an IDynamicMetaObjectProvider value such as ExpandoObject) can therefore reach arbitrary reflection and OS command execution from inside a lambda, even though the identical expression is blocked at the top level. The fix moves visitor registration from the Interpreter instance into the shared, cloned ParserSettings, so lambda and nested-lambda parsing keep DisableReflectionVisitor enforced by default.
Upgrade the DynamicExpresso.Core library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you enable InterpreterOptions.LambdaExpressions with a dynamic value such as LateBindObject or an IDynamicMetaObjectProvider parameter.
2.9.0 - 2.19.5
Fixed in 2.19.6DynamicExpresso.Core is vulnerable to Unsafe Reflection in versions 2.9.0 - 2.19.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.