{"schemaVersion":3,"id":"CVE-2024-36401","aliases":["GHSA-6jj6-gm7p-fcvv"],"status":"published","duplicateOf":null,"title":"OSGeo GeoServer GeoTools Eval Injection Vulnerability","description":"GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 2.22.6, 2.23.6, 2.24.4, and 2.25.2, multiple OGC request parameters allow Remote Code Execution (RCE) by unauthenticated users through specially crafted input against a default GeoServer installation due to unsafely evaluating property names as XPath expressions.\n\nThe GeoTools library API that GeoServer calls evaluates property/attribute names for feature types in a way that unsafely passes them to the commons-jxpath library which can execute arbitrary code when evaluating XPath expressions. This XPath evaluation is intended to be used only by complex feature types (i.e., Application Schema data stores) but is incorrectly being applied to simple feature types as well which makes this vulnerability apply to **ALL** GeoServer instances. No public PoC is provided but this vulnerability has been confirmed to be exploitable through WFS GetFeature, WFS GetPropertyValue, WMS GetMap, WMS GetFeatureInfo, WMS GetLegendGraphic and WPS Execute requests. This vulnerability can lead to executing arbitrary code.\n\nVersions 2.22.6, 2.23.6, 2.24.4, and 2.25.2 contain a patch for the issue. A workaround exists by removing the `gt-complex-x.y.jar` file from the GeoServer where `x.y` is the GeoTools version (e.g., `gt-complex-31.1.jar` if running GeoServer 2.25.1). This will remove the vulnerable code from GeoServer but may break some GeoServer functionality or prevent GeoServer from deploying if the gt-complex module is needed.","dates":{"published":"2024-07-01T15:25:41.873Z","modified":"2025-10-21T22:56:21.450Z","reserved":null,"kevAdded":["2024-07-15T00:00:00.000Z"],"kevDue":["2024-08-05T00:00:00.000Z"]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Maven","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.99813,"percentile":0.99959,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.99813},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.99813,"percentile":0.99959}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.99813,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.99813,"percentile":0.99959}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2024-07-15T00:00:00.000Z","dueDate":"2024-08-05T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","name":"OSGeo GeoServer GeoTools Eval Injection Vulnerability","description":"OSGeo GeoServer GeoTools contains an improper neutralization of directives in dynamically evaluated code vulnerability due to unsafely evaluating property names as XPath expressions. This allows unauthenticated attackers to conduct remote code execution via specially crafted input.","notes":[{"type":"text","value":"This vulnerability affects an open-source component, third-party library, or a protocol used by different products. For more information, please see: https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv, https://github.com/geotools/geotools/pull/4797"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2024-36401","label":"nvd.nist.gov/vuln/detail/CVE-2024-36401"}],"vendor":"OSGeo","product":"GeoServer","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2024-07-15T00:00:00.000Z","dueDate":"2024-08-05T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","name":"OSGeo GeoServer GeoTools Eval Injection Vulnerability","description":"OSGeo GeoServer GeoTools contains an improper neutralization of directives in dynamically evaluated code vulnerability due to unsafely evaluating property names as XPath expressions. This allows unauthenticated attackers to conduct remote code execution via specially crafted input.","notes":[{"type":"text","value":"This vulnerability affects an open-source component, third-party library, or a protocol used by different products. For more information, please see: https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv, https://github.com/geotools/geotools/pull/4797"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2024-36401","label":"nvd.nist.gov/vuln/detail/CVE-2024-36401"}],"vendor":"OSGeo","product":"GeoServer","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_GEOTOOLS_GEOTOOLS","name":"Geotools","source":"github","url":"https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"GITHUB_WARXIM_CVE-2022-41852","name":"Cve 2022 41852","source":"github","url":"https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_2AAA584595BF0563","name":"Exploit Reference (vicarius.io)","source":"reference","url":"https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_MULTI_HTTP_GEOSERVER_UNAUTH_RCE_CVE_2024_36401","name":"Geoserver unauthenticated Remote Code Execution","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/multi/http/geoserver_unauth_rce_cve_2024_36401.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/multi/http/geoserver_unauth_rce_cve_2024_36401","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["ioc-in-logs","artifacts-on-disk"],"reliability":["repeatable-session"]}}],"exploitCount":4,"weaknesses":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')","description":"The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. \"eval\").","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/95.html"},{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"geoserver","product":"geoserver","name":"geoserver","label":"geoserver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.22.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.23.0, < 2.23.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.24.0, < 2.24.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.25.0, < 2.25.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.22.6 | ≥ 2.23.0, < 2.23.6 | ≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2","eol":null,"hubHref":"/vendor/geoserver/geoserver"},{"vendor":"geotools","product":"geotools","name":"geotools","label":"geotools","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 29.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 30.1, < 30.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 31.1, < 31.2","noFixRecorded":false,"fixedIn":null},{"text":"30.0","noFixRecorded":false,"fixedIn":null},{"text":"30.0:rc","noFixRecorded":false,"fixedIn":null},{"text":"31.0","noFixRecorded":false,"fixedIn":null},{"text":"31.0:rc","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 29.6 | ≥ 30.1, < 30.4 | ≥ 31.1, < 31.2 | 30.0 | 30.0:rc | 31.0 | 31.0:rc","eol":null,"hubHref":"/vendor/geotools/geotools"},{"vendor":"org.geoserver","product":"gs-wfs","name":"org.geoserver:gs-wfs","label":"gs-wfs","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.geoserver/gs-wfs","purlType":"maven","versions":[{"text":"≥ 2.24.0, < 2.24.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.25.0, < 2.25.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.23.0, < 2.23.6","noFixRecorded":false,"fixedIn":null},{"text":"< 2.22.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2 | ≥ 2.23.0, < 2.23.6 | < 2.22.6","eol":null,"hubHref":null},{"vendor":"org.geoserver","product":"gs-wms","name":"org.geoserver:gs-wms","label":"gs-wms","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.geoserver/gs-wms","purlType":"maven","versions":[{"text":"≥ 2.24.0, < 2.24.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.25.0, < 2.25.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.23.0, < 2.23.6","noFixRecorded":false,"fixedIn":null},{"text":"< 2.22.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2 | ≥ 2.23.0, < 2.23.6 | < 2.22.6","eol":null,"hubHref":null},{"vendor":"org.geoserver.web","product":"gs-web-app","name":"org.geoserver.web:gs-web-app","label":"gs-web-app","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.geoserver.web/gs-web-app","purlType":"maven","versions":[{"text":"≥ 2.24.0, < 2.24.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.25.0, < 2.25.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.23.0, < 2.23.6","noFixRecorded":false,"fixedIn":null},{"text":"< 2.22.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.24.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2 | ≥ 2.23.0, < 2.23.6 | < 2.22.6","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv","label":"github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Mitigation","Vendor Advisory"]},{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w","label":"github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w","hostname":"github.com","tags":["X Refsource MISC","WEB","Exploit","Vendor Advisory"]},{"url":"https://github.com/geotools/geotools/pull/4797","label":"github.com/geotools/geotools/pull/4797","hostname":"github.com","tags":["X Refsource MISC","WEB","Issue Tracking","Patch"]},{"url":"https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852","label":"github.com/Warxim/CVE-2022-41852?tab=readme-ov-file","hostname":"github.com","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7587","label":"osgeo-org.atlassian.net/browse/GEOT-7587","hostname":"osgeo-org.atlassian.net","tags":["X Refsource MISC","WEB","Vendor Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401","hostname":"www.cisa.gov","tags":["Government Resource","WEB","US Government Resource"]},{"url":"https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401","label":"www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401","hostname":"www.vicarius.io","tags":["WEB","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36401","label":"nvd.nist.gov/vuln/detail/CVE-2024-36401","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/geoserver/geoserver","label":"github.com/geoserver/geoserver","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CVE-2024-36404"]},"timeline":[{"kind":"published","date":"2024-07-01T15:25:41.873Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2024-07-15T00:00:00.000Z","label":"Added to CISA KEV","detail":"OSGeo GeoServer GeoTools Eval Injection Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2024-08-05T00:00:00.000Z","label":"CISA remediation due","detail":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","source":"cisa"},{"kind":"modified","date":"2025-10-21T22:56:21.450Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:06:56.633Z","stale":false,"partial":false}}