CVE-2020-17530: Remote code execution in Apache Struts
CVE-2020-17530 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2022-02-09
Apache Struts 2 is vulnerable to Remote Code Execution due to forced OGNL evaluation of raw user input in tag attributes. An attacker can exploit this by submitting malicious OGNL expressions that the application then evaluates, leading to arbitrary code execution.
Yes. org.apache.struts:struts2-core (Maven): upgrade to 2.5.26 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2020-17530 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2020-17530?
Check whether you run Apache Struts or org.apache.struts:struts2-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
org.apache.struts:struts2-core (Maven): upgrade to 2.5.26 or later
# set org.apache.struts:struts2-core to 2.5.26 in your pom.xml or build.gradle
Affected products
Apache Struts 2 2.0.0 - 2.5.25
Identifiers
CVE-2020-17530
GHSA-jc35-q369-45pv
Timeline
2021-11-03: kev added: Added to CISA Known Exploited Vulnerabilities Catalog