CVE-2025-30220 GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling
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.
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.
| Package | Affected | Fixed in |
|---|---|---|
org.geoserver.web:gs-web-app Maven | All versions | 2.25.7 |
org.geoserver.web:gs-web-app Maven | All versions | 2.25.7 |
org.geoserver.web:gs-web-app Maven | From 2.26.0 | 2.26.3 |
org.geoserver.web:gs-web-app Maven | From 2.26.0 | 2.26.3 |
org.geoserver.web:gs-web-app Maven | From 2.27.0 | 2.27.1 |
org.geoserver.web:gs-web-app Maven | From 2.27.0 | 2.27.1 |
6 more packages
org.geoserver:gs-wfs Maven | All versions | 2.25.7 |
org.geoserver:gs-wfs Maven | All versions | 2.25.7 |
org.geoserver:gs-wfs Maven | From 2.26.0 | 2.26.3 |
org.geoserver:gs-wfs Maven | From 2.26.0 | 2.26.3 |
org.geoserver:gs-wfs Maven | From 2.27.0 | 2.27.1 |
org.geoserver:gs-wfs Maven | From 2.27.0 | 2.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.
Other vulnerabilities in geoserver
Sources
Also known as GHSA-jj54-8f66-c5pc.