Vulnerabilities / CVE-2024-36404

critical

CVE-2024-36404

GeoTools Remote Code Execution (RCE) vulnerability in evaluating XPath expressions

Published Modified CWE 95
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by GHSA.

Description

GeoTools is an open source Java library that provides tools for geospatial data. Prior to versions 31.2, 30.4, and 29.6, Remote Code Execution (RCE) is possible if an application uses certain GeoTools functionality to evaluate XPath expressions supplied by user input. Versions 31.2, 30.4, and 29.6 contain a fix for this issue. As a workaround, GeoTools can operate with reduced functionality by removing the `gt-complex` jar from one's application. As an example of the impact, application schema `datastore` would not function without the ability to use XPath expressions to query complex content. Alternatively, one may utilize a drop-in replacement GeoTools jar from SourceForge for versions 31.1, 30.3, 30.2, 29.2, 28.2, 27.5, 27.4, 26.7, 26.4, 25.2, and 24.0. These jars are for download only and are not available from maven central, intended to quickly provide a fix to affected applications.

Affected packages and fixed versions

SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.geotools.xsd:gt-xsd-core, org.geotools:gt-app-schema, org.geotools:gt-complex30.4, 31.2, 29.6, 28.6
Show all 3 entries from 1 source
SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.geotools.xsd:gt-xsd-core30.4, 31.2, 29.6, 28.6
maven::GitHub Security Advisory Mavenorg.geotools:gt-app-schema30.4, 31.2, 29.6, 28.6
maven::GitHub Security Advisory Mavenorg.geotools:gt-complex30.4, 31.2, 29.6, 28.6

References

All 18 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.