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

Critical 9.3 Published Updated

Attackers can exploit improper URI validation in GeoServer's XML processing to perform SSRF attacks, scanning internal networks and accessing sensitive information.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-34711?

CVE-2024-34711 is a critical server-side request forgery vulnerability in geoserver, published on 10 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-918, CWE-611, CWE-200

Which versions are affected by CVE-2024-34711?

4 open source packages ship an affected version, including org.geoserver.main:gs-main and org.geoserver.web:gs-web-app. It affects 1 product.

PackageAffectedFixed in
org.geoserver.main:gs-main MavenAll versions2.25.0
org.geoserver.main:gs-main MavenAll versions2.25.0
org.geoserver.web:gs-web-app MavenAll versions2.25.0
org.geoserver.web:gs-web-app MavenAll versions2.25.0

Products include Osgeo Geoserver.

How do I fix CVE-2024-34711?

Upgrade org.geoserver.main:gs-main to 2.25.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2024-34711 being exploited?

There is no known exploitation of CVE-2024-34711 in the wild and no public exploit code.

Sources

Also known as GHSA-mc43-4fqr-c965.

Is CVE-2024-34711 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free