cve.bz

CVE-2024-36404 geotools geotools: Eval Injection

9.8 criticalEPSS 76%Fix available

Critical (9.8) in geotools geotools. EPSS 76% estimated probability of exploitation activity in the next 30 days. Fixed in org.geotools:gt-app-schema 28.6, 29.6, 30.4.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
76% (unchanged from 76% a week ago; 76% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2024-07-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code (Eval Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • org.geotools:gt-app-schema (Maven): fixed in 30.4, 31.2, 29.6, 28.6
  • org.geotools:gt-complex (Maven): fixed in 30.4, 31.2, 29.6, 28.6
  • org.geotools.xsd:gt-xsd-core (Maven): fixed in 30.4, 31.2, 29.6, 28.6

Ask an AI about this CVE

Show the promptExplain CVE-2024-36404 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-36404?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-36404?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-36404 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
geotools< 29.6
geotools>= 30.0, < 30.4
geotools>= 31.0, < 31.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-w3pj-wh35-fq8wMavenorg.geotools:gt-app-schema>=30.0 <30.430.4
GHSA-w3pj-wh35-fq8wMavenorg.geotools:gt-complex>=30.0 <30.430.4
GHSA-w3pj-wh35-fq8wMavenorg.geotools.xsd:gt-xsd-core>=30.0 <30.430.4
GHSA-w3pj-wh35-fq8wMavenorg.geotools:gt-app-schema>=31.0 <31.231.2
GHSA-w3pj-wh35-fq8wMavenorg.geotools:gt-complex>=31.0 <31.231.2
GHSA-w3pj-wh35-fq8wMavenorg.geotools.xsd:gt-xsd-core>=31.0 <31.231.2
GHSA-w3pj-wh35-fq8wMavenorg.geotools:gt-app-schema>=29.0 <29.629.6
GHSA-w3pj-wh35-fq8wMavenorg.geotools:gt-complex>=29.0 <29.629.6
GHSA-w3pj-wh35-fq8wMavenorg.geotools.xsd:gt-xsd-core>=29.0 <29.629.6
GHSA-w3pj-wh35-fq8wMavenorg.geotools:gt-app-schema<28.628.6
GHSA-w3pj-wh35-fq8wMavenorg.geotools:gt-complex<28.628.6
GHSA-w3pj-wh35-fq8wMavenorg.geotools.xsd:gt-xsd-core<28.628.6

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON