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


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
90.87% (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-2635340
  • published12 Apr 2022
  • disclosed12 Apr 2022
  • creditChris McCown

Introduced: 12 Apr 2022

CVE-2021-31805  (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.30 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 fix issued for CVE-2020-17530 was incomplete. Some of the tag’s attributes could perform a double evaluation if a developer applied forced OGNL evaluation by using the %{...} syntax. Using forced OGNL evaluation on untrusted user input can lead to a Remote Code Execution and security degradation.

CVSS Scores

version 3.1