Security Digest · Critical advisory (no CVE assigned)

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

Summary GeoTools Schema class use of Eclipse XSD library to represent schema data structure is vulnerable to XML External Entity (XXE) exploit.

CVSS 9.9 Critical GitHub-reviewed · critical

Should you act?

  • Only if you depend on one of the packages below, directly or transitively, in a vulnerable version. Check your lockfile with mvn dependency:tree -Dincludes=<groupId>:<artifactId>.
  • No CVE has been assigned, so it will not appear in CVE-based scanners that ignore GitHub advisories. npm audit, pip-audit and Dependabot do read GitHub advisories.

Affected packages

EcosystemPackageVulnerableFirst fixed
Mavenorg.geotools:gt-xsd-core= 33.033.1
Mavenorg.geotools:gt-xsd-core>= 32.0, < 32.332.3
Mavenorg.geotools:gt-xsd-core>= 29.0, <= 31.631.7
Mavenorg.geotools:gt-wfs-ng>= 33.0, < 33.133.1
Mavenorg.geotools:gt-wfs-ng>= 32.0, < 32.332.3
Mavenorg.geotools:gt-wfs-ng>= 29.0, <= 31.631.7
Mavenorg.geotools:gt-xsd-core< 28.6.128.6.1
Mavenorg.geotools:gt-wfs-ng< 28.6.128.6.1

Details

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 ENTITYRESOLVER connection parameter was not being used as intended.

Resolution

GeoTools API change allows EntityResolver to be supplied to the following methods:

With this API change the gt-wfs-ng WFS DataStore ENTITYRESOLVER parameter is now used.

CVSS: 9.9 (v3.1) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L

Sources and references

  1. GitHub Advisory GHSA-826p-4gcg-35vw github.com
  2. github.com github.com
  3. github.com github.com
  4. github.com github.com

Critical Maven advisories · Today’s Security Digest