Apache Struts Remote Code Execution
CVE-2020-17530 is a critical-severity improper neutralization of special elements used in an expression language statement vulnerability in Apache Struts from Apache, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Apache Struts versions: Struts 2.0.0 - Struts 2.5.25. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on November 3, 2021, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Struts to 2.5.30 or a later version.
- CISA's required action: Apply updates per vendor instructions.
- Read the advisory on cwiki.apache.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Apache | Apache Struts | Struts 2.0.0 - Struts 2.5.25 | Not stated |
| Apache | Struts | 2.0.0 up to, but not including, 2.5.30 | 2.5.30 |
| Oracle | Business Intelligence | 12.2.1.3.0; 12.2.1.4.0 | Not stated |
| Oracle | Communications Diameter Intelligence Hub | 8.0.0; 8.1.0; 8.2.0; 8.2.3 | Not stated |
| Oracle | Communications Policy Management | 12.5.0 | Not stated |
| Oracle | Communications Pricing Design Center | 12.0.0.3.0 | Not stated |
| Oracle | Financial Services Data Integration Hub | 8.0.3; 8.0.6 | Not stated |
| Oracle | Hospitality Opera 5 | 5.6 | Not stated |
| Oracle | MySQL Enterprise Monitor | 8.0.23 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.8 | Critical | NVD |
| CVSS 3.1 | 9.8 | Critical | CISA (ADP) |
| CVSS 2.0 | 7.5 | High | NVD |
Official description
Forced OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution. Affected software : Apache Struts 2.0.0 - Struts 2.5.25.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Neutralization of Special Elements used in an Expression Language Statement
The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.
How developers prevent this class of flaw
- Avoid adding user-controlled data into an expression interpreter when possible.
- If user-controlled data must be added to an expression interpreter, one or more of the following should be performed: Validate that the user input will not evaluate as an expression Encode the user input in a way that ensures it is not evaluated as an expression
- The framework or tooling might allow the developer to disable or deactivate the processing of EL expressions, such as setting the isELIgnored attribute for a JSP page to true.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- security.netapp.com/advisory/ntap-20210115-0005/Third Party Advisory
- oracle.com//security-alerts/cpujul2021.htmlThird Party Advisory
- oracle.com/security-alerts/cpuApr2021.htmlThird Party Advisory
- oracle.com/security-alerts/cpujan2021.htmlThird Party Advisory
- oracle.com/security-alerts/cpujan2022.htmlThird Party Advisory
- oracle.com/security-alerts/cpuoct2021.htmlThird Party Advisory
Third-party and government advisories
- jvn.jp/en/jp/JVN43969166/index.htmlThird Party Advisory
- packetstormsecurity.com/files/160721/Apache-Struts-2-Forced-Multi-OGNL-Evaluation.htmlThird Party Advisory, VDB Entry
- openwall.com/lists/oss-security/2022/04/12/6Mailing List, Third Party Advisory
- oracle.com/security-alerts/cpuapr2022.htmlThird Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-17530US Government Resource
Other vulnerabilities in Apache Struts
- 8.8 High severity
- 7.5 High severity
- 9.8 Critical severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
Recent Improper Neutralization of Special Elements used in an Expression Language Statement vulnerabilities
- 8.8 High severity
- 8.8 High severity
Spotted an error? Tell us.