Lucene search

K
osvGoogleOSV:GHSA-47QP-8V9G-39HP
HistoryMay 13, 2022 - 1:14 a.m.

Code injection in Apache Struts

2022-05-1301:14:26
Google
osv.dev
18
apache struts
code injection
vulnerability
defaultactionmapper

EPSS

0.971

Percentile

99.8%

The Struts 2 DefaultActionMapper supports a method for short-circuit navigation state changes by prefixing parameters with β€œaction:” or β€œredirect:”, followed by a desired navigational target expression. This mechanism was intended to help with attaching navigational information to buttons within forms.

In Struts 2 before 2.3.15.1 the information following β€œaction:”, β€œredirect:” or β€œredirectAction:” is not properly sanitized. Since said information will be evaluated as OGNL expression against the value stack, this introduces the possibility to inject server side code.