CVE

GeoServer RCE Chain Check (CVE-2026-129242)

Fingerprint GeoServer instances and sort them against the fixed releases for the five-bug unauthenticated RCE chain behind CVE-2026-129242.

AuthorTrickest
100%

Notes on this workflow

Target — target list file; bare hosts default http:8080 with https fallback (GeoServer's container/binary default). Probe budget: exactly 3 GETs per host, identify-then-stop pacing (~1-1.5s jitter; instances are often air-gapped critical infrastructure — flood maps, utilities): /geoserver/web/ (login page, version usually in the footer), /geoserver (discovery fallback), and ONE exact read-only GetCapabilities query (service=WFS&version=2.0.0&request=GetCapabilities) to confirm the OGC surface. GET only, no XML bodies ever, no retries.

How it works — a module-level guard admits only the three documented GET paths and the one exact capabilities query string, and hard-aborts on any chain-step marker (CreateStoredQuery/ExecuteStoredQuery, service=x/WFS, XInclude, file://, config.xml, users.xml, system-property content) — the chain's steps 1-3 are structurally unreachable. Version from the login-page footer or the capabilities document. Classification: <2.27.7 affected (incl. <=2.26.x), 2.28.0-2.28.5 affected, 2.28.6+ fixed, 3.0.0-3.0.1 affected, 3.0.2+/3.1+ fixed. Version unknown = exposed with the pre-fix caveat (older builds sometimes omit the version). Verdicts: exposed / not_exposed / not_product / inconclusive (caps served without web-UI fingerprint on a 404 web UI is treated as GeoServer-identified via the capabilities document) / error (5xx stops the host). One finding names the whole chain — cve_ids carries all six.

Overview — five individually patched bugs chain into unauthenticated RCE on a default GeoServer install: 129244 (WFS stored-query exception leaks the data-directory path) -> 129243 (service=x/WFS dispatches to WFS while the security check evaluates the unresolved name; default rules let an anonymous user manage admin-only stored queries) -> 120705 (GetFeatureById substitutes the caller's ID into an XML template unescaped and parses without the entity resolver -> local file read / SSRF, content returned in the error) -> 129245 (remember-me signed with the hard-coded key 'geoserver' -> forged admin session) -> 129242 (JDBC user/role service deserialization -> code exec), with 120704 as Eye Security's alternate finish (SQLite enable_load_extension native library). All six fixed by 2.27.7/2.28.6/3.0.2 (2026-10-19) + GeoTools 33.7/34.6/35.2. watchTowr honeypots observed probing the chain front (GeoServer-RCE-PoC user agent, escaped XInclude against file:///opt/geoserver_data/security/...); full public PoC (CryptoCat 2026-11-23); no confirmed full-chain RCE in the wild. NO NVD records / no KEV / no EPSS yet (verified 2026-11-26) — scores are GeoServer advisory values. EXPOSURE FINGERPRINT ONLY: behavior-based verification is impossible safely — every chain step is an attack action.

Results — out/results.jsonl (probe), out/findings.jsonl (verdict, severity, kev=false, actively_exploited=true with the probing-not-full-RCE caveat, cvss=9.2 + cvss_note with per-CVE scores, exploit_status_note, detection caveat, remediation), out/summary.jsonl (counts, version_unknown_exposed list, record_status_note, coverage note). Remediation: upgrade to 2.27.7/2.28.6/3.0.2 + GeoTools 33.7/34.6/35.2; the 'patched for CVE-2024-36401-class zero-day' hook — you are still exposed; after patching review security/config.xml and users.xml integrity and rotate admin credentials (the file-read step means key material may already be exfiltrated); hunt the GeoServer-RCE-PoC user agent, CreateStoredQuery bodies, XInclude/file:// URIs in logs.

Overview

This workflow finds GeoServer instances missing the fixed releases for the five-bug chain that reaches unauthenticated code execution on a default install: a data-directory path leak, an auth bypass in service dispatch, a stored-query file read and fetch primitive, a forged admin cookie from a hard-coded signing key, and deserialization in the JDBC user services at the end. The project's own advisories score the chain pieces between 6.9 and 9.2, honeypots have seen probing against the front of the chain, and none of the records had populated NVD or KEV entries at compile time, so scores rest on the project advisories. The chain pieces are one story, so the workflow emits one verdict per host with all CVE ids attached and sorts versions against the fixed releases 2.27.7, 2.28.6, and 3.0.2. Each host comes back with a verdict you can feed into exposure management.

Pipeline

  1. Read the target list and GET the GeoServer web UI login page, where the version string usually appears.
  2. Fall back to the bare context path when the web UI path does not answer.
  3. Send one WFS GetCapabilities request against the OWS endpoint to confirm the service is live and speaking GeoServer.
  4. Classify the version against the fixed releases; a version below them is exposed to the chain, and a version at or above them is not exposed. Unreadable versions keep the row uncertain rather than clean.
  5. Reconcile one verdict per target and write findings plus summary counts, with all six CVE ids attached to each finding.

Inputs

  • Target list. GeoServer base URLs you are authorized to test. The default file ships a sample fleet list; bind your own.

Outputs

  • findings.jsonl. One row per host: URL, version and its source, service confirmation, verdict with the CVE id list attached, severity, and evidence.
  • summary.jsonl. One line with verdict counts and the sorted target lists per verdict.

Integrations

  • HTTP. Three GET requests per host: the web UI, a discovery fallback, and one GetCapabilities document. No POSTs and no chain steps are ever sent.

Sample output

The records below are illustrative and do not come from a real run. They show a server below the fixes, a patched one, and one where the version is not readable.

targetis_geoserverversionversion_sourceservice_confirmedverdictcve_idsdetailerror
https://maps-a.example.comtrue2.26.2web UItrueexposedCVE-2026-129242, CVE-2026-129243, CVE-2026-129244, CVE-2026-129245, CVE-2026-120705, CVE-2026-120704version below 2.27.7 / 2.28.6 / 3.0.2null
https://maps-b.example.orgtrue2.28.6web UItruenot_exposedCVE-2026-129242, CVE-2026-129243, CVE-2026-129244, CVE-2026-129245, CVE-2026-120705, CVE-2026-120704at the fixed release for its linenull
https://maps-c.example.nettruenullnulltrueinconclusiveCVE-2026-129242, CVE-2026-129243, CVE-2026-129244, CVE-2026-129245, CVE-2026-120705, CVE-2026-120704GeoServer confirmed but version hiddennull
{"cve": "CVE-2026-129242", "product": "GeoServer", "total_targets": 3, "verdict_counts": {"exposed": 1, "not_exposed": 1, "inconclusive": 1}, "exposed_targets": ["https://maps-a.example.com"], "not_exposed_targets": ["https://maps-b.example.org"], "inconclusive_targets": ["https://maps-c.example.net"], "error_targets": []}

FAQ

Why does one finding carry six CVE ids?

The six records are one chain on the same product: a path leak, an auth bypass, a read primitive, a forged admin session, and two code-execution finishes. A host missing the fixed releases is exposed to the chain as a whole, so the workflow reports one issue per host with the full id list.

Does the workflow exercise any chain step?

No. Every chain step needs crafted requests, from stored-query exceptions to the deserialization payload. The workflow sends three ordinary GET requests and reads what comes back.

Which versions are affected?

The fixes shipped on 2026-10-19 in GeoServer 2.27.7, 2.28.6, and 3.0.2, with matching GeoTools releases. Older builds carry the whole chain on a default install.

What is CVE-2026-129242?

Deserialization in GeoServer's JDBC user and role services, the code-execution step of the chain. At compile time the CVE records were still populating, so the workflow keeps the provenance note on its rows.

Get a personalized demo

See Trickest in Action

A 30-minute walkthrough. We map the platform to your stack and answer pricing and deployment questions for your environment.