CRITICAL 9.8

CVE-2011-3923

Struts ParameterInterceptor vulnerability allows remote command execution

Description

Regular expression in ParametersInterceptor matches top['foo'](0) as a valid expression, which OGNL treats as (top['foo'])(0) and evaluates the value of 'foo' action parameter as an OGNL expression. This lets malicious users put arbitrary OGNL statements into any String variable exposed by an action and have it evaluated as an OGNL expression and since OGNL statement is in HTTP parameter value attacker can use blacklisted characters (e.g. #) to disable method execution and execute arbitrary methods, bypassing the ParametersInterceptor and OGNL library protections.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.struts » struts2-core
>= 2.0.0, < 2.3.1.2
2.3.1.2

Blast radius

1affected artifacts
24affected versions
198dependent artifacts (est.)
1,658dependent versions

38% of the dependent artifacts (76) still pull an affected version in their latest release.

DepthDependent versions
Direct
709
2 hops
678
3 hops
267
4 hops
4

Most used dependents

Computed from the dependency graph of build 20261205.2030 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Webbugzilla.redhat.com
Webexchange.xforce.ibmcloud.com
Websecurity-tracker.debian.org
Webweb.archive.org
Webblog.o0o.nu
Webstruts.apache.org