CVE-2024-36404 in Geotools
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 ...
Affects 1 product from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Geotools | Geotools | < 29.6 ≥ 30.0, < 30.4 ≥ 31.0, < 31.2 |
| Sourceforge | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-36404 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-048372-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-07-02 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-95: CWE-95
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-95
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-36404 affects GeoTools, an open-source Java library for geospatial data, allowing Remote Code Execution (RCE) if certain functionality is used to evaluate XPath expressions from user input. This vulnerability has a CVSS score of 9.8, indicating a critical severity. Affected versions are prior to 31.2, 30.4, and 29.6. Remediation involves updating to the fixed versions or removing the `gt-complex` jar as a workaround.
The vulnerability can be exploited remotely without authentication, requiring only that the application uses GeoTools to evaluate XPath expressions from user input. This can lead to arbitrary code execution on the affected system.
Compensating controls AI-drafted, review before use
Implement input validation and sanitization for XPath expressions to prevent malicious input from being evaluated. Additionally, consider using a web application firewall (WAF) to monitor and block suspicious requests.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2024-36404?
CVE-2024-36404 affects GeoTools, an open-source Java library for geospatial data, allowing Remote Code Execution (RCE) if certain functionality is used to evaluate XPath expressions from user input. This vulnerability has a CVSS score of 9.8, indicating a critical severity. Affected versions are prior to 31.2, 30.4, and 29.6. Remediation involves updating to the fixed versions or removing the `gt-complex` jar as a workaround.
What is the CVSS score for CVE-2024-36404?
CVE-2024-36404 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 23.2%.
Is CVE-2024-36404 actively exploited?
No confirmed active exploitation of CVE-2024-36404 as of 2026-09-25.
How do I remediate CVE-2024-36404?
Priority: IMMEDIATE.
What systems are affected by CVE-2024-36404?
CVE-2024-36404 affects Geotools Geotools; Sourceforge.
What NERC-CIP standard applies to CVE-2024-36404?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the system, which can compromise the security and integrity of the control system environment.
What IEC 62443 requirement maps to CVE-2024-36404?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability that can be exploited to execute arbitrary code, which can compromise the security of the industrial control system.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Geotools","product":"Geotools","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.