GHSA-826p-4gcg-35vw GeoTools has XML External Entity (XXE) Processing Vulnerability in XSD schema handling
- Published
- Updated
- Exploit status
- No public exploit known
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-corevulnerability 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-ngandgt-xsd-corevulnerability on the GeoNetwork WFS Index functionality.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| org.geotools/gt-wfs-ng(Maven) | < 28.6.1; >= 29.0, < 31.7; >= 29.0, <= 31.6; >= 32.0, < 32.3 +1 more | 28.6.1, 31.7, 32.3, 33.1 | Fixed |
| org.geotools/gt-xsd-core(Maven) | < 28.6.1; = 33.0; >= 29.0, < 31.7; >= 29.0, <= 31.6 +2 more | 28.6.1, 31.7, 32.3, 33.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.geotools/gt-xsd-core(Maven) | >= 33.0, < 33.1 | 33.1 |
| org.geotools/gt-xsd-core(Maven) | = 33.0 | No fix listed |
| org.geotools/gt-xsd-core(Maven) | >= 32.0, < 32.3 | 32.3 |
| org.geotools/gt-xsd-core(Maven) | >= 29.0, < 31.7 | 31.7 |
| org.geotools/gt-wfs-ng(Maven) | >= 33.0, < 33.1 | 33.1 |
| org.geotools/gt-wfs-ng(Maven) | >= 32.0, < 32.3 | 32.3 |
| org.geotools/gt-wfs-ng(Maven) | >= 29.0, < 31.7 | 31.7 |
| org.geotools/gt-xsd-core(Maven) | < 28.6.1 | 28.6.1 |
| org.geotools/gt-wfs-ng(Maven) | < 28.6.1 | 28.6.1 |
| org.geotools/gt-xsd-core(Maven) | >= 29.0, <= 31.6 | No fix listed |
| org.geotools/gt-wfs-ng(Maven) | >= 29.0, <= 31.6 | No fix listed |
References
- github.com vendor-advisory
- github.com vendor-advisory
- github.com vendor-advisory
- github.com product
- github.com