GHSA-826p-4gcg-35vw GeoTools has XML External Entity (XXE) Processing Vulnerability in XSD schema handling

Not scored Published

Attackers can exploit XXE in GeoTools XSD handling to read local files or perform SSRF via crafted XML schemas.

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

What is GHSA-826p-4gcg-35vw?

GHSA-826p-4gcg-35vw is a vulnerability in org.geotools:gt-wfs-ng, published on 9 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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:

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: 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: Describes the impact of the gt-wfs-ng and gt-xsd-core vulnerability on the GeoNetwork WFS Index functionality.

Which versions are affected by GHSA-826p-4gcg-35vw?

16 open source packages ship an affected version, including org.geotools:gt-wfs-ng and org.geotools:gt-xsd-core.

PackageAffectedFixed in
org.geotools:gt-wfs-ng MavenAll versions28.6.1
org.geotools:gt-wfs-ng MavenAll versions28.6.1
org.geotools:gt-wfs-ng MavenFrom 29.031.7
org.geotools:gt-wfs-ng MavenFrom 29.031.7
org.geotools:gt-wfs-ng MavenFrom 32.032.3
org.geotools:gt-wfs-ng MavenFrom 32.032.3
10 more packages
org.geotools:gt-wfs-ng MavenFrom 33.033.1
org.geotools:gt-wfs-ng MavenFrom 33.033.1
org.geotools:gt-xsd-core MavenAll versions28.6.1
org.geotools:gt-xsd-core MavenAll versions28.6.1
org.geotools:gt-xsd-core MavenFrom 29.031.7
org.geotools:gt-xsd-core MavenFrom 29.031.7
org.geotools:gt-xsd-core MavenFrom 32.032.3
org.geotools:gt-xsd-core MavenFrom 32.032.3
org.geotools:gt-xsd-core MavenFrom 33.033.1
org.geotools:gt-xsd-core MavenFrom 33.033.1

How do I fix GHSA-826p-4gcg-35vw?

Upgrade org.geotools:gt-wfs-ng to a fixed version for your release line: 28.6.1, 31.7, 32.3 or 33.1.

Is GHSA-826p-4gcg-35vw being exploited?

There is no known exploitation of GHSA-826p-4gcg-35vw in the wild and no public exploit code.

Sources

Is GHSA-826p-4gcg-35vw in your software?

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

Check your SBOMs for free