CVE-2010-1870

NUCLEI

Apache Struts 2.0.0-2.1.8.1 - Remote Code Execution via OGNL Context Variable Manipulation

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 3 public exploits for CVE-2010-1870. PoCs published by Metasploit, Meder Kydyraliev, bannedit, Meder Kydyraliev, including Metasploit module exploits/multi/http/struts_code_exec. A Nuclei detection template is also available.

AI-analyzed exploit summary This Metasploit module exploits CVE-2010-1870, a remote command execution vulnerability in Apache Struts < 2.2.0. It leverages OGNL expression injection to bypass security restrictions and execute arbitrary commands on Windows or Linux targets.

Description

The OGNL extensive expression evaluation capability in XWork in Struts 2.0.0 through 2.1.8.1, as used in Atlassian Fisheye, Crucible, and possibly other products, uses a permissive whitelist, which allows remote attackers to modify server-side context objects and bypass the "#" protection mechanism in ParameterInterceptors via the (1) #context, (2) #_memberAccess, (3) #root, (4) #this, (5) #_typeResolver, (6) #_classResolver, (7) #_traceEvaluations, (8) #_lastEvaluation, (9) #_keepLastEvaluation, and possibly other OGNL context variables, a different vulnerability than CVE-2008-6504.

Exploits (3)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotemultiple
https://www.exploit-db.com/exploits/17691

This Metasploit module exploits CVE-2010-1870, a remote command execution vulnerability in Apache Struts < 2.2.0. It leverages OGNL expression injection to bypass security restrictions and execute arbitrary commands on Windows or Linux targets.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Struts < 2.2.0
No auth needed
Prerequisites: Network access to the target Struts application · Vulnerable Struts version (< 2.2.0)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC
by Meder Kydyraliev · textremotemultiple
https://www.exploit-db.com/exploits/14360

This exploit leverages OGNL injection in Struts2/XWork to bypass security restrictions and execute arbitrary Java code. It manipulates context variables to enable static method access and disable method execution denial, leading to remote command execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Struts2 (versions before 2.2.0)
No auth needed
Prerequisites: Target application using Struts2 with ParametersInterceptor enabled (default configuration)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC GOOD
by bannedit, Meder Kydyraliev · rubypocwin
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/struts_code_exec.rb

This Metasploit module exploits CVE-2010-1870, a remote command execution vulnerability in Apache Struts < 2.2.0 by leveraging OGNL expression injection to bypass security restrictions and execute arbitrary Java code.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache Struts < 2.2.0
No auth needed
Prerequisites: Access to a vulnerable Apache Struts application · Network connectivity to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

ListSERV Maestro <= 9.0-8 RCE
MEDIUMby b0yd
Shodan: http.html:"apache struts" || http.title:"struts2 showcase" || http.html:"struts problem report"
FOFA: body="struts problem report" || title="struts2 showcase" || body="apache struts"

References (12)

Core 12
Core References
Exploit exploit x_refsource_exploit-db
http://www.exploit-db.com/exploits/14360
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/41592
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/66280
Various Sources x_refsource_confirm
http://struts.apache.org/2.2.1/docs/s2-005.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/59110
Mailing List mailing-list x_refsource_fulldisc
http://seclists.org/fulldisclosure/2010/Jul/183
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/8345
Mailing List mailing-list x_refsource_fulldisc
http://seclists.org/fulldisclosure/2020/Oct/23

Scores

EPSS 0.9253
EPSS Percentile 99.8%

Details

Status published
Products (27)
apache/struts 2.0.0
apache/struts 2.0.1
apache/struts 2.0.2
apache/struts 2.0.3
apache/struts 2.0.4
apache/struts 2.0.5
apache/struts 2.0.6
apache/struts 2.0.7
apache/struts 2.0.8
apache/struts 2.0.9
... and 17 more
Published Aug 17, 2010
Tracked Since Feb 18, 2026