CVE-2025-58175: GeoServer has a Server-Side Request Forgery (SSRF) Vulnerability in its XML Entity Resolution
Summary A GeoServer that uses ENTITYRESOLUTIONALLOWLIST may allow attacker to perform unauthenticated Server-Side Request Forgery (SSRF).
Details This vulnerability requires that GeoServer is set up to use a proxy base URL and the ENTITYRESOLUTIONALLOWLIST (default since 2.25.0):
Impact This vulnerability allows an attacker to cause GeoServer to make requests to an unintended location.
Workaround GeoServer installations are only affected by this vulnerability if they use a proxy base URL that does not contain a URL path or end with a slash (e.g., https://somesite.org instead of https://somesite.org/ or https://somesite.org/geoserver). If the proxy base URL does not contain a path, adding a slash to the end of the URL will mitigate this vulnerability.
Resources https://osgeo-org.atlassian.net/browse/GEOS-11867 https://github.com/geoserver/geoserver/pull/8622
Credits: - Le Mau Anh Phong at Verichains Cyber Force
Other sources
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 2.26.4 and 2.27.3, a GeoServer that uses ENTITYRESOLUTIONALLOWLIST may allow attacker to perform unauthenticated Server-Side Request Forgery (SSRF). This vulnerability requires that GeoServer is set up to use a proxy base URL and the ENTITYRESOLUTIONALLOWLIST (default since 2.25.0). Versions 2.26.4 and 2.27.3 contain a fix. GeoServer installations are only affected by this vulnerability if they use a proxy base URL that does not contain a URL path or end with a slash. If the proxy base URL does not contain a path, adding a slash to the end of the URL will mitigate this vulnerability.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.geoserver.web:gs-web-appto a version that resolves this vulnerability.Fixed in 2.27.3 - Upgrade
Upgrade
maven/org.geoserver:gs-mainto a version that resolves this vulnerability.Fixed in 2.27.3 - Upgrade
Upgrade
maven/org.geoserver:gs-mainto a version that resolves this vulnerability.Fixed in 2.26.4 - Upgrade
Upgrade
maven/org.geoserver.web:gs-web-appto a version that resolves this vulnerability.Fixed in 2.26.4 - Configuration
If the proxy base URL does not contain a path, add a trailing slash to the proxy base URL so it ends with '/' to mitigate the SSRF vulnerability.
GeoServer proxy base URL = URL must contain a path or end with a trailing slash (e.g., change https://somesite.org to https://somesite.org/)
Event History
Frequently Asked Questions
What is the severity of CVE-2025-58175?
The severity of CVE-2025-58175 is rated as medium with a score of 6.5.
What is CVE-2025-58175?
CVE-2025-58175 is a vulnerability in GeoServer that allows unauthenticated Server-Side Request Forgery (SSRF) when configured with ENTITY_RESOLUTION_ALLOWLIST.
How do I fix CVE-2025-58175?
To fix CVE-2025-58175, ensure that GeoServer is not configured to use a proxy base URL with ENTITY_RESOLUTION_ALLOWLIST.
Who is affected by CVE-2025-58175?
Any GeoServer installation using version 2.25.0 or later with the ENTITY_RESOLUTION_ALLOWLIST enabled is affected by CVE-2025-58175.
What types of attacks can CVE-2025-58175 facilitate?
CVE-2025-58175 could facilitate unauthenticated Server-Side Request Forgery (SSRF) attacks.