High severity7.5NVD Advisory· Published Jul 4, 2016· Updated May 6, 2026
CVE-2016-4431
CVE-2016-4431
Description
Apache Struts 2 2.3.20 through 2.3.28.1 allows remote attackers to bypass intended access restrictions and conduct redirection attacks by leveraging a default method.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.struts:struts-parentMaven | >= 2.3.20, < 2.3.29 | 2.3.29 |
Patches
1eccc31ebce54Improves validation RegEx
2 files changed · +2 −1
xwork-core/src/main/java/com/opensymphony/xwork2/validator/validators/URLValidator.java+1 −1 modified@@ -82,7 +82,7 @@ public String getUrlRegex() { "|((\\d|[1-9]\\d|1\\d{2}|2[0-4][0-9]|25[0-5])\\.){3}" + "(\\d|[1-9]\\d|1\\d{2}|2[0-4][0-9]|25[0-5])" + ")(:\\d+)?" + - ")(((\\/+([a-z0-9$_\\.\\+!\\*\\'\\(\\),;:@&=-]|%[0-9a-f]{2})*)*" + + ")(((\\/{0,1}([a-z0-9$_\\.\\+!\\*\\'\\(\\),;:@&=-]|%[0-9a-f]{2})*)*" + "(\\?([a-z0-9$_\\.\\+!\\*\\'\\(\\),;:@&=-]|%[0-9a-f]{2})*)" + "?)?)?" + "(#([a-z0-9$_\\.\\+!\\*\\'\\(\\),;:@&=-]|%[0-9a-f]{2})*)?" +
xwork-core/src/test/java/com/opensymphony/xwork2/validator/URLValidatorTest.java+1 −0 modified@@ -139,6 +139,7 @@ public void testValidUrlWithDefaultRegex() throws Exception { assertFalse(pattern.matcher("").matches()); assertFalse(pattern.matcher(" ").matches()); assertFalse(pattern.matcher("no url").matches()); + assertFalse(pattern.matcher("http://example.com////////////////////////////////////////////////////////////////////////////////////??").matches()); assertTrue(pattern.matcher("http://www.opensymphony.com").matches()); assertTrue(pattern.matcher("https://www.opensymphony.com").matches());
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
12- jvn.jp/en/jp/JVN45093481/index.htmlnvdVendor AdvisoryWEB
- jvndb.jvn.jp/jvndb/JVNDB-2016-000113nvdVDB EntryVendor AdvisoryWEB
- www-01.ibm.com/support/docview.wssnvdThird Party AdvisoryWEB
- www-01.ibm.com/support/docview.wssnvdThird Party AdvisoryWEB
- github.com/advisories/GHSA-vq79-mgpx-2wx4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2016-4431ghsaADVISORY
- struts.apache.org/docs/s2-040.htmlnvdVendor AdvisoryWEB
- www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.htmlnvdWEB
- bugzilla.redhat.com/show_bug.cginvdIssue TrackingWEB
- github.com/apache/struts/commit/eccc31ebce5430f9e91b9684c63eaaf885e603f9ghsaWEB
- web.archive.org/web/20210123145002/http://www.securityfocus.com/bid/91284ghsaWEB
- www.securityfocus.com/bid/91284nvd
News mentions
0No linked articles in our index yet.