Vulnerability · Published Jun 10, 2025 · Assigned by GitHub_M
CVE-2025-30220GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling
Critical 9.9
In plain English
A critical-severity XML external entity in geoserver from geoserver. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 43.6% (higher than 99% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.geoserver.web:gs-web-app | 2.27.1 | GHSA-jj54-8f66-c5pc |
| Maven | org.geoserver.web:gs-web-app | 2.26.3 | GHSA-jj54-8f66-c5pc |
| Maven | org.geoserver.web:gs-web-app | 2.25.7 | GHSA-jj54-8f66-c5pc |
| Maven | org.geoserver:gs-wfs | 2.27.1 | GHSA-jj54-8f66-c5pc |
| Maven | org.geoserver:gs-wfs | 2.26.3 | GHSA-jj54-8f66-c5pc |
| Maven | org.geoserver:gs-wfs | 2.25.7 | GHSA-jj54-8f66-c5pc |
Affected products (as reported)
Weakness: CWE-611, CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L
References
- https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc x_refsource_CONFIRM
- https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc x_refsource_MISC
- https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw x_refsource_MISC
- https://github.com/geonetwork/core-geonetwork/pull/8757 x_refsource_MISC
- https://github.com/geonetwork/core-geonetwork/pull/8803 x_refsource_MISC
- https://github.com/geonetwork/core-geonetwork/pull/8812 x_refsource_MISC
- https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities x_refsource_MISC