RCE in Geotools
CVE-2024-36404
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.761 (99.5th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 100th percentile — 99.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.761 · newest: 0.761 · change: 0.000
Affected products
- Geotools — versions < 29.6, >= 30.0, < 30.4, >= 31.0, < 31.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w
- github.com/geotools/geotools/pull/4797
- github.com/geotools/geotools/commit/f0c9961dc4d40c5acfce2169fab92805738de5ea
- github.com/Warxim/CVE-2022-41852
- osgeo-org.atlassian.net/browse/GEOT-7587
- sourceforge.net/projects/geotools/files/GeoTools 24 Releases/24.0/geotools-24.0…
- sourceforge.net/projects/geotools/files/GeoTools 25 Releases/25.2/geotools-25.2…
- sourceforge.net/projects/geotools/files/GeoTools 26 Releases/26.4
- sourceforge.net/projects/geotools/files/GeoTools 26 Releases/26.7/geotools-26.7…
- sourceforge.net/projects/geotools/files/GeoTools 27 Releases/27.4/geotools-27.4…
Frequently asked questions
- What is CVE-2024-36404?
- CVE-2024-36404 is a critical-severity vulnerability in Geotools, classified under Eval Injection. CVSS score: 9.8/10. Published 2024-07-02.
- How severe is CVE-2024-36404?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2024-36404 known to be exploited?
- 6 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.