cve.bz

CVE-2017-9804 apache struts: Improper Input Validation

7.5 highEPSS 8.4%Fix available

High (7.5) in apache struts. EPSS 8.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.struts:struts2-core 2.3.34, 2.5.13.

On this page
In Apache Struts 2.3.7 through 2.3.33 and 2.5 through 2.5.12, if an application allows entering a URL in a form field and built-in URLValidator is used, it is possible to prepare a special URL which will be used to overload server process when performing validation of the URL. NOTE: this vulnerability exists because of an incomplete fix for S2-047 / CVE-2017-7672.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
8.4% (unchanged from 8.4% a week ago; 8.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-9804 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-9804?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-9804?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-9804 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:struts2.3.7
apache:struts2.3.8
apache:struts2.3.9
apache:struts2.3.10
apache:struts2.3.11
apache:struts2.3.12
apache:struts2.3.13
apache:struts2.3.14
apache:struts2.3.14.1
apache:struts2.3.14.2
apache:struts2.3.14.3
apache:struts2.3.15
apache:struts2.3.15.1
apache:struts2.3.15.2
apache:struts2.3.15.3
apache:struts2.3.16
apache:struts2.3.16.1
apache:struts2.3.16.2
apache:struts2.3.16.3
apache:struts2.3.17
apache:struts2.3.19
apache:struts2.3.20
apache:struts2.3.20.1
apache:struts2.3.20.2
apache:struts2.3.21
apache:struts2.3.22
apache:struts2.3.23
apache:struts2.3.24.2
apache:struts2.3.24.3
apache:struts2.3.25
apache:struts2.3.26
apache:struts2.3.27
apache:struts2.3.28
apache:struts2.3.28.1
apache:struts2.3.29
apache:struts2.3.30
apache:struts2.3.31
apache:struts2.3.32
apache:struts2.3.33
apache:struts2.5
apache:struts2.5:beta1
apache:struts2.5:beta2
apache:struts2.5:beta3
apache:struts2.5.1
apache:struts2.5.2
apache:struts2.5.3
apache:struts2.5.4
apache:struts2.5.5
apache:struts2.5.6
apache:struts2.5.7
apache:struts2.5.8
apache:struts2.5.9
apache:struts2.5.10
apache:struts2.5.10.1
apache:struts2.5.12

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x5x7-3v85-wpc4Mavenorg.apache.struts:struts2-core>=2.3.7 <2.3.342.3.34
GHSA-x5x7-3v85-wpc4Mavenorg.apache.struts:struts2-core>=2.5.0 <2.5.132.5.13

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A previous statement by Red Hat related to this CVE, prior to August 2019, said that Apache Struts 2 is not included in any Red Hat products. This earlier statement was incorrect. While Struts 2 is not actively compiled, shipped, used, or enabled in any Red Hat provided final products, and does not cause any vulnerability in the product, struts2-core jars have been included in some products' source code packages. The inclusion was part of an import of the Google Guice repository, which includes struts2-core. Customers that build artefacts from our source code could be at risk. Red Hat will remove these artefacts from source code in future releases.

The products that included the Struts 2 artefacts in their source jars:

Fuse Service Works 6.0.0

Single Sign On 7.3.0+

If you have used the source package from one of these products to build artefacts on your system, you should do the following to remove potentially affected jars:

1. Run 'find . -name struts2*.jar' under the source location

2. Remove any files found

This will not affect the product, as the jar is included with the source of google-guice, but no functionality requiring struts2 is implemented.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5strutsNot affected
Red Hat JBoss Data Virtualization 6strutsNot affected
Red Hat JBoss Fuse Service Works 6strutsNot affected
Red Hat JBoss Operations Network 3strutsNot affected
Red Hat Satellite 5strutsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-9804.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON