CVE-2016-8738: Apache Struts vulnerable to possible DoS attack when using URLValidator
5.9
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.68475%
CWE
Published
5/14/2022
Updated
1/4/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.struts:struts2-core | maven | >= 2.5.0, < 2.5.13 | 2.5.13 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input validation in the URLValidator's validate
method. The patch explicitly adds .trim()
to the input value before regex matching, addressing a lack of input sanitization. The CWE-20 (Improper Input Validation) classification and the commit diff directly point to this function
as the vulnerable component. The absence of input trimming prior to regex execution created a vector for ReDoS-style attacks via maliciously padded URLs.