CVE-2018-11776
Confirmed PUBLISHEDApache 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...
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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.
- CVE Published
- Aug 22, 2018
- Exploitation Reported
- Nov 03, 2021
- CVSS
- 8.1 High
- EPSS
- —
Affected Versions
| Vendor | Product | Version | Status |
|---|---|---|---|
| Apache Software Foundation |
Apache Struts
|
2.3 to 2.3.34 |
Affected |
| Apache Software Foundation |
Apache Struts
|
2.5 to 2.5.16 |
Affected |
CVE References
- 45367 exploit-db.com · Exploit https://www.exploit-db.com/exploits/45367/
- 45262 exploit-db.com · Exploit https://www.exploit-db.com/exploits/45262/
- 45260 exploit-db.com · Exploit https://www.exploit-db.com/exploits/45260/
- 1041888 securitytracker.com · VDB Entry http://www.securitytracker.com/id/1041888
- 105125 securityfocus.com · VDB Entry http://www.securityfocus.com/bid/105125
Show 14 more references
- 1041547 securitytracker.com · VDB Entry http://www.securitytracker.com/id/1041547
- [announce] 20200131 Apache Software Foundation Security Report: 2019 lists.apache.org · Mailing List https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e...
- oracle.com/technetwork/security-advisory/cpuoct2018-442... oracle.com · CVE Record http://www.oracle.com/technetwork/security-advisory/cpuoct2018-442829...
- oracle.com/security-alerts/cpujul2020.html oracle.com · CVE Record https://www.oracle.com/security-alerts/cpujul2020.html
- oracle.com/technetwork/security-advisory/cpujan2019-507... oracle.com · CVE Record https://www.oracle.com/technetwork/security-advisory/cpujan2019-50728...
- security.netapp.com/advisory/ntap-20181018-0002 security.netapp.com · CVE Record https://security.netapp.com/advisory/ntap-20181018-0002/
- cwiki.apache.org/confluence/display/WW/S2-057 cwiki.apache.org · CVE Record https://cwiki.apache.org/confluence/display/WW/S2-057
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0012 psirt.global.sonicwall.com · CVE Record https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0012
- oracle.com/technetwork/security-advisory/alert-cve-2018... oracle.com · CVE Record http://www.oracle.com/technetwork/security-advisory/alert-cve-2018-11...
- lgtm.com/blog/apache_struts_CVE-2018-11776 lgtm.com · CVE Record https://lgtm.com/blog/apache_struts_CVE-2018-11776
- security.netapp.com/advisory/ntap-20180822-0001 security.netapp.com · CVE Record https://security.netapp.com/advisory/ntap-20180822-0001/
- arubanetworks.com/assets/alert/ARUBA-PSA-2018-005.txt arubanetworks.com · CVE Record http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2018-005.txt
- GitHub — hook-s3c/CVE-2018-11776-Python-PoC github.com · CVE Record https://github.com/hook-s3c/CVE-2018-11776-Python-PoC
- packetstormsecurity.com/files/172830/Apache-Struts-Remote-Code-Execu... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/172830/Apache-Struts-Remote-Code...
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2021-11-03 00:00 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-11776.yaml | Apr 25, 2025 |
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/struts2_namespace_ognl.rb | Apr 28, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users.
CVSS Scores
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:C/I:C/A:C
Exploitation Status
Exploited in the wild
Recorded 2021-11-03 00:00:00 UTC · CISA
Proof of concept available
Recorded 2018-08-23 20:06:17 UTC · GitHub
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/struts2_namespace_ognl.rb | Apr 28, 2025 |
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-11776.yaml | Apr 25, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2023-06-21 15:08:39 UTC · 0 stars
github · Created 2020-06-12 18:46:29 UTC · 0 stars
github · Created 2019-10-08 23:01:49 UTC · 0 stars
Investigation of CVE-2018-11776 vulnerability that allows attackers to remotely execute code and gain control over Apache Struts-based applications.
github · Created 2018-09-06 23:49:20 UTC · 0 stars
github · Created 2018-08-28 23:48:14 UTC · 15 stars
A simple exploit for Apache Struts RCE S2-057 (CVE-2018-11776)
github · Created 2018-08-25 12:45:15 UTC · 3 stars
Environment for CVE-2018-11776 / S2-057 (Apache Struts 2)
github · Created 2018-08-25 03:06:30 UTC · 10 stars
Vulnerable docker container for CVE-2018-11776
github · Created 2018-08-25 01:53:30 UTC · 301 stars
An exploit for Apache Struts CVE-2018-11776
github · Created 2018-08-24 11:53:02 UTC · 125 stars
Working Python test and PoC for CVE-2018-11776, includes Docker lab
github · Created 2018-08-24 03:01:29 UTC · 10 stars
CVE-2018-11776(S2-057) EXPLOIT CODE
github · Created 2018-08-23 20:06:17 UTC · 15 stars
Creating a vulnerable environment and the PoC
nuclei · Created Unknown
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
15:02 UTC about 1 year ago15:02 UTC · about 1 year ago
Metasploit module available
Exploit module available
-
00:00 UTC about 1 year ago00:00 UTC · about 1 year ago
Nuclei template available
Scanner coverage available
-
00:00 UTC over 4 years ago00:00 UTC · over 4 years ago
Added to CISA KEV
Listed in the CISA Known Exploited Vulnerabilities catalog
-
20:06 UTC almost 8 years ago20:06 UTC · almost 8 years ago
Public PoC available
Public proof-of-concept code published
-
13:00 UTC almost 8 years ago13:00 UTC · almost 8 years ago
CVE published
Vulnerability disclosed publicly
-
00:00 UTC about 8 years ago00:00 UTC · about 8 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2018-11776
{
"cve_id": "CVE-2018-11776",
"title": "Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16 suffer from possible R...",
"affected_vendor": "Apache Software Foundation",
"affected_product": "Apache Struts",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "Confirmed",
"cvss_score": 8.1,
"epss_score": null,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}