hutool-core is vulnerable to Remote Code Execution (RCE)
98
Critical Risk
Hutool’s ExpressionEngine interface defines the allowClassSet parameter, which restricts the Java classes accessible during expression evaluation. However, the built-in engines — SpELEngine, MvelEngine, and RhinoEngine — do not enforce this, allowing unrestricted access and potentially leading to remote code execution (RCE). Additionally, with an empty whitelist, ValidateObjectInputStream allows all classes under the java.* package, and JNDIUtil.createInitialContext() does not restrict JNDI URL protocols or remote class loading.
You are affected if you are using a version that falls within the vulnerable range and if you are using ValidateObjectInputStream or JNDIUtil.createInitialContext methods.
hutool-core is vulnerable to Remote Code Execution (RCE) in versions 0.0.1 - 5.8.45.
Upgrade the cn.hutool:hutool-core library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant