External risk intelligence

GeoServer Remote Code Execution via WPS Execute Request

CVE advisorySeverity: CRITICAL (CVSS 9.8)

CVE-2023-35042

GeoServer is a server-side application frequently deployed as a public-facing web service to provide geospatial data via OGC-standard APIs such as Web Processing Service (WPS). Because these services are designed to be accessed over the network to deliver map data and processing capabilities, they are commonly exposed to the internet in production environments.

Osgeo Geoserver

2.0.0 and later

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

GeoServer, a geospatial data server, has a critical vulnerability that could allow remote attackers to execute arbitrary code. This issue arises from how certain configurations handle requests, potentially enabling unauthorized code execution through the Web Processing Service (WPS) Execute request. While the vendor has stated they cannot reproduce the vulnerability, it was reportedly exploited in the wild.

  • Remote code execution in geospatial data servers.
  • Critical vulnerability, though vendor cannot reproduce.
  • Assess relevance and exposure to your data.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by sending a specially crafted request to a GeoServer instance that has the WPS service enabled. This request, containing malicious code within a `wps:Execute` operation targeting `wps:LiteralData`, could be processed by the server. If successful, this could allow the attacker to run arbitrary code on the server, potentially leading to a full system compromise.

  • Requires an exposed WPS service.
  • Triggered by a malicious `wps:Execute` request.
  • Risk of arbitrary code execution.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an unauthenticated remote attacker to execute arbitrary code on a GeoServer instance by sending a specially crafted WPS Execute request. This could impact the confidentiality, integrity, and availability of the affected server and any data it manages.

  • Server code execution.
  • Via a malicious WPS Execute request.
  • Compromise of server and data.

Operational Fix

Recommended remediation, mitigation, and detection steps

This critical vulnerability in GeoServer may allow remote attackers to execute arbitrary code, as it has been exploited in the wild. Given its nature as a geospatial data server, application owners and platform teams are likely responsible for its deployment and security. The initial practical step is to confirm the presence and accessibility of GeoServer instances, assess their business criticality, identify the accountable owner, and then plan remediation based on the determined risk, coordinating with vendor management if necessary.

  • Own the issue: Application or Platform teams.
  • Verify first: GeoServer presence and network exposure.
  • Action: Risk-based remediation planning.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is GeoServer?

GeoServer is an open-source server software built in Java that allows users to share, process, and edit geospatial data. It acts as a bridge between spatial data sources and web applications, often providing maps and interactive geographic features through standard interfaces like the Web Processing Service (WPS).

How does CVE-2023-35042 work?

This vulnerability involves improper input validation. It allows an attacker to inject and execute arbitrary system commands by embedding malicious code into a specific part of a web request—the wps:LiteralData field—sent to the GeoServer Web Processing Service. If the server processes this data insecurely, it executes the attacker's commands instead of just handling the geospatial parameters.

Does any specific configuration prevent this?

The vulnerability depends on the Web Processing Service (WPS) being active. If your GeoServer instance does not have the WPS extension installed or enabled, it does not process the specific requests required to trigger this code execution path. Simply disabling the WPS service is a primary way to remove this attack vector.

Is my GeoServer instance at risk?

According to Halo Surface Signal, GeoServer is frequently deployed as a public-facing service to share map data over the internet, which significantly increases risk. If your instance is accessible to the public network, it is inherently more visible to attackers. You should determine if your deployment faces the internet or remains restricted to internal networks.

What steps should I take if I use GeoServer?

Start by identifying all GeoServer instances in your environment and checking if the Web Processing Service is enabled. Coordinate with your application or platform teams to assess the business risk. Since the vendor has noted difficulty reproducing this, prioritize verifying your current network exposure and plan for potential updates or configuration changes to secure the service.

References