Skip to content
OpenAdvisories
Critical · 9.8 Known exploited Public exploit CVE-2012-0391 EUVD-2022-2464GHSA-4wrr-9h5r-m92w

Apache Struts Remote Java Code Execution

Published Jan 8, 2012 · Updated Oct 22, 2025 · Assigned by mitre

Description

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary Java code via a crafted parameter.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 2

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.struts:struts2-core < 2.2.3.1 2.2.3.1 GHSA-4wrr-9h5r-m92w
Maven org.apache.struts.xwork:xwork-core < 2.2.3.1 2.2.3.1 GHSA-4wrr-9h5r-m92w

References