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.
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.