CVE-2025-30220 GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling

Critical 9.9 Published Updated

Attackers can exploit XXE in GeoServer's XML schema handling to read sensitive files or cause denial of service.

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

What is CVE-2025-30220?

CVE-2025-30220 is a critical 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. GeoTools Schema class use of Eclipse XSD library to represent schema data structure is vulnerable to XML External Entity (XXE) exploit. This impacts whoever exposes XML processing with gt-xsd-core involved in parsing, when the documents carry a reference to an external XML schema. The gt-xsd-core Schemas class is not using the EntityResolver provided by the ParserHandler (if any was configured). This also impacts users of gt-wfs-ng DataStore where the ENTITY_RESOLVER connection parameter was not being used as intended. This vulnerability is fixed in GeoTools 33.1, 32.3, 31.7, and 28.6.1, GeoServer 2.27.1, 2.26.3, and 2.25.7, and GeoNetwork 4.4.8 and 4.2.13.

Weakness: CWE-918, CWE-611

Which versions are affected by CVE-2025-30220?

12 open source packages ship an affected version, including org.geoserver.web:gs-web-app and org.geoserver:gs-wfs. It affects 3 products.

PackageAffectedFixed in
org.geoserver.web:gs-web-app MavenAll versions2.25.7
org.geoserver.web:gs-web-app MavenAll versions2.25.7
org.geoserver.web:gs-web-app MavenFrom 2.26.02.26.3
org.geoserver.web:gs-web-app MavenFrom 2.26.02.26.3
org.geoserver.web:gs-web-app MavenFrom 2.27.02.27.1
org.geoserver.web:gs-web-app MavenFrom 2.27.02.27.1
6 more packages
org.geoserver:gs-wfs MavenAll versions2.25.7
org.geoserver:gs-wfs MavenAll versions2.25.7
org.geoserver:gs-wfs MavenFrom 2.26.02.26.3
org.geoserver:gs-wfs MavenFrom 2.26.02.26.3
org.geoserver:gs-wfs MavenFrom 2.27.02.27.1
org.geoserver:gs-wfs MavenFrom 2.27.02.27.1

Products include Geotools Geotools, Osgeo Geonetwork, Osgeo Geoserver.

How do I fix CVE-2025-30220?

Upgrade org.geoserver.web:gs-web-app to a fixed version for your release line: 2.25.7, 2.26.3 or 2.27.1.

Is CVE-2025-30220 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30220 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-jj54-8f66-c5pc.

Is CVE-2025-30220 in your software?

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

Check your SBOMs for free