CVE-2018-11776
Apache Struts vulnerable to remote command execution (RCE) due to improper input validation
Also known as EDB-45260, EDB-45262, EDB-45367, GHSA-cr6j-3jp9-rw65
Mitigation
- Upgrade org.apache.struts:struts2-core to one of 2.3.35, 2.5.17 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.apache.struts:struts2-core (>= 2.0.4, < 2.3.35)
- Anyone running Apache Software Foundation Apache Struts 2.3 to 2.3.34; 2.5 to 2.5.16
Vulnerability facts
- Affected
- org.apache.struts:struts2-core >= 2.0.4, < 2.3.35
- Fixed in
- 2.3.35, 2.5.17
- Exploited in the wild
- Yes: in CISA KEV since 2021-11-03; federal due date 2022-05-03
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 100.00% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-20
- Modified
Description
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, its upper package have no or wildcard namespace.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.struts:struts2-core | >= 2.0.4, < 2.3.35 | 2.3.35, 2.5.17 | osv |
| Apache Software Foundation Apache Struts | 2.3 to 2.3.34; 2.5 to 2.5.16 | — | cvelist |
Timeline
- 2018-08-22 Published
- 2021-11-03 Added to CISA KEV (exploited in the wild)
- 2022-05-03 CISA remediation due date for US federal agencies
- 2026-06-17 Last modified
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2018-11776. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-11776.md Affected: org.apache.struts:struts2-core >= 2.0.4, < 2.3.35 Fixed in: 2.3.35, 2.5.17 Steps: 1. Search this machine and project for org.apache.struts:struts2-core (Maven), Apache Software Foundation Apache Struts: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
- http://www.oracle.com/technetwork/security-advisory/alert-cve-2018-11776-5072787.html
- https://github.com/apache/struts/commit/6e87474f9ad0549f07dd2c37d50a9ccd0977c6e
Exploits and PoCs
- https://www.exploit-db.com/exploits/45367/
- https://www.exploit-db.com/exploits/45262/
- https://www.exploit-db.com/exploits/45260/
- https://lgtm.com/blog/apache_struts_CVE-2018-11776
- https://github.com/hook-s3c/CVE-2018-11776-Python-PoC
- http://packetstormsecurity.com/files/172830/Apache-Struts-Remote-Code-Execution.html
- https://www.exploit-db.com/exploits/45367
- https://www.exploit-db.com/exploits/45262
- https://www.exploit-db.com/exploits/45260
Other
- http://www.securitytracker.com/id/1041888
- http://www.securityfocus.com/bid/105125
- http://www.securitytracker.com/id/1041547
- https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c%40%3Cannounce.apache.org%3E
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://security.netapp.com/advisory/ntap-20181018-0002/
- https://cwiki.apache.org/confluence/display/WW/S2-057
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0012
- https://security.netapp.com/advisory/ntap-20180822-0001/
- http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2018-005.txt
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-11776
- https://web.archive.org/web/20201208145803/https://securitytracker.com/id/1041547
- https://web.archive.org/web/20200807025819/http://www.securitytracker.com/id/1041888
- https://web.archive.org/web/20180822160726/http://www.securityfocus.com/bid/105125
- https://security.netapp.com/advisory/ntap-20181018-0002
- https://security.netapp.com/advisory/ntap-20180822-0001
- https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c@%3Cannounce.apache.org%3E
- https://github.com/apache/struts
FAQ
Is CVE-2018-11776 being exploited?
Yes. CISA lists CVE-2018-11776 in its Known Exploited Vulnerabilities catalog since 2021-11-03, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 100.00% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-11776?
High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2018-11776?
org.apache.struts:struts2-core >= 2.0.4, < 2.3.35.
Is there a fix for CVE-2018-11776?
Yes. Fixed in 2.3.35, 2.5.17. Upgrade org.apache.struts:struts2-core to one of 2.3.35, 2.5.17 (or later in the same release line).
How do I check if I'm affected by CVE-2018-11776?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.