Miggo Logo

CVE-2013-1966: Arbitrary code execution in Apache Struts

9.3

CVSS Score

Basic Information

EPSS Score
0.99699%
Published
5/14/2022
Updated
12/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
AV:N/AC:M/Au:N/C:C/I:C/A:C
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.struts:struts2-coremaven>= 2.0.0, < 2.3.14.22.3.14.2
org.apache.struts.xwork:xwork-coremaven>= 2.0.0, < 2.3.14.22.3.14.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper OGNL expression evaluation in URL/A tag parameters. The patch added enableOGNLEvalExpression checks in OgnlUtil.compile() and modified signature to include context. The vulnerable versions' compile() method (without context parameter) lacked eval expression validation, and setValue() propagated this insecure compilation. The GHSA/CVE analysis explicitly links OGNL evaluation to RCE via these code paths.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*p**** Struts * ***or* *.*.**.* *llows r*mot* *tt**k*rs to *x**ut* *r*itr*ry O*NL *o** vi* * *r**t** r*qu*st t**t is not prop*rly **n*l** w**n usin* t** in*lu**P*r*ms *ttri*ut* in t** (*) URL or (*) * t**.

Reasoning

T** vuln*r**ility st*ms *rom improp*r O*NL *xpr*ssion *v*lu*tion in URL/* t** p*r*m*t*rs. T** p*t** ***** `*n**l*O*NL*v*l*xpr*ssion` ****ks in `O*nlUtil.*ompil*()` *n* mo*i*i** si*n*tur* to in*lu** *ont*xt. T** vuln*r**l* v*rsions' `*ompil*()` m*t*o*