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

Advisory record · `GHSA-59x6-g4jr-4hxc`

- **Identifiers:** `GHSA-59x6-g4jr-4hxc` · `CVE-2023-35042`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+, CVSS 7+ and EPSS
- **Published:** 12 Jun 2023
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 12 Jun 2023, 15:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.8: 9.0 or more.
- CVSS score 9.8 (7.0 or more) and EPSS 0.45 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `org.geoserver:gs-wms` (Maven): affected `<2.18.6 || >=2.19.0, <2.19.6 || >=2.20.0, <2.20.4`; fixed in `2.18.6`, `2.19.6`, `2.20.4`
- `org.geoserver:gs-wfs` (Maven): affected `<2.18.6 || >=2.19.0, <2.19.6 || >=2.20.0, <2.20.4`; fixed in `2.18.6`, `2.19.6`, `2.20.4`
- `org.geoserver:gs-wps` (Maven): affected `<2.18.6 || >=2.19.0, <2.19.6 || >=2.20.0, <2.20.4`; fixed in `2.18.6`, `2.19.6`, `2.20.4`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> GeoServer gs-wms, gs-wfs and gs-wps modules are vulnerable to remote code execution in versions before 2.18.6, from 2.19.0 before 2.19.6, and from 2.20.0 before 2.20.4. In some configurations, a remote attacker can send a crafted request that causes arbitrary code to run through the Jiffle map algebra language in jai-ext. Upgrade to 2.18.6, 2.19.6, or 2.20.4 as appropriate; if upgrading is not possible, the source recommends removing the janino jar from WEB-INF/lib, which disables Jiffle compilation.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.8 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.45, the 98th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:18 UTC: First seen by agentprime
- 31 Oct 2026, 14:18 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-59x6-g4jr-4hxc)

## Sources

- [GitHub Advisory Database: GHSA-59x6-g4jr-4hxc](https://github.com/advisories/GHSA-59x6-g4jr-4hxc)
- [OSV: GHSA-59x6-g4jr-4hxc](https://osv.dev/vulnerability/GHSA-59x6-g4jr-4hxc)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-35042>
- <https://docs.geoserver.org/stable/en/user/services/wps/operations.html#execute>
- <https://geoserver.org/vulnerability/2022/04/11/geoserver-2-jiffle-jndi-rce.html>
- <https://github.com/geoserver/geoserver>
- <https://isc.sans.edu/diary/29936>
- <https://osgeo-org.atlassian.net/browse/GEOS-10458>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-59x6-g4jr-4hxc>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-59x6-g4jr-4hxc/>. Everything for agents: <https://agentprime.io/llms.txt>.
