9.9critical
GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling
- Severity
- 9.9critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 43.9% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jj54-8f66-c5pc
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
| Product or package | Versions | Reported by |
|---|---|---|
| geoserver geoserver | >= 2.27.0, < 2.27.1, >= 2.26.0, < 2.26.3, < 2.25.7 | CVE List |
| org.geoserver.web:gs-web-app (Maven) | from 2.27.0 before 2.27.1, from 2.26.0 before 2.26.3, before 2.25.7 | GitHub Advisory Database |
| org.geoserver:gs-wfs (Maven) | from 2.27.0 before 2.27.1, from 2.26.0 before 2.26.3, before 2.25.7 | GitHub Advisory Database |
| osgeo geonetwork | from 4.2.0 before 4.2.13, from 4.4.0 before 4.4.8 | NVD |
| osgeo geoserver | before 2.25.7, from 2.26.0 before 2.26.3, 2.27.0 | NVD |
| osgeo geotools | before 28.6.1, from 29.0 before 31.7, from 32.0 before 32.3, 33.0 | NVD |
All scores
| GitHub_M | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Summary
GeoServer Web Feature Service (WFS) web service was found to be vulnerable to GeoTools CVE-2025-30220 XML External Entity (XXE) processing attack.
It is possible to trigger the parsing of external DTDs and entities, bypassing standard entity resolvers. This allows for Out-of-Band (OOB) data exfiltration of local files accessible by the GeoServer process, and Service Side Request Forgery (SSRF).
Details
While direct entity resolution is managed by application property ENTITY_RESOLUTION_ALLOWLIST for XML Parsing, this restriction was not being used by the GeoTools library when building an in-memory XSD Library Schema representation.
This bypasses GeoServer's AllowListEntityResolver enabling XXE attacks.
PoC
No public PoC is provided but this vulnerability has been confirmed to be exploitable through WFS service.
Impact
-
Information Disclosure:
This vulnerability allows unauthenticated attackers to read arbitrary files from the server's filesystem that are accessible to the GeoServer process.
This can lead to exposure of sensitive information including configuration files, credentials, and system files. The attack can be performed remotely without authentication, making it particularly severe.
-
Server-Side Request Forgery (SSRF)
The mechanism inherently allows forcing GeoServer to make HTTP requests to arbitrary URLs, enabling SSRF attacks against internal network resources
References
- CVE-2025-30220 XML External Entity (XXE) Processing Vulnerability in XSD schema handling
- External Entities Resolution (GeoServer User Manual)
Acknowledgements
This vulnerability was initially reported via an automated tool described below. Subsequently a duplicate report via @YacineF, and their patience working with the GeoServer project, was instrumental finding in escalating this issue and determining a resolution.
XBOW-025-068 Disclaimer
This vulnerability was detected using XBOW, a system that autonomously finds and exploits potential security vulnerabilities. The finding has been thoroughly reviewed and validated by a security researcher before submission. While XBOW is intended to work autonomously, during its development human experts ensure the accuracy and relevance of its reports.
NVD (es)
GeoServer es un servidor de código abierto que permite a los usuarios compartir y editar datos geoespaciales. El uso de la librería XSD de Eclipse por parte de la clase Esquema de GeoTools para representar la estructura de datos del esquema es vulnerable a la vulnerabilidad de Entidad Externa XML (XXE). Esto afecta a quien exponga el procesamiento XML con gt-xsd-core involucrado en el análisis, cuando los documentos contienen una referencia a un esquema XML externo. La clase Esquemas de gt-xsd-core no utiliza el EntityResolver proporcionado por ParserHandler (si se configuró alguno). Esto también afecta a los usuarios del almacén de datos gt-wfs-ng donde el parámetro de conexión ENTITY_RESOLVER no se utilizaba correctamente. Esta vulnerabilidad está corregida en GeoTools 33.1, 32.3, 31.7 y 28.6.1, GeoServer 2.27.1, 2.26.3 y 2.25.7, y GeoNetwork 4.4.8 y 4.2.13.
References
| https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc | exploit, patch, third-party-advisory, web | |
| https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc | patch, third-party-advisory, web | |
| https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw | third-party-advisory, web | |
| https://github.com/geonetwork/core-geonetwork/pull/8757 | patch, web | |
| https://github.com/geonetwork/core-geonetwork/pull/8803 | patch, web | |
| https://github.com/geonetwork/core-geonetwork/pull/8812 | patch, web | |
| https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities | product, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-30220 | advisory | |
| https://github.com/geoserver/geoserver | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-30220 changed 2025-06-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jj54-8f66-c5pc changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2025-30220 changed 2026-11-30 | Public domain |