Vulnerability library
Security checkMay 13, 2024

Apache Struts OGNL expression RCE S2-057

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severityRCEStrutsInjection

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A Remote Code Execution (RCE) attack is possible in Apache Struts when alwaysSelectFullNamespace is set to true (either by the user or by a plugin like Convention Plugin), and certain conditions are met regarding the configuration of namespaces and packages. This vulnerability allows attackers to execute arbitrary code on the server.

Recommendation

To mitigate this vulnerability, it is recommended to upgrade to Apache Struts version 2.3.35 or 2.5.17, or newer versions.

References

Could your website be exposed too?

SmartScanner can check your website for Apache Struts OGNL expression RCE S2-057 and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2024