{"id":"CVE-2024-36401","kind":"vulnerability","aliases":["CVE-2024-36401"],"related":[],"title":"GeoServer is an open source server that allows users to share and edit geospatial data","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.","summary":"GeoServer's GeoTools library evaluates property names as XPath expressions without safe handling, so crafted input is run as code. An unauthenticated attacker can execute code on the server.","severity":"critical","cvss":9.8,"epss":null,"exploited":true,"exploited_at":"2024-07-15T00:00:00+00:00","products":[{"name":"OSGeo GeoServer","fixed":[],"affected":"","ecosystem":"vendor"},{"name":"geoserver","fixed":["2.22.6"],"affected":"< 2.22.6","ecosystem":"vendor"},{"name":"geoserver","fixed":["2.23.6"],"affected":">= 2.23.0, < 2.23.6","ecosystem":"vendor"},{"name":"geoserver","fixed":["2.24.4"],"affected":">= 2.24.0, < 2.24.4","ecosystem":"vendor"},{"name":"geoserver","fixed":["2.25.2"],"affected":">= 2.25.0, < 2.25.2","ecosystem":"vendor"},{"name":"geotools","fixed":["29.6"],"affected":"< 29.6","ecosystem":"vendor"},{"name":"geotools","fixed":["30.4"],"affected":">= 30.1, < 30.4","ecosystem":"vendor"},{"name":"geotools","fixed":["31.2"],"affected":">= 31.1, < 31.2","ecosystem":"vendor"},{"name":"geotools","fixed":[],"affected":"= 30.0","ecosystem":"vendor"},{"name":"geotools","fixed":[],"affected":"= 31.0","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["exploited","geoserver","geotools","package","self-hosted"],"not_affected_if":["default-config"],"how_to_check":null,"fix":"Apply the vendor mitigation from the OSGeo GeoServer advisory; the sources do not name the fixed version.\nIf no mitigation is available, stop using the affected GeoServer instance.","status":"open","published_at":"2024-07-01T16:15:04+00:00","first_seen_at":"2026-10-23T19:11:51+00:00","triaged_at":"2026-10-23T20:58:34+00:00","updated_at":"2026-10-23T22:29:05+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-23T20:58:34Z","model":"claude-haiku-5-5","output":{"fix":"Apply the vendor mitigation from the OSGeo GeoServer advisory; the sources do not name the fixed version.\nIf no mitigation is available, stop using the affected GeoServer instance.","reach":"internet","impact":"high","summary":"GeoServer's GeoTools library evaluates property names as XPath expressions without safe handling, so crafted input is run as code. An unauthenticated attacker can execute code on the server.","category":"package","who_cares":["geoserver","geotools","self-hosted"],"confidence":0.8,"needs_auth":"no","worst_case":"Unauthenticated remote code execution on the GeoServer host","analyst_note":"Find the fixed GeoServer versions and mitigation steps in the OSGeo advisory and CISA KEV entry for CVE-2024-36401, and confirm which configurations are exploitable.","how_to_check":"unknown","needs_analyst":true,"not_affected_if":["default-config"],"user_interaction":"no","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000469,"input_tokens":2859,"output_tokens":366,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-2024':17A,20A '-36401':18A,21A '2.22.6':87C,233C '2.23.6':88C,234C '2.24.4':89C,235C '2.25.1':266C '2.25.2':91C,237C 'allow':8A,76C,96C 'api':125C 'appli':179C,190C 'applic':171C 'arbitrari':151C,230C 'attack':62B 'break':277C 'call':128C 'code':59B,65B,98C,152C,231C,272C 'common':145C 'commons-jxpath':144C 'complex':167C,290C 'confirm':205C 'contain':238C 'craft':54B,106C 'cve':16A,19A 'data':15A,83C,173C 'default':110C 'deploy':285C 'due':113C 'e.g':261C 'edit':13A,81C 'evalu':44B,116C,129C,154C,159C 'execut':64B,99C,150C,222C,229C 'exist':246C 'exploit':33B,208C 'express':49B,121C,156C 'featur':133C,168C,182C 'file':251C 'function':280C 'geoserv':1A,34B,40B,69C,111C,127C,193C,254C,265C,274C,279C,283C 'geoserver':23A,24A,25A,26A,27A 'geospati':14A,82C 'geotool':35B,42B,123C,259C 'geotools':28A,29A,30A,31A,32A 'getfeatur':211C 'getfeatureinfo':217C 'getlegendgraph':219C 'getmap':215C 'getpropertyvalu':213C 'gt':289C 'gt-complex':288C 'gt-complex-31.1.jar':262C 'gt-complex-x.y.jar':250C 'handl':52B 'host':39B 'i.e':170C 'incorrect':177C 'input':55B,107C 'instal':112C 'instanc':194C 'intend':161C 'issu':243C 'jxpath':146C 'lead':227C 'librari':43B,124C,147C 'make':187C 'may':276C 'modul':291C 'multipl':92C 'name':46B,118C,131C 'need':293C 'ogc':93C 'open':4A,72C 'osgeo':22A 'packag':36B 'paramet':95C 'pass':140C 'patch':240C 'poc':197C 'prevent':282C 'prior':84C 'properti':45B,117C 'property/attribute':130C 'provid':199C 'public':196C 'rce':100C 'remot':97C 'remov':248C,269C 'request':94C,223C 'run':57B,264C 'safe':51B 'schema':172C 'self':38B 'self-host':37B 'server':6A,68B,74C 'share':11A,79C 'simpl':181C 'sourc':5A,73C 'special':105C 'store':174C 'type':134C,169C,183C 'unauthent':61B,102C 'unsaf':115C,139C 'use':164C 'user':9A,77C,103C 'version':86C,232C,260C 'vulner':189C,202C,225C,271C 'way':137C 'well':185C 'wfs':210C,212C 'without':50B 'wms':214C,216C,218C 'workaround':245C 'wps':221C 'x.y':256C 'xpath':48B,120C,155C,158C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2024-07-01T16:15:04+00:00","kev":{"dateAdded":"2024-07-15","dueDate":"2024-08-05","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2024-36401","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-36401","severity":null,"published_at":"2024-07-15T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:51+00:00","fetched_at":"2026-10-25T21:35:48+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-36401","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36401","severity":null,"published_at":"2024-07-01T16:15:04+00:00","modified_at":"2026-06-17T07:36:38+00:00","first_seen_at":"2026-10-23T22:29:05+00:00","fetched_at":"2026-10-23T22:29:05+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}