{"id":"CVE-2024-36401","aliases":["EUVD-2024-2280","GHSA-6jj6-gm7p-fcvv"],"status":"published","title":"Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.99813,"percentile":0.99959,"model":"v2026.06.15"},"facts":{"in_kev":true,"known_exploited":true,"public_exploit":true,"fix_available":true},"cwes":["CWE-94","CWE-95"],"published":"2024-07-01T15:25:41Z","modified":"2026-10-28T02:30:50Z","kev":{"date_added":"2024-07-15","due_date":"2024-08-05","required_action":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","known_ransomware_use":"Unknown"},"exploitation":[{"source":"euvd","since":"2024-07-15"},{"source":"kev","since":"2024-07-15"}],"exploits":[{"source":"metasploit","id":"exploit/multi/http/geoserver_unauth_rce_cve_2024_36401","title":"Geoserver unauthenticated Remote Code Execution","type":"exploit","platform":"Linux,Unix,Windows","date":"2024-07-01","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/multi/http/geoserver_unauth_rce_cve_2024_36401"},{"source":"pocgithub","id":"bigb0x/CVE-2024-36401","title":"bigb0x/CVE-2024-36401","date":"2024-07-04","url":"https://github.com/bigb0x/CVE-2024-36401"},{"source":"pocgithub","id":"Niuwoo/CVE-2024-36401","title":"Niuwoo/CVE-2024-36401","date":"2024-07-05","url":"https://github.com/Niuwoo/CVE-2024-36401"},{"source":"pocgithub","id":"RevoltSecurities/CVE-2024-36401","title":"RevoltSecurities/CVE-2024-36401","date":"2024-07-05","url":"https://github.com/RevoltSecurities/CVE-2024-36401"},{"source":"pocgithub","id":"Mr-xn/CVE-2024-36401","title":"Mr-xn/CVE-2024-36401","date":"2024-07-06","url":"https://github.com/Mr-xn/CVE-2024-36401"},{"source":"pocgithub","id":"jakabakos/CVE-2024-36401-GeoServer-RCE","title":"jakabakos/CVE-2024-36401-GeoServer-RCE","date":"2024-07-12","url":"https://github.com/jakabakos/CVE-2024-36401-GeoServer-RCE"},{"source":"pocgithub","id":"ahisec/geoserver-","title":"ahisec/geoserver-","date":"2024-07-17","url":"https://github.com/ahisec/geoserver-"},{"source":"pocgithub","id":"Chocapikk/CVE-2024-36401","title":"Chocapikk/CVE-2024-36401","date":"2024-07-30","url":"https://github.com/Chocapikk/CVE-2024-36401"},{"source":"pocgithub","id":"y1s4s/CVE-2024-36401-PoC","title":"y1s4s/CVE-2024-36401-PoC","date":"2024-08-01","url":"https://github.com/y1s4s/CVE-2024-36401-PoC"},{"source":"pocgithub","id":"justin-p/geoexplorer","title":"justin-p/geoexplorer","date":"2024-08-27","url":"https://github.com/justin-p/geoexplorer"},{"source":"pocgithub","id":"daniellowrie/CVE-2024-36401-PoC","title":"daniellowrie/CVE-2024-36401-PoC","date":"2024-09-13","url":"https://github.com/daniellowrie/CVE-2024-36401-PoC"},{"source":"pocgithub","id":"kkhackz0013/CVE-2024-36401","title":"kkhackz0013/CVE-2024-36401","date":"2024-10-14","url":"https://github.com/kkhackz0013/CVE-2024-36401"},{"source":"pocgithub","id":"0x0d3ad/CVE-2024-36401","title":"0x0d3ad/CVE-2024-36401","date":"2024-11-27","url":"https://github.com/0x0d3ad/CVE-2024-36401"},{"source":"pocgithub","id":"funnyDog896/CVE-2024-36401-WoodpeckerPlugin","title":"funnyDog896/CVE-2024-36401-WoodpeckerPlugin","date":"2024-11-28","url":"https://github.com/funnyDog896/CVE-2024-36401-WoodpeckerPlugin"},{"source":"pocgithub","id":"whitebear-ch/GeoServerExploit","title":"whitebear-ch/GeoServerExploit","date":"2025-01-07","url":"https://github.com/whitebear-ch/GeoServerExploit"},{"source":"pocgithub","id":"bmth666/GeoServer-Tools-CVE-2024-36401","title":"bmth666/GeoServer-Tools-CVE-2024-36401","date":"2025-04-11","url":"https://github.com/bmth666/GeoServer-Tools-CVE-2024-36401"},{"source":"pocgithub","id":"amoy6228/CVE-2024-36401_Geoserver_RCE_POC","title":"amoy6228/CVE-2024-36401_Geoserver_RCE_POC","date":"2025-04-30","url":"https://github.com/amoy6228/CVE-2024-36401_Geoserver_RCE_POC"},{"source":"pocgithub","id":"URJACK2025/CVE-2024-36401","title":"URJACK2025/CVE-2024-36401","date":"2025-10-04","url":"https://github.com/URJACK2025/CVE-2024-36401"},{"source":"pocgithub","id":"mantanhacker/CVE-2024-36401-MASS","title":"mantanhacker/CVE-2024-36401-MASS","date":"2025-12-05","url":"https://github.com/mantanhacker/CVE-2024-36401-MASS"},{"source":"pocgithub","id":"Delt-A/CVE-2024-36401-poc","title":"Delt-A/CVE-2024-36401-poc","date":"2026-05-30","url":"https://github.com/Delt-A/CVE-2024-36401-poc"},{"source":"pocgithub","id":"DanieleGiovanardi2408/cve-2024-36401-geoserver-rce","title":"DanieleGiovanardi2408/cve-2024-36401-geoserver-rce","date":"2026-06-03","url":"https://github.com/DanieleGiovanardi2408/cve-2024-36401-geoserver-rce"},{"source":"pocgithub","id":"keelanbrady1011/CVE-2024-36401","title":"keelanbrady1011/CVE-2024-36401","date":"2026-07-07","url":"https://github.com/keelanbrady1011/CVE-2024-36401"},{"source":"pocgithub","id":"raniaemran/cve-2024-36401-security-simulator","title":"raniaemran/cve-2024-36401-security-simulator","date":"2026-09-15","url":"https://github.com/raniaemran/cve-2024-36401-security-simulator"},{"source":"pocgithub","id":"basesixtythree/B63-POC-CVE-2024-36401","title":"basesixtythree/B63-POC-CVE-2024-36401","date":"2026-10-22","url":"https://github.com/basesixtythree/B63-POC-CVE-2024-36401"},{"source":"nuclei","id":"CVE-2024-36401","title":"GeoServer RCE in Evaluating Property Name Expressions","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-36401.yaml"}],"fixes":[{"ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","fixed_in":["2.24.4","2.25.2","2.23.6","2.22.6"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.geoserver:gs-wfs","fixed_in":["2.24.4","2.25.2","2.23.6","2.22.6"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.geoserver:gs-wms","fixed_in":["2.24.4","2.25.2","2.23.6","2.22.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.24.0"},{"fixed":"2.24.4"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.24.0"},{"fixed":"2.24.4"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.24.0"},{"fixed":"2.24.4"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.23.0"},{"fixed":"2.23.6"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.23.0"},{"fixed":"2.23.6"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.23.0"},{"fixed":"2.23.6"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.22.6"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.22.6"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.geoserver:gs-wms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.22.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.24.0"},{"fixed":"2.24.4"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.24.0"},{"fixed":"2.24.4"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.24.0"},{"fixed":"2.24.4"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.25.0"},{"fixed":"2.25.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.23.0"},{"fixed":"2.23.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.23.0"},{"fixed":"2.23.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.23.0"},{"fixed":"2.23.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.22.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.22.6"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.geoserver:gs-wms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.22.6"}]}]}],"products":[{"vendor":"geoserver","product":"geoserver"},{"vendor":"geotools","product":"geotools"},{"vendor":"osgeo","product":"geoserver"}],"references":[{"url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-6jj6-gm7p-fcvv","tags":["x_refsource_CONFIRM","x_transferred","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/geotools/geotools/pull/4797","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","package","web"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7587","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36401","tags":["government-resource","US Government Resource","web"]},{"url":"https://www.vicarius.io/vsociety/posts/geoserver-rce-cve-2024-36401","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36401","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6jj6-gm7p-fcvv"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36401.json","tags":["advisory"]},{"url":"https://github.com/geoserver/geoserver","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-36401","title":"Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver","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.","status":"published","published":"2024-07-01T15:25:41.873Z","modified":"2025-10-21T22:56:21.45Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T14:34:14.649724Z"}],"euvd":[{"id":"EUVD-2024-2280","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.","status":"published","published":"2024-07-01T15:25:41Z","modified":"2025-10-21T22:56:21Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"exploited_since":"2024-07-15","updated_at":"2026-11-02T20:31:28.525814Z"}],"ghsa":[{"id":"GHSA-6jj6-gm7p-fcvv","title":"Remote Code Execution (RCE) vulnerability in geoserver","description":"### Summary\nMultiple 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\n### Details\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.\n\n### PoC\nNo 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.\n\n### Impact\nThis vulnerability can lead to executing arbitrary code.\n\n### Workaround\n\nA 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 by an extension you are using:\n\nMitigation for `geoserver.war` deploy:\n\n1. Stop the application server\n2. Unzip `geoserver.war` into a directory\n3. Locate the file `WEB-INF/lib/gt-complex-x.y.jar` and remove\n4. Zip the directory into a new `geoserver.war`\n5. Restart the application server\n\nMitigation for GeoServer binary:\n\n1. Stop Jetty\n2. Locate the file `webapps/geoserver/WEB-INF/lib/gt-complex-x.y.jar` and remove\n3. Restart Jetty\n\nThe following extensions and community modules are known to have a direct dependency on `gt-complex` jar and are not expected function properly without it. This is not comprehensive list and additional GeoServer functionality may be dependent on the availability of `gt-complex` jar:\n* Extensions: Application Schema, Catalog Services for the Web, MongoDB Data Store\n* Community Modules: Features-Templating, OGC API Modules, Smart Data Loader, SOLR Data Store\n\nMitigation available for prior releases patching three jars in your existing install:\n\n1. Patched `gt-app-schema`, `gt-complex` and `gt-xsd-core` jars may be downloaded for GeoServer: [2.25.1](https://sourceforge.net/projects/geoserver/files/GeoServer/2.25.1/geoserver-2.25.1-patches.zip/download), [2.24.3](https://sourceforge.net/projects/geoserver/files/GeoServer/2.24.3/geoserver-2.24.3-patches.zip/download), [2.24.2](https://sourceforge.net/projects/geoserver/files/GeoServer/2.24.2/geoserver-2.24.2-patches.zip/download), [2.23.2](https://sourceforge.net/projects/geoserver/files/GeoServer/2.23.2/geoserver-2.23.2-patches.zip/download), [2.22.2](https://sourceforge.net/projects/geoserver/files/GeoServer/2.22.2/geoserver-2.22.2-patches.zip/download), [2.21.5](https://sourceforge.net/projects/geoserver/files/GeoServer/2.21.5/geoserver-2.21.5-patches.zip/download), [2.21.4](https://sourceforge.net/projects/geoserver/files/GeoServer/2.21.4/geoserver-2.21.4-patches.zip/download),[2.20.7](https://sourceforge.net/projects/geoserver/files/GeoServer/2.20.7/geoserver-2.20.7-patches.zip/download), [2.20.4](https://sourceforge.net/projects/geoserver/files/GeoServer/2.20.4/geoserver-2.20.4-patches.zip/download), [2.19.2](https://sourceforge.net/projects/geoserver/files/GeoServer/2.19.2/geoserver-2.19.2-patches.zip/download), [2.18.0](https://sourceforge.net/projects/geoserver/files/GeoServer/2.18.0/geoserver-2.18.0-patches.zip/download).\n  \n   As example the 2.25.1 page links to [geoserver-2.25.1-patches.zip](https://sourceforge.net/projects/geoserver/files/GeoServer/2.25.1/geoserver-2.25.1-patches.zip/download) download on source forge.\n\n2. Unzip the `geoserver-x.y.z-patches.zip` which contains three jars that have been patched to configure `commons-jxpath` with an empty function list prior to use. These files are drop-in replacements with identical file names to those they are replacing.\n\n3. Follow the instructions above to locate `WEB-INF/lib` folder and replace the existing `gt-app-schema`, `gt-complex` and `gt-xsd-core` jars with those supplied by the patch.\n\n### References\nhttps://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w\nhttps://osgeo-org.atlassian.net/browse/GEOT-7587\nhttps://github.com/geotools/geotools/pull/4797\nhttps://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852","status":"published","published":"2024-07-01T20:34:50Z","modified":"2025-10-22T19:25:55Z","cvss":[{"version":"4.0","score":9.3,"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","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H","level":"critical"}],"cwes":["CWE-94","CWE-95"],"updated_at":"2026-11-02T14:39:02.474737Z"}],"kev":[{"id":"CVE-2024-36401","title":"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.","cwes":["CWE-95"],"kev":{"date_added":"2024-07-15","due_date":"2024-08-05","required_action":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","known_ransomware_use":"Unknown"},"updated_at":"2026-11-02T17:00:16.234141Z"}],"nvd":[{"id":"CVE-2024-36401","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.","status":"published","published":"2024-07-01T16:15:04.12Z","modified":"2026-06-17T07:36:38.833Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-95","CWE-94"],"updated_at":"2026-11-02T14:10:09.388795Z"}],"osv":[{"id":"CVE-2024-36401","title":"Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver","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.","status":"published","published":"2024-07-01T15:25:41.873Z","modified":"2026-10-28T02:30:50.712507462Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T15:44:40.704083Z"},{"id":"GHSA-6jj6-gm7p-fcvv","title":"Remote Code Execution (RCE) vulnerability in geoserver","description":"### Summary\nMultiple 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\n### Details\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.\n\n### PoC\nNo 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.\n\n### Impact\nThis vulnerability can lead to executing arbitrary code.\n\n### Workaround\n\nA 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 by an extension you are using:\n\nMitigation for `geoserver.war` deploy:\n\n1. Stop the application server\n2. Unzip `geoserver.war` into a directory\n3. Locate the file `WEB-INF/lib/gt-complex-x.y.jar` and remove\n4. Zip the directory into a new `geoserver.war`\n5. Restart the application server\n\nMitigation for GeoServer binary:\n\n1. Stop Jetty\n2. Locate the file `webapps/geoserver/WEB-INF/lib/gt-complex-x.y.jar` and remove\n3. Restart Jetty\n\nThe following extensions and community modules are known to have a direct dependency on `gt-complex` jar and are not expected function properly without it. This is not comprehensive list and additional GeoServer functionality may be dependent on the availability of `gt-complex` jar:\n* Extensions: Application Schema, Catalog Services for the Web, MongoDB Data Store\n* Community Modules: Features-Templating, OGC API Modules, Smart Data Loader, SOLR Data Store\n\nMitigation available for prior releases patching three jars in your existing install:\n\n1. Patched `gt-app-schema`, `gt-complex` and `gt-xsd-core` jars may be downloaded for GeoServer: [2.25.1](https://sourceforge.net/projects/geoserver/files/GeoServer/2.25.1/geoserver-2.25.1-patches.zip/download), [2.24.3](https://sourceforge.net/projects/geoserver/files/GeoServer/2.24.3/geoserver-2.24.3-patches.zip/download), [2.24.2](https://sourceforge.net/projects/geoserver/files/GeoServer/2.24.2/geoserver-2.24.2-patches.zip/download), [2.23.2](https://sourceforge.net/projects/geoserver/files/GeoServer/2.23.2/geoserver-2.23.2-patches.zip/download), [2.22.2](https://sourceforge.net/projects/geoserver/files/GeoServer/2.22.2/geoserver-2.22.2-patches.zip/download), [2.21.5](https://sourceforge.net/projects/geoserver/files/GeoServer/2.21.5/geoserver-2.21.5-patches.zip/download), [2.21.4](https://sourceforge.net/projects/geoserver/files/GeoServer/2.21.4/geoserver-2.21.4-patches.zip/download),[2.20.7](https://sourceforge.net/projects/geoserver/files/GeoServer/2.20.7/geoserver-2.20.7-patches.zip/download), [2.20.4](https://sourceforge.net/projects/geoserver/files/GeoServer/2.20.4/geoserver-2.20.4-patches.zip/download), [2.19.2](https://sourceforge.net/projects/geoserver/files/GeoServer/2.19.2/geoserver-2.19.2-patches.zip/download), [2.18.0](https://sourceforge.net/projects/geoserver/files/GeoServer/2.18.0/geoserver-2.18.0-patches.zip/download).\n  \n   As example the 2.25.1 page links to [geoserver-2.25.1-patches.zip](https://sourceforge.net/projects/geoserver/files/GeoServer/2.25.1/geoserver-2.25.1-patches.zip/download) download on source forge.\n\n2. Unzip the `geoserver-x.y.z-patches.zip` which contains three jars that have been patched to configure `commons-jxpath` with an empty function list prior to use. These files are drop-in replacements with identical file names to those they are replacing.\n\n3. Follow the instructions above to locate `WEB-INF/lib` folder and replace the existing `gt-app-schema`, `gt-complex` and `gt-xsd-core` jars with those supplied by the patch.\n\n### References\nhttps://github.com/geotools/geotools/security/advisories/GHSA-w3pj-wh35-fq8w\nhttps://osgeo-org.atlassian.net/browse/GEOT-7587\nhttps://github.com/geotools/geotools/pull/4797\nhttps://github.com/Warxim/CVE-2022-41852?tab=readme-ov-file#workaround-for-cve-2022-41852","status":"published","published":"2024-07-01T20:34:50Z","modified":"2026-02-04T02:50:40.504245Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H","level":"critical"},{"version":"4.0","score":9.3,"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","level":"critical"}],"cwes":["CWE-94","CWE-95"],"updated_at":"2026-11-02T15:46:39.965326Z"}]}}
