Skip to content

CVE-2024-34711 GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)

HighCVSS 8.2 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

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.

Upgrade path

4 packages: 3 fixed.

PackageAffectedFixed inStatus
org.geoserver.main/gs-main(Maven) < 2.25.0 2.25.0 Fixed
org.geoserver.web/gs-web-app(Maven) < 2.25.0 2.25.0 Fixed
osgeo geoserver < 2.25.0 2.25.0 Fixed
geoserver = < 2.25.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
org.geoserver.web/gs-web-app(Maven) < 2.25.0 2.25.0
org.geoserver.main/gs-main(Maven) < 2.25.0 2.25.0
geoserver = < 2.25.0 No fix listed
osgeo geoserver < 2.25.0 2.25.0

References