GrepBoard/Manuals
605 manuals ·

Apache Struts 6.13.0 and 7.5.0: S2-086 and 9 More Advisories

·Tested on Maven 3.9.9 · Temurin 17 · struts2-core 6.12.0 · 6.13.0 · 7.5.1 sample project (vulnerable behavior not reproduced)·Test scope ↓·7 steps

Check which of the 10 Struts advisories (S2-079 to S2-088) apply to you, then confirm the 6.13.0 or 7.5.0 upgrade in both the build and the deployed WAR.

If you run Struts 6.0.0 to 6.12.0 or 7.0.0 to 7.4.0, your version is in the affected range of most of the 10 advisories published on 2026-11-30 (S2-079 to S2-088). Whether each one applies depends on the features you use, and S2-088 remains in 6.13.0. This page picks the version to move to and checks that the version changed both in the build file and in the deployed WAR. The vulnerable behavior was not reproduced, and each vulnerability is described only as far as the Apache advisories describe it. Official sources: Struts announcements 2026 · S2-086 · oss-security 2026-11-30.

[1] Read the 10 advisories as a table. Affected versions are copied from the advisories; fixed versions are the ones the advisories recommend.

Advisory · CVESeverityApplies whenAffected versionsFixed in
S2-079 · CVE-2026-133649lowAn HTTP method restriction is declared only on the action class, and the action configuration names the method to invoke6.9.06.10.0
S2-080 · CVE-2026-133636lowYou rely on the Fetch Metadata Interceptor in the default interceptor stack as a defence against CSRF and cross-origin information leaks6.0.0 to 6.12.0, 7.0.0 to 7.4.06.13.0, 7.5.0
S2-081 · CVE-2026-133637moderateThe Bean Validation plugin is used. Possible remote code execution2.5.0 to 2.5.33, 6.0.0 to 6.12.0, 7.0.0 to 7.4.0 (7 only when the OGNL allowlist is disabled)6.13.0, 7.5.0
S2-082 · CVE-2026-133638moderateThe Execute and Wait Interceptor is used together with the Token Interceptor or Token Session Interceptor2.1.2 to 2.3.37, 2.5.0 to 2.5.33, 6.0.0 to 6.12.0, 7.0.0 to 7.4.06.13.0, 7.5.0
S2-083 · CVE-2026-133639lowUI tags are rendered with the Javatemplates plugin (default FreeMarker templates are not affected)2.2.1 to 2.3.37, 2.5.0 to 2.5.33, 6.0.0 to 6.12.0, 7.0.0 to 7.4.06.13.0, 7.5.0
S2-084 · CVE-2026-133640moderateA request value is bound to a BigDecimal property and rendered as text by the property tag or a form field (the fix for CVE-2026-104712 was incomplete)2.5.12 to 2.5.33, 6.0.0 to 6.12.0, 7.0.0 to 7.4.06.13.0, 7.5.0
S2-085 · CVE-2026-133641moderateA request value is bound to a BigDecimal property and used by the number tag or as a localized message argument2.5.12 to 2.5.33, 6.0.0 to 6.12.0, 7.0.0 to 7.4.06.13.0, 7.5.0
S2-086 · CVE-2026-133642importantAccess to actions is restricted in front of Struts by a security-constraint, a URL-pattern filter or a proxy rule2.1.2 to 2.3.37, 2.5.0 to 2.5.33, 6.0.0 to 6.12.0, 7.0.0 to 7.4.06.13.0, 7.5.0
S2-087 · CVE-2026-133643lowThe doubleselect tag is used with the doubleMultiple attribute2.1.8 to 2.3.37, 2.5.0 to 2.5.33, 6.0.0 to 6.12.0, 7.0.0 to 7.4.06.13.0, 7.5.0
S2-088 · CVE-2026-133644lowAn HTTP method annotation (@HttpPost and similar) is on the action's default method, and the mapping does not name that method6.2.0 to 6.13.0, 7.0.0 to 7.4.07.5.0 only

S2-088 is not fixed in 6.13.0. The advisory says the 6.x line does not carry the fix and gives a workaround, covered in [7]. So "all 10 are fixed by 6.13.0 and 7.5.0" is wrong. One advisory remains open on 6.13.0.

The S2-086 advisory says there is no configuration-only mitigation. An application that authorizes inside the action (an interceptor, for example) is not affected by the bypass, but the advisory still says to upgrade. The S2-081 remote code execution risk exists only with the Bean Validation plugin, and Struts 7 is not affected in its default configuration because the OGNL allowlist is on by default.

[2] Choose the target version.

Your versionMove toWhat is left
6.0.0 to 6.12.06.13.0S2-088, if it applies to you ([7])
6.13.0Stay and check [7]S2-088, if it applies to you ([7])
7.0.0 to 7.4.07.5.0 or laterNothing from these 10
2.3.x and 2.5.xNo fixed releaseEnd-of-life versions

S2-088 affects versions from 6.2.0. Versions 6.0.x and 6.1.x are therefore outside its range, but upgrading them to 6.13.0 puts them in it. You still need 6.13.0 for the other fixes, so check [7] as part of the upgrade. Moving to 6.13.0 also resolves S2-079, which affects only 6.9.0.

This does not mean 6.x users should switch to 7.x at once. Struts 7 requires Java 17 and Jakarta Servlet API 6 at least, and the migration is large; for example, the com.opensymphony.xwork2 package became org.apache.struts2 (6.x to 7.x migration guide). Struts 6 still runs on Servlet API 3.1 and Java 8, so moving to 6.13.0 and working around S2-088 is a valid path.

If you move to 7.x, pick 7.5.1. It is not a security release; it is a fast-track fix that keeps leading and trailing whitespace in String request parameters. The 7.5.1 release notes list only this fix and its test as changes from 7.5.0, and the advisories ask for 7.5.0 "at least".

The advisories list 2.3.x and 2.5.x as affected and mark them end-of-life. The end-of-life page lists 2.5.x as ended on 2023-10-30 and 2.3.x on 2019-09-12, and says end-of-life branches get no security patches from the project. Maven Central's struts2-core listing also had no 2.5.x release above 2.5.33. The upgrade steps below are for 6.x and 7.x.

[3] See which versions the build resolves. The sample project declares struts2-core and the Bean Validation plugin with one ${struts.version}.

console
$ grep -n "<struts.version>" pom.xml
output
9:    <struts.version>6.12.0</struts.version>
console
$ mvn -B dependency:tree -Dincludes=org.apache.struts | grep org.apache.struts
output
[INFO] +- org.apache.struts:struts2-core:jar:6.12.0:compile[INFO] \- org.apache.struts:struts2-bean-validation-plugin:jar:6.12.0:compile

Changing that one line to 6.13.0 moves both.

console
$ sed -i 's|<struts.version>6.12.0<|<struts.version>6.13.0<|' pom.xml$ mvn -B dependency:tree -Dincludes=org.apache.struts | grep org.apache.struts
output
[INFO] +- org.apache.struts:struts2-core:jar:6.13.0:compile[INFO] \- org.apache.struts:struts2-bean-validation-plugin:jar:6.13.0:compile

If a project pins plugin versions separately, struts2-core can move while a plugin stays behind. Here is a copy (pom-mixed.xml) with only the plugin line pinned to 6.12.0.

console
$ sed '/struts2-bean-validation-plugin/{n;s|${struts.version}|6.12.0|}' pom.xml > pom-mixed.xml$ mvn -B -f pom-mixed.xml dependency:tree -Dincludes=org.apache.struts | grep org.apache.struts
output
[INFO] +- org.apache.struts:struts2-core:jar:6.13.0:compile[INFO] \- org.apache.struts:struts2-bean-validation-plugin:jar:6.12.0:compile

Do not stop at the struts2-core line; check that every line starting with org.apache.struts shows the same version. Gradle was not tested.

[4] Check the jar versions inside the deployed WAR. Editing pom.xml does not change a WAR that is already deployed. File names can change, so this small script reads pom.properties inside each jar instead of trusting the name.

struts-jars.sh
#!/bin/bash# usage: bash struts-jars.sh app.war# exit 0: checked, 2: no result (some files could not be read)[ -f "$1" ] || { echo "no result: WAR not found"; exit 2; }war=$(realpath "$1"); w=$(mktemp -d) || exit 2trap 'rm -rf -- "$w"' EXITcd "$w" || exit 2jar xf "$war" WEB-INF/lib >/dev/null 2>&1 || { echo "no result: WAR could not be read"; exit 2; }compgen -G 'WEB-INF/lib/*.jar' >/dev/null || { echo "no result: no jars in WEB-INF/lib"; exit 2; }found=0; status=0for j in WEB-INF/lib/*.jar; do  n=$(basename "$j")  if ! list=$(jar tf "$j" 2>/dev/null); then    echo "$n  no result: jar could not be read"; status=2; continue  fi  props=$(grep '^META-INF/maven/org\.apache\.struts/.*/pom\.properties$' <<< "$list")  if [ -n "$props" ]; then    found=1    while IFS= read -r p; do      jar xf "$j" "$p"      echo "$n  $(sed -n 's/^artifactId=//p' "$p" | tr -d '\r') $(sed -n 's/^version=//p' "$p" | tr -d '\r')"    done <<< "$props"  elif grep -q '^org/apache/struts2/' <<< "$list"; then    found=1; echo "$n  struts classes, version unknown"  fidone[ "$found" = 1 ] || echo "no Struts jars found by this check (Struts may still be elsewhere)"exit "$status"

The script needs the jar command, so run it where a JDK is installed. If it cannot read the WAR or a jar, it prints no result and exits with code 2. Exit code 0 means that it read every file it checked, not that the version is safe.

pom.xml now says 6.13.0, but the WAR on the server is still 6.12.0.

console
$ bash struts-jars.sh deployed/app.war
output
struts2-bean-validation-plugin-6.12.0.jar  struts2-bean-validation-plugin 6.12.0struts2-core-6.12.0.jar  struts2-core 6.12.0

[5] Rebuild and deploy. In the sample, overwriting deployed/app.war stands in for deployment. On a real server, keep the previous WAR aside before replacing it so you can go back if something breaks. Then run the same check.

console
$ mvn -q package && cp target/app-1.0.war deployed/app.war$ bash struts-jars.sh deployed/app.war
output
struts2-bean-validation-plugin-6.13.0.jar  struts2-bean-validation-plugin 6.13.0struts2-core-6.13.0.jar  struts2-core 6.13.0

The same method works for 7.x. Resolving the sample with -Dstruts.version=7.5.1 put both modules on 7.5.1 (the Jakarta migration itself was not tested).

console
$ mvn -B -Dstruts.version=7.5.1 dependency:tree -Dincludes=org.apache.struts | grep org.apache.struts
output
[INFO] +- org.apache.struts:struts2-core:jar:7.5.1:compile[INFO] \- org.apache.struts:struts2-bean-validation-plugin:jar:7.5.1:compile

[6] Look for behavior that changes after the upgrade. Only what the advisories list under "Backward compatibility" is repeated here.

  • S2-086: actions are now mapped from the servlet path and path info the container reports. The REST plugin no longer recognises the ;edit URL form; use the documented /edit form. struts.mapper.editMethodName no longer affects URL mapping and still selects the result rendered when an update fails validation.
  • S2-081: a message produced by the validation provider is now shown as text, and only a message declared as a key in the application's message resources is resolved. An application that relied on a provider message being resolved as a key must declare an explicit key.
  • S2-088 (7.5.0): an HTTP method restriction inherited from a parent class or interface is now enforced, and the default interceptor stacks of the REST and Bean Validation plugins enforce method restrictions. Requests that passed before can be rejected.

To find ;edit links in your sources:

console
$ grep -rn ";edit" src/main
output
src/main/webapp/links.html:1:<a href="/orders/5;edit">old form</a>

[7] Work around S2-088 on 6.x. Declare the HTTP method annotation on the action class instead of on the method. The advisory says a restriction on the class is enforced as documented, and on 6.9.0 and later 6.x releases, naming the method with the mapping's method attribute is enforced too. On 6.9.0 a restriction declared only on the class may not be enforced (S2-079), so upgrade to 6.13.0 first. The advisory notes that a public report with a reproduction exists. If you can move to 7.5.0 or later, no workaround is needed.

Where checks go wrong

  • Raising only pom.xml and not deploying leaves the server's WAR unchanged. In [4], pom.xml said 6.13.0 while the deployed file said 6.12.0.
  • struts2-core can move while a plugin stays on the old version, as the copy in [3] showed. The advisories do not say which jar contains each fix, so match the plugin version to the core version.
  • A renamed jar (framework.jar) was still read as struts2-core 6.13.0 by the script, while a name-only grep struts2 found just the plugin.
  • A jar with its pom.properties removed printed only struts classes, version unknown. That is "version unknown", not "safe".
  • The script looks only at WEB-INF/lib in the WAR. Shared library folders on the server, classpaths outside the WAR and Struts bundled into another jar were not tested. Even no Struts jars found by this check does not mean Struts is absent; it means this method found nothing.
  • The 10 in the title is the number of advisories. Not every fix is in both versions: S2-079 was fixed in 6.10.0 and S2-088 only in 7.5.0.

#struts#s2-086#cve#maven