CVE DatabaseCVE-2018-11776
한국어 권고문 →
CVE-2018-117768.1/HIGHCISA KEV

Apache Struts 2 Remote Code Execution (RCE) Vulnerability Analysis and Mitigation Guide (CVE-2018-11776)

⚡ Jump to Patch
Affected Vendors
apache
Affected Components
struts
Published Date
2018-08-22
CVSS v3.1
8.1
HIGH
EPSS (30d)
100.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16

Impact

Unauthenticated remote attackers can execute arbitrary OS commands with system privileges via crafted HTTP requests

Mitigation

Immediately upgrade Apache Struts to patched versions (2.3.35, 2.5.17, or higher) and review namespace configurations.

Affected Products & Version Scope

Apache Struts 2.3 to 2.3.34 and 2.5 to 2.5.16, under configurations where alwaysSelectFullNamespace is enabled or action/url tags lack explicit value/action attributes

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The primary remediation is upgrading to Apache Struts 2.3.35 or 2.5.17 (or later). Update your project's build configuration, such as pom.xml for Maven-based projects:

xml
<!-- Update dependency in Maven pom.xml -->
<dependency>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts2-core</artifactId>
    <version>2.5.17</version> <!-- Or latest stable version -->
</dependency>

2. Temporary Workaround & Hardening Configuration

If an immediate upgrade is not feasible, disable the alwaysSelectFullNamespace setting in your struts.xml configuration file to mitigate the attack vector.

xml
<!-- Disable alwaysSelectFullNamespace in struts.xml -->
<struts>
    <constant name='struts.mapper.alwaysSelectFullNamespace' value='false' />
</struts>

3. Log Audit & IoC Verification Commands

Use the following command to scan web server access logs for potential OGNL injection patterns, looking for keywords like java.lang.Runtime or OGNL syntax characters:

bash
# Scan Apache/Tomcat access logs for OGNL injection attempts
grep -Ei '(#|%7b|%23).*(java.lang.Runtime|ProcessBuilder|ognl)' /var/log/apache2/access.log /var/log/tomcat*/localhost_access_log*.txt 2>/dev/null
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Upgrade Apache Struts 2 to version 2.3.35 or 2.5.17+ immediately and deploy WAF rules to block OGNL injection patterns.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2018-11776) resides in the core OGNL (Object-Graph Navigation Language) expression evaluation engine of the Apache Struts 2 framework. When specific configuration conditions are met—such as the alwaysSelectFullNamespace flag being set to true (either manually or via the Convention Plugin)—the framework fails to properly sanitize namespace values extracted from the request URL before evaluating them as OGNL expressions.

2. Exploitation Mechanics & Attack Scenario

An attacker crafts a malicious HTTP request containing an OGNL payload (utilizing Java reflection to invoke system commands) embedded within the URL path. If the target action has no defined namespace or uses a wildcard namespace, Struts dynamically parses the namespace from the URL. This parsed string is then passed directly to the OGNL engine for evaluation, leading to arbitrary code execution under the security context of the Web Application Server (WAS).

3. Infrastructure & Business Impact

As a high-severity vulnerability listed in the CISA KEV catalog with an EPSS score of 1.0, this flaw is actively and heavily exploited in the wild. Successful exploitation grants attackers complete control over the host system without authentication, potentially leading to data exfiltration, lateral movement within the internal network, deployment of ransomware, or establishment of persistent web shells.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2018-11776)

FAQ

Q1. How critical is CVE-2018-11776 and is it actively exploited in the wild?

CVE-2018-11776 is rated CVSS 8.1 (HIGH) with a 30-day EPSS exploitation probability of 100.0%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2018-11776?

Primary impacted vendors include apache across struts. Scope summary: Apache Struts 2.3 to 2.3.34 and 2.5 to 2.5.16, under configurations where alwaysSelectFullNamespace is enabled or action/url tags lack explicit value/action attributes

Q3. What temporary mitigations or workarounds exist for CVE-2018-11776 before patching?

[Mitigation] Immediately upgrade Apache Struts to patched versions (2.3.35, 2.5.17, or higher) and review namespace configurations. Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2018-11776

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (apache)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2018-11776 Apache Struts 2 Remote Code Execution (RCE) Vulnerability Analysis and Mitigation Guide (CVE-2018-11776) (CVSS 8.1) - Patch & Workaround | CVE Pulse