# CVE-2023-35042: GeoServer RCE due to improper control of generation of code in jai-ext`Jiffle` map algebra language

Source: https://junglewise.ai/threats/cve-2023-35042-geoserver-rce-due-to-improper-control-of-generation-of-code-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-06-12  
License: CC BY 4.0 with a link back

CVE-2023-35042 · Severity: low · CVSS 3.1 · Published 2023-06-12

GeoServer RCE due to improper control of generation of code in jai-ext`Jiffle` map algebra language

Technologies: [org.geoserver:gs-wfs (Maven)](https://junglewise.ai/threats/technologies/org-geoserver-gs-wfs), [org.geoserver:gs-wms (Maven)](https://junglewise.ai/threats/technologies/org-geoserver-gs-wms). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2023-35042 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-35042 being exploited in the wild.

**How severe is CVE-2023-35042?** Low severity, with a CVSS score of 3.1, published 12 June 2023.

**Which products and versions are affected?** org.geoserver:gs-wfs (Maven) ECOSYSTEM:introduced=0,fixed=2.18.6; org.geoserver:gs-wms (Maven) ECOSYSTEM:introduced=0,fixed=2.18.6; org.geoserver:gs-wps (Maven) ECOSYSTEM:introduced=0,fixed=2.18.6.

**Is there a fix for CVE-2023-35042?** Yes. org.geoserver:gs-wfs (Maven): upgrade to 2.18.6 or later; org.geoserver:gs-wms (Maven): upgrade to 2.18.6 or later; org.geoserver:gs-wps (Maven): upgrade to 2.18.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-35042?** Check whether you run org.geoserver:gs-wfs (Maven), org.geoserver:gs-wms (Maven) or org.geoserver:gs-wps (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.geoserver:gs-wfs (Maven): upgrade to 2.18.6 or later

  ```sh
  # set org.geoserver:gs-wfs to 2.18.6 in your pom.xml or build.gradle
  ```

- org.geoserver:gs-wms (Maven): upgrade to 2.18.6 or later

  ```sh
  # set org.geoserver:gs-wms to 2.18.6 in your pom.xml or build.gradle
  ```

- org.geoserver:gs-wps (Maven): upgrade to 2.18.6 or later

  ```sh
  # set org.geoserver:gs-wps to 2.18.6 in your pom.xml or build.gradle
  ```


## Affected products

- org.geoserver:gs-wfs (Maven) ECOSYSTEM:introduced=0,fixed=2.18.6
- org.geoserver:gs-wms (Maven) ECOSYSTEM:introduced=0,fixed=2.18.6
- org.geoserver:gs-wps (Maven) ECOSYSTEM:introduced=0,fixed=2.18.6

## Identifiers

- CVE-2023-35042
- GHSA-59x6-g4jr-4hxc

## Related threats

- [GeoServer Server-Side Template Injection in FreeMarker templates](https://junglewise.ai/threats/cve-2024-45747-geoserver-server-side-template-injection-in-freemarker-templates)
- [GeoServer has a Reflected Cross-Site Scripting (XSS) vulnerability in its WMS GetFeatureInfo HTML format](https://junglewise.ai/threats/cve-2025-21621-geoserver-has-a-reflected-cross-site-scripting-xss-vulnerability)
- [GeoServer is vulnerable to Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature](https://junglewise.ai/threats/cve-2025-58360-osgeo-geoserver-xxe-in-wms-getmap-operation)
- [GeoServer vulnerable to SSRF in TestWfsPost for specific targets, e.g. PHP + Nginx](https://junglewise.ai/threats/geoserver-vulnerable-to-ssrf-in-testwfspost-for-specific-targets-e-g-614208d1)
- [[XBOW-025-068] XML External Entity (XXE) Processing Vulnerability in GeoServer WFS Service](https://junglewise.ai/threats/cve-2025-30220-xbow-025-068-xml-external-entity-xxe-processing-vulnerability-in)
