WaratekVRT Sign in

CVE-2024-36404

Severity9.8 Critical CVSS 3.1
Fixed in30.4, 31.2, 29.6, 28.6
WeaknessCWE-95
Published2 Jul 2024
Updated17 Jun 2026

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.

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 1 indexed Published artifacts you can open, in Nuclei.
  • EPSS 76% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99.5% of all scored CVEs.
IndexArtifactStarsFirst seen
Nuclei GeoServer and GeoTools - Remote Code Execution

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by A reference pointing at the upstream fix: a commit, a PR, a Red Hat bug
Finding A reference points at an upstream fix (commit tier): https://github.com/geotools/geotools/commit/f0c9961dc4d40c5acfce2169fab92805738de5ea. That makes this CVE a candidate for an ARMR patch rule — it is the kind of defect ARMR can address, and there is a fix to work from. No rule exists and none is scheduled: writing one means reading the linked change and finding a hook point ARMR can express it at, which may turn out not to exist.
Candidate fix https://github.com/geotools/geotools/commit/f0c9961dc4d40c5acfce2169fab92805738de5ea : a commit: the change itself

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.geotools:gt-app-schema 30.0 30.4 unbounded
org.geotools:gt-complex 30.0 30.4 unbounded
org.geotools.xsd:gt-xsd-core 30.0 30.4 unbounded
org.geotools:gt-app-schema 31.0 31.2 unbounded
org.geotools:gt-complex 31.0 31.2 unbounded
org.geotools.xsd:gt-xsd-core 31.0 31.2 unbounded
org.geotools:gt-app-schema 29.0 29.6 unbounded
org.geotools:gt-complex 29.0 29.6 unbounded
org.geotools.xsd:gt-xsd-core 29.0 29.6 unbounded
org.geotools:gt-app-schema 0 28.6 unbounded
org.geotools:gt-complex 0 28.6 unbounded
org.geotools.xsd:gt-xsd-core 0 28.6 unbounded

Products and versions

3 products, 12 version entries
SourceVendorProductSchemeAffected versions
osv org.geotools gt-app-schema generic < 28.6 · ≥ 29.0 and < 29.6 · ≥ 30.0 and < 30.4 · ≥ 31.0 and < 31.2
osv org.geotools gt-complex generic < 28.6 · ≥ 29.0 and < 29.6 · ≥ 30.0 and < 30.4 · ≥ 31.0 and < 31.2
osv org.geotools.xsd gt-xsd-core generic < 28.6 · ≥ 29.0 and < 29.6 · ≥ 30.0 and < 30.4 · ≥ 31.0 and < 31.2

References

URLTags
https://github.com/geotools/geotools/commit/f0c9961dc4d40c5acfce2169fab92805738de5ea commit
https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w WEB
https://github.com/geotools/geotools/pull/4797 WEB
https://sourceforge.net/projects/geotools/files/GeoTools%2031%20Releases/31.1 WEB
https://sourceforge.net/projects/geotools/files/GeoTools%2030%20Releases/30.3/geotools-30.3-patches.zip/download WEB
https://sourceforge.net/projects/geotools/files/GeoTools%2030%20Releases/30.2/geotools-30.2-patches.zip/download WEB
https://sourceforge.net/projects/geotools/files/GeoTools%2029%20Releases/29.2/geotools-29.2-patches.zip/download WEB
https://sourceforge.net/projects/geotools/files/GeoTools%2028%20Releases/28.2/geotools-28.2-patches.zip/download WEB
https://sourceforge.net/projects/geotools/files/GeoTools%2027%20Releases/27.5/geotools-27.5-patches.zip/download WEB
https://sourceforge.net/projects/geotools/files/GeoTools%2027%20Releases/27.4/geotools-27.4-patches.zip/download WEB

Timeline

Published2024-07-02By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.