ZeroHour

CVE-2018-11776

KEV PoC ×5mass

Apache Struts Remote Code Execution via Missing or Wildcard Namespace

CISA: Apache Struts Remote Code Execution Vulnerability

CVSS 3.1
8.1 high
EPSS
100%p100
Published
()
KEV added
AI analysis

Apache Struts 2 contains an improper input validation flaw (CWE-20) that allows unauthenticated remote code execution when an attacker-controlled namespace (for example, part of the request URL path) is evaluated as an OGNL expression on the server. It is triggered under two circumstances: (1) the alwaysSelectFullNamespace option is true and a result defined in the configuration has no namespace while its parent package's namespace is unset or a wildcard, or (2) a URL tag in a template has no namespace under the same parent-package conditions. An attacker who can reach an application in one of these configurations gains arbitrary code execution with the privileges of the application server, so any organization running affected Struts 2 releases (2.3.7-2.3.34 and 2.5-2.5.16) in such configurations is exposed. CISA added the flaw to its Known Exploited Vulnerabilities catalog on 2021-11-03, confirming exploitation in the wild (ransomware use unknown), and EPSS currently assigns a 100% probability of exploitation within 30 days. CVSS is not yet scored in this feed, but the KEV listing and EPSS signal indicate urgent patching priority.

What to do: Upgrade Apache Struts to 2.3.35 or 2.5.17 (or later) on all applications, prioritizing internet-facing ones, per vendor instructions. If upgrading is not immediately possible, set alwaysSelectFullNamespace to false and ensure every result and URL tag specifies an explicit, non-wildcard namespace. Audit configurations, especially applications using the Convention Plugin or wildcard namespaces, for the vulnerable conditions and review web server logs for signs of OGNL injection in namespace values.

Affected
Apache Struts 22.3.7-2.3.34 and 2.5-2.5.16 (fixed in 2.3.35 and 2.5.17, per vendor advisory)
Estimated exposure
massmillions of end users behind on the order of tens of thousands of internet-exposed Apache Struts deployments — Struts is among the most widely deployed Java web frameworks in enterprise and government applications, and 2018-era internet-wide scans found on the order of tens of thousands of exposed Struts servers, with the exploitable subset further…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

CISA Known Exploited Vulnerability
Affected
Apache Struts
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
apachenetapporacle
Products
struts, active iq unified manager, oncommand insight, oncommand workflow automation, snapcenter, communications policy management, enterprise manager base platform, mysql enterprise monitor
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news