CVE-2025-30220
HIGH8.2EPSS 13.9%GeoTools has XML External Entity (XXE) Processing Vulnerability in XSD schema handling
Description
### Summary GeoTools Schema class use of Eclipse XSD library to represent schema data structure is vulnerable to XML External Entity (XXE) exploit. ### Impact 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. ### Resolution GeoTools API change allows EntityResolver to be supplied to the following methods: ```java Schemas.parse( location, locators, resolvers, uriHandlers, entityResolver); Schemas.findSchemas(Configuration configuration, EntityResolver entityResolver); ``` With this API change the `gt-wfs-ng` WFS DataStore ENTITY_RESOLVER parameter is now used. ### Reference * [GHSA-jj54-8f66-c5pc](https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc): Describes the impact of the ``gt-xsd-core`` vulnerability on the GeoServer WFS protocol, resulting in both Service Side Request Forgery (SSRF) and Out-of-Band (OOB) data exfiltration of local files. * [GHSA-2p76-gc46-5fvc](https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc): Describes the impact of the ``gt-wfs-ng`` and ``gt-xsd-core`` vulnerability on the GeoNetwork WFS Index functionality.
Affected packages (6)
- Maven/org.geonetwork-opensource:gn-web-app>= 4.4.0, < 4.4.8
- Maven/org.geonetwork-opensource:gn-wfsfeature-harvester>= 4.4.0, < 4.4.8
- Maven/org.geoserver:gs-wfs>= 2.27.0, < 2.27.1
- Maven/org.geoserver.web:gs-web-app>= 2.27.0, < 2.27.1
- Maven/org.geotools:gt-wfs-ng>= 33.0, < 33.1
- Maven/org.geotools:gt-xsd-core>= 33.0, < 33.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L |
References (11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-30220
- PATCHhttps://github.com/geonetwork/core-geonetwork
- PATCHhttps://github.com/geoserver/geoserver
- PATCHhttps://github.com/geotools/geotools
- WEBhttps://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities
- WEBhttps://github.com/geonetwork/core-geonetwork/pull/8757
- WEBhttps://github.com/geonetwork/core-geonetwork/pull/8803
- WEBhttps://github.com/geonetwork/core-geonetwork/pull/8812
- WEBhttps://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc
- WEBhttps://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc
- WEBhttps://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw