GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)
geoserver
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver.web:gs-web-app Maven |
|
|
| org.geoserver.main:gs-main Maven |
|
|
geoserver
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver.web:gs-web-app Maven |
|
|
| org.geoserver.main:gs-main Maven |
|
|
GeoServer is an open source server that allows users to share and edit geospatial data. An improper URI validation vulnerability exists that enables an unauthorized attacker to perform XML External Entities (XEE) attack, then send GET request to any HTTP server. By default, GeoServer use PreventLocalEntityResolver class from GeoTools to filter out malicious URIs in XML entities before resolving them. The URI must match the regex (?i)(jar:file|http|vfs)[^?#;]*\\.xsd. But the regex leaves a chance for attackers to request to any HTTP server or limited file. Attacker can abuse this to scan internal networks and gain information about them then exploit further. GeoServer 2.25.0 and greater default to the use of ENTITY_RESOLUTION_ALLOWLIST and does not require you to provide a system property.
From the CVE record · GitHub_M
GeoServer improperly validates URIs in XML entities. An unauthenticated attacker can exploit this to make HTTP GET requests, scan internal networks, and gather information about them. No user interaction is described.
Operators running GeoServer with Maven packages org.geoserver.web:gs-web-app or org.geoserver.main:gs-main below 2.25.0 should check their deployments.