Remote Code Execution (RCE) Affecting org.apache.struts:struts2-core Open this link in a new tab package, versions [2.0.0, 2.5.26)

  • Exploit Maturity

    Proof of concept

  • Attack Complexity


  • Confidentiality


  • Integrity


  • Availability


Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • snyk-id


  • published

    8 Dec 2020

  • disclosed

    8 Dec 2020

  • credit

    Alvaro Munoz, Masato Anzai

How to fix?

Upgrade org.apache.struts:struts2-core to version 2.5.26 or higher.


org.apache.struts:struts2-core is a popular open-source framework for developing web applications in the Java programming language.

Affected versions of this package are vulnerable to Remote Code Execution (RCE). The vulnerability exists due to improper input validation when processing certain tag's attributes. The application performs double evaluation of the code if a developer applied forced OGNL evaluation by using the %{...} syntax. A remote attacker can send a specially crafted request to the application and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.