CVE-2018-11776
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.
What to do
This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2021-11-03). If you run an affected version, patch or mitigate now.
Fixed builds are available from Maven: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 14.04 | libstruts1.2-java | Not affected vulnerable_code_not_present | ||
| Maven library | org.apache.struts:struts2-core | Fixed | 2.5.17 | GHSA-cr6j-3jp9-rw65 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Struts: affected: 2.3 to 2.3.34, 2.5 to 2.5.16
References
- http://www.securitytracker.com/id/1041888
- https://www.exploit-db.com/exploits/45367/
- https://www.exploit-db.com/exploits/45262/
- http://www.securityfocus.com/bid/105125
- http://www.securitytracker.com/id/1041547
- https://www.exploit-db.com/exploits/45260/
- https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c%40%3Cannounce.apache.org%3E
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.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
- http://www.oracle.com/technetwork/security-advisory/alert-cve-2018-11776-5072787.html
- https://lgtm.com/blog/apache_struts_CVE-2018-11776
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.