Apache Struts security update fixes critical vulnerabilities

The vulnerabilities can allow attackers to execute rogue code on the server or redirect users to arbitrary locations

The Apache Software Foundation has released Struts, a security update for its popular Java Web application development framework that addresses two vulnerabilities, including a critical one that could allow remote attackers to execute arbitrary code on the server.

Struts version has become the "General Availability" release, the designation for the project's highest quality version available to users.

The new release addresses two vulnerabilities that stem from issues in the implementation of the DefaultActionMapper class and its "action:", "redirect:" and "redirectAction:" prefixes in particular.

"In Struts 2 before the information following 'action:', 'redirect:' or 'redirectAction:' is not properly sanitized," the Apache Struts developers said in an advisory. "Since said information will be evaluated as OGNL [Object Graph Navigation Language] expression against the value stack, this introduces the possibility to inject server side code."

Attackers can also manipulate the information following "redirect:" or "redirectAction:" in order to redirect users to an arbitrary location.

In order to fix these two vulnerabilities, the Apache Struts developers have added code that sanitizes the "action:"-prefixed information and have removed support for the "redirect:" and "redirectAction:" prefixes.

Applications that use the retired prefixes will no longer work properly after upgrading to Struts or later versions. The Struts developers recommend replacing them in the code with fixed navigation rules.

The new Struts version also fixes a server path information leakage issue and adds improved input sanitizing for the file upload example.

"After a fileupload action, if the result jsp contains a <s:file> tag the value attribute is filled in with the server path where the file was saved," the developers said. "This discloses file system information about the server."

Join the PC World newsletter!

Error: Please check your email address.

Tags patchessecuritypatch managementApache Software FoundationExploits / vulnerabilities

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Lucian Constantin

IDG News Service
Show Comments

Most Popular Reviews

Deals on PC World

Deals on PC World


Latest News Articles


GGG Evaluation Team

Kathy Cassidy


First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni


For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Steph Mundell


The Fujitsu LifeBook UH574 allowed for great mobility without being obnoxiously heavy or clunky. Its twelve hours of battery life did not disappoint.

Andrew Mitsi


The screen was particularly good. It is bright and visible from most angles, however heat is an issue, particularly around the Windows button on the front, and on the back where the battery housing is located.

Simon Harriott


My first impression after unboxing the Q702 is that it is a nice looking unit. Styling is somewhat minimalist but very effective. The tablet part, once detached, has a nice weight, and no buttons or switches are located in awkward or intrusive positions.


Latest Jobs


Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?