---
id: CVE-2023-35042
title: >-
  GeoServer 2, in some configurations, allows remote attackers to execute
  arbitrary code via java.lang.Runtime.getRuntime().exec in wps:LiteralData
  within a wps:Execute request, as exploited in the wild in June 2023
summary: >-
  GeoServer 2, in some configurations, allows remote attackers to execute
  arbitrary code via java.lang.Runtime.getRuntime().exec in wps:LiteralData
  within a wps:Execute request, as exploited in the wild in June 2023. NOTE: the
  vendor state…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: osgeo
product: geoserver
affected:
  - geoserver >= 2.0.0
published: '2023-06-12'
updated: '2026-11-30'
sourceUpdated: '2026-11-30T19:14:34.723'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-35042'
references:
  - url: >-
      https://docs.geoserver.org/stable/en/user/services/wps/operations.html#execute
    label: cve@mitre.org
  - url: 'https://isc.sans.edu/diary/29936'
    label: cve@mitre.org
  - url: >-
      https://docs.geoserver.org/stable/en/user/services/wps/operations.html#execute
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://isc.sans.edu/diary/29936'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - in-the-wild
epss: 0.44825
epssPercentile: 0.98801
exploited: true
ingestedAt: '2026-11-30T19:45:10.589Z'
---

## Overview

GeoServer 2, in some configurations, allows remote attackers to execute arbitrary code via java.lang.Runtime.getRuntime().exec in wps:LiteralData within a wps:Execute request, as exploited in the wild in June 2023. NOTE: the vendor states that they are unable to reproduce this in any version.

## Affected

- `geoserver >= 2.0.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
