Remote Code Execution (RCE) Affecting org.apache.struts:struts2-core package, versions [2.0.0, 2.5.26)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Mature
EPSS
96.68% (100th percentile)

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 Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHESTRUTS-1049003
  • published8 Dec 2020
  • disclosed8 Dec 2020
  • creditAlvaro Munoz, Masato Anzai

Introduced: 8 Dec 2020

CVE-2020-17530  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

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

Overview

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.

CVSS Scores

version 3.1