VulnarioBlogApache Struts vulnerabilities
Apache Struts Vulnerabilities: The 10 Most Critical Apache Struts Security Bugs (CVEs)
Apache Struts vulnerabilities are security flaws in Apache Struts that attackers can abuse to steal data, take over a server or interrupt a service. Apache Struts is a Java web application framework, known for the 2017 Equifax breach. The National Vulnerability Database (NVD) lists 99 CVEs for Apache Struts, 17 of them rated critical, and 12 were published in the last 12 months. CISA lists 9 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.
This guide lists the 10 most critical Apache Struts security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Apache Struts security basics, the current end-of-life dates and a free way to be told about the next Apache Struts CVE as soon as it is published.
Key takeaways
- 9 CVEs are in CISA's KEV catalog, so attackers have exploited them in the wild.
- 17 Apache Struts CVEs are rated critical (CVSS v3), and 12 new ones were published in the last 12 months.
- The newest CVE in this guide is CVE-2026-104711, published Oct 5, 2026.
- Supported Apache Struts releases today (per endoflife.date): 7, 6. Releases not on the list are past their announced end of life.
- You can monitor Apache Struts for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these Apache Struts CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 10 most critical Apache Struts CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2020-17530 | 9.8 Critical | 2020-12-11 | Apache Struts Remote Code Execution | Yes |
| 2 | CVE-2017-9791 | 9.8 Critical | 2017-07-10 | Apache Struts 1 Improper Input Validation | Yes |
| 3 | CVE-2017-5638 | 9.8 Critical | 2017-03-11 | Apache Struts Remote Code Execution | Yes (ransomware use known) |
| 4 | CVE-2013-2251 | 9.8 Critical | 2013-07-20 | Apache Struts Improper Input Validation | Yes |
| 5 | CVE-2012-0391 | 9.8 Critical | 2012-01-08 | Apache Struts 2 Improper Input Validation | Yes |
| 6 | CVE-2018-11776 | 8.1 High | 2018-08-22 | Apache Struts Remote Code Execution | Yes |
| 7 | CVE-2017-9805 | 8.1 High | 2017-09-15 | Apache Struts Deserialization of Untrusted Data | Yes |
| 8 | CVE-2016-3081 | 8.1 High | 2016-04-26 | Apache Struts Command Injection | Yes |
| 9 | CVE-2006-1547 | 7.5 High | 2006-03-30 | Apache Struts 1 ActionForm Denial-of-Service | Yes |
| 10 | CVE-2026-104711 | 9.8 Critical | 2026-10-05 | Remote code execution | No |
Each Apache Struts CVE explained
1. CVE-2020-17530: Apache Struts Remote Code Execution
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.0.0 to before 2.5.30
- What to do
- Upgrade to 2.5.30 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
2. CVE-2017-9791: Apache Struts 1 Improper Input Validation
- What NVD says
- The Struts 1 plugin in Apache Struts 2.1.x and 2.3.x might allow remote code execution via a malicious field value passed in a raw message to the ActionMessage.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.3.1; 2.3.1.1; 2.3.1.2; 2.3.3
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
3. CVE-2017-5638: Apache Struts Remote Code Execution
- What NVD says
- The Jakarta Multipart parser in Apache Struts 2 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1 has incorrect exception handling and error-message generation during file-upload attempts, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header, as exploited in the wild in March 2017 with a Content-Type header containing a #cmd= string.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.2.3 to before 2.3.32; 2.5.0 to before 2.5.10.1
- What to do
- Upgrade to the fixed release for your branch (2.3.32, 2.5.10.1) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
4. CVE-2013-2251: Apache Struts Improper Input Validation
- What NVD says
- Apache Struts 2.0.0 through 2.3.15 allows remote attackers to execute arbitrary OGNL expressions via a parameter with a crafted (1) action:, (2) redirect:, or (3) redirectAction: prefix.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.0.0 through 2.3.15
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
5. CVE-2012-0391: Apache Struts 2 Improper Input Validation
- What NVD says
- The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary Java code via a crafted parameter.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 2.2.3.1
- What to do
- Upgrade to 2.2.3.1 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
6. CVE-2018-11776: Apache Struts Remote Code Execution
- What NVD says
- Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16 suffer from possible Remote Code Execution when alwaysSelectFullNamespace is true (either by user or a plugin like Convention Plugin) and then: results are used with no namespace and in same time, its upper package have no or wildcard namespace and similar to results, same possibility when using url tag which doesn't have value and action set and in same time,…
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.0.4 to before 2.3.35; 2.5.0 to before 2.5.17
- What to do
- Upgrade to the fixed release for your branch (2.3.35, 2.5.17) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
7. CVE-2017-9805: Apache Struts Deserialization of Untrusted Data
- What NVD says
- The REST Plugin in Apache Struts 2.1.1 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13 uses an XStreamHandler with an instance of XStream for deserialization without any type filtering, which can lead to Remote Code Execution when deserializing XML payloads.
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.1.2 to before 2.3.34; 2.5.0 to before 2.5.13
- What to do
- Upgrade to the fixed release for your branch (2.3.34, 2.5.13) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
8. CVE-2016-3081: Apache Struts Command Injection
- What NVD says
- Apache Struts 2.3.19 to 2.3.20.2, 2.3.21 to 2.3.24.1, and 2.3.25 to 2.3.28, when Dynamic Method Invocation is enabled, allow remote attackers to execute arbitrary code via method: prefix, related to chained expressions.
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.3.20 to before 2.3.20.3; 2.3.21 to before 2.3.24.3; 2.3.25 to before 2.3.28.1
- What to do
- Upgrade to the fixed release for your branch (2.3.20.3, 2.3.24.3, 2.3.28.1) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
9. CVE-2006-1547: Apache Struts 1 ActionForm Denial-of-Service
- What NVD says
- ActionForm in Apache Software Foundation (ASF) Struts before 1.2.9 with BeanUtils 1.7 allows remote attackers to cause a denial of service via a multipart/form-data encoded form with a parameter name that references the public getMultipartRequestHandler method, which provides further access to elements in the CommonsMultipartRequestHandler implementation and BeanUtils.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on availability.
- Affected versions
- before 1.2.9
- What to do
- Upgrade to 1.2.9 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
10. CVE-2026-104711: Remote code execution
- What NVD says
- Improper neutralization of special elements used in an expression language statement ('Expression Language Injection') vulnerability in Apache Struts. If the application is configured to use the legacy RESTful action mapper, a crafted request can inject an OGNL expression that may lead to remote code execution. Struts 7 is affected only when the OGNL allowlist is disabled; it is enabled by default.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 2.0.0 through 2.3.37; 2.5.0 through 2.5.33; 6.0.0 to before 6.12.0; 7.0.0 to before 7.4.0
- What to do
- Upgrade to the fixed release for your branch (6.12.0, 7.4.0) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
Apache Struts end of life: which versions still get security fixes
Running a release that still receives security fixes is the most effective way to avoid Apache Struts vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Apache Struts releases are 7, 6.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| Apache Struts 7 | Dec 11, 2024 | Not announced | 7.4.0 | Supported |
| Apache Struts 6 | Jun 2, 2022 | Not announced | 6.12.0 | Supported |
| Apache Struts 2.5 | May 5, 2016 | Apr 30, 2024 | 2.5.33 | End of life |
| Apache Struts 2.3 | Dec 8, 2011 | May 14, 2019 | 2.3.37 | End of life |
| Apache Struts 2.2 | Jun 29, 2010 | Ended | 2.2.3.1 | End of life |
| Apache Struts 2.1 | Oct 29, 2007 | Ended | 2.1.8.1 | End of life |
| Apache Struts 2.0 | Sep 24, 2006 | Ended | 2.0.14 | End of life |
| Apache Struts 1.3 | Dec 14, 2005 | Apr 5, 2013 | 1.3.10 | End of life |
Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.
Apache Struts security checklist
- Update the core, themes, plugins and extensions as soon as security releases appear.
- Remove plugins, themes and modules you do not use.
- Give users the minimum role they need and enable two-factor authentication for administrators.
- Keep debug and development modes off in production.
- Back up files and database before every update.
- Put a web application firewall and rate limiting in front of login pages.
Your stack is bigger than Apache Struts. A flaw anywhere in the chain can be the way in, so also review our guides to Java vulnerabilities, Apache Tomcat vulnerabilities and Log4j vulnerabilities.
How to get alerted about new Apache Struts vulnerabilities
NVD received 12 new Apache Struts CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Apache Struts and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run Apache Struts alone. These guides cover the technologies it is most often deployed with.
- Java vulnerabilities: Java is the language and runtime behind a large share of enterprise software.
- Apache Tomcat vulnerabilities: Apache Tomcat is an open-source Java servlet container and web server.
- Log4j vulnerabilities: Apache Log4j is the Java logging library at the center of the Log4Shell crisis.
- Angular vulnerabilities: Angular is Google's TypeScript web application framework (AngularJS is its legacy predecessor).
- Django vulnerabilities: Django is a high-level Python web framework.
- Drupal vulnerabilities: Drupal is an open-source content management system and framework.
- Joomla vulnerabilities: Joomla is an open-source content management system.
Frequently asked questions about Apache Struts vulnerabilities
What are the most critical Apache Struts vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Apache Struts CVEs include CVE-2020-17530 (CVSS 9.8), CVE-2017-9791 (CVSS 9.8), CVE-2017-5638 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.
Have Apache Struts vulnerabilities been exploited in real attacks?
Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 9 Apache Struts CVEs, including CVE-2020-17530, CVE-2017-9791, CVE-2017-5638. Treat these as the highest priority to patch.
How many vulnerabilities does Apache Struts have?
As of Nov 3, 2026 the National Vulnerability Database lists 99 CVEs for Apache Struts, with 17 rated critical by CVSS v3. 12 were published in the previous twelve months.
Which Apache Struts versions are still supported?
As of Nov 3, 2026, endoflife.date lists these Apache Struts releases as supported: 7, 6. Releases that are not listed are past their announced end of life.
How can I get alerted when a new Apache Struts CVE is published?
Add Apache Struts to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Apache Struts and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is Apache Struts secure?
Apache Struts is as secure as its patch level. NVD published 12 new Apache Struts CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2020-17530?
CVE-2020-17530 is a critical Apache Struts vulnerability with a CVSS score of 9.8, published Dec 11, 2020. 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.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: Apache Struts (opens in a new tab), release and support dates, checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.