GeoTools Remote Code Execution (RCE) vulnerability in evaluating XPath expressions
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 29.6, 30.4, 31.2, 28.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 Nuclei template
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
- EPSS reached 10%
FIRST estimates at least a 10% chance of exploitation in the next 30 days
Affected versions
- geotools geotools
fixed in 29.6; From 30.0 · fixed in 30.4; From 31.0 · fixed in 31.2
- org.geotools:gt-app-schemaMaven
From 30.0 · fixed in 30.4
- org.geotools:gt-complexMaven
From 30.0 · fixed in 30.4
- org.geotools.xsd:gt-xsd-coreMaven
From 30.0 · fixed in 30.4
- org.geotools:gt-app-schemaMaven
From 31.0 · fixed in 31.2
- org.geotools:gt-complexMaven
From 31.0 · fixed in 31.2
- org.geotools.xsd:gt-xsd-coreMaven
From 31.0 · fixed in 31.2
- org.geotools:gt-app-schemaMaven
From 29.0 · fixed in 29.6
- org.geotools:gt-complexMaven
From 29.0 · fixed in 29.6
- org.geotools.xsd:gt-xsd-coreMaven
From 29.0 · fixed in 29.6
- org.geotools:gt-app-schemaMaven
fixed in 28.6
- org.geotools:gt-complexMaven
fixed in 28.6
- org.geotools.xsd:gt-xsd-coreMaven
fixed in 28.6
References 17
GitHub · geotools/geotools
GitHub · Warxim/CVE-2022-41852
osgeo-org.atlassian.net
sourceforge.net
- projects/geotools/files/GeoTools 24 Releases/24.0/geotools-24.0-patches.zip/download
- projects/geotools/files/GeoTools 25 Releases/25.2/geotools-25.2-patches.zip/download
- projects/geotools/files/GeoTools 26 Releases/26.4
- projects/geotools/files/GeoTools 26 Releases/26.7/geotools-26.7-patches.zip/download
- projects/geotools/files/GeoTools 27 Releases/27.4/geotools-27.4-patches.zip/download
- projects/geotools/files/GeoTools 27 Releases/27.5/geotools-27.5-patches.zip/download
- projects/geotools/files/GeoTools 28 Releases/28.2/geotools-28.2-patches.zip/download
- projects/geotools/files/GeoTools 29 Releases/29.2/geotools-29.2-patches.zip/download
- projects/geotools/files/GeoTools 30 Releases/30.2/geotools-30.2-patches.zip/download
- projects/geotools/files/GeoTools 30 Releases/30.3/geotools-30.3-patches.zip/download
- projects/geotools/files/GeoTools 31 Releases/31.1