CVE-2024-36404
July 02, 2024
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
org.geotools.xsd:gt-xsd-core (JAVA):
Affected version(s) >=31.0 <31.2Fix Suggestion:
Update to version 31.2org.geotools:gt-app-schema (JAVA):
Affected version(s) >=2.5-M3 <28.6Fix Suggestion:
Update to version 28.6org.geotools:gt-app-schema (JAVA):
Affected version(s) >=29.0 <29.6Fix Suggestion:
Update to version 29.6org.geotools:gt-complex (JAVA):
Affected version(s) >=31.0 <31.2Fix Suggestion:
Update to version 31.2org.geotools:gt-app-schema (JAVA):
Affected version(s) >=30.0 <30.4Fix Suggestion:
Update to version 30.4org.geotools:gt-complex (JAVA):
Affected version(s) >=9.0-beta1 <28.6Fix Suggestion:
Update to version 28.6org.geotools.xsd:gt-xsd-core (JAVA):
Affected version(s) >=29.0 <29.6Fix Suggestion:
Update to version 29.6org.geotools:gt-app-schema (JAVA):
Affected version(s) >=31.0 <31.2Fix Suggestion:
Update to version 31.2org.geotools.xsd:gt-xsd-core (JAVA):
Affected version(s) >=2.5-M0 <28.6Fix Suggestion:
Update to version 28.6org.geotools:gt-complex (JAVA):
Affected version(s) >=30.0 <30.4Fix Suggestion:
Update to version 30.4org.geotools.xsd:gt-xsd-core (JAVA):
Affected version(s) >=30.0 <30.4Fix Suggestion:
Update to version 30.4org.geotools:gt-complex (JAVA):
Affected version(s) >=29.0 <29.6Fix Suggestion:
Update to version 29.6Related ResourcesĀ (18)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
EPSS
Base Score:
90.75