The GeoServer RCE Chain: Dissecting the WFS Bypass, xi:include Leak, and HSQLDB Deserialization

Threat actors are actively probing unauthenticated GeoServer instances via stored query vulnerabilities. Here is the technical breakdown of the 5-step exploit chain and immediate remediation steps.

Published: 2026.11.26

Visit Official Site
Exploit Complexity
5-Step Chain

Unauthenticated zero-interaction RCE

Active In-The-Wild Probing
Error-Based

Automated stored query creation

Remediation Target
3 Engine Branches

Patches available across v2.27, v2.28, v3.0

Executive Takeaway ·Immediate upgrades to GeoServer 2.27.7, 2.28.6, or 3.0.2 are mandatory because WFS path traversal and xi:include file disclosure allow unauthenticated coo…

The Anatomy of the Stored Query Bypass and HSQLDB Deserialization Chain

Geospatial data infrastructure has emerged as a high-frequency target for enterprise network intrusion. GeoServer maintainers and security telemetry providers have confirmed active in-the-wild exploitation of two critical vulnerabilities cataloged under CVE-2026-120705 and CVE-2026-129243. These flaws can be stitched together into an unauthenticated remote code execution (RCE) chain that completely subverts edge firewalls and administrative authentication.

The attack vector hinges on a path handling flaw within the Web Feature Service (WFS) router. Under default configurations, creating and modifying stored queries requires administrative privileges. However, security researchers discovered that prefixing the WFS endpoint with an arbitrary identifier—such as x/WFS—causes the routing middleware to fail closed-path verification while still passing the payload to the underlying handler. This routing normalization error grants unauthenticated adversaries direct access to stored query endpoints.

Five-Stage Unauthenticated GeoServer Remote Code Execution Chain

From URI normalization bypass to operating system command execution

01 · Step 01
1. Endpoint Bypass

Adversary issues requests to x/WFS to circumvent stored query access control.

02 · Step 02
2. xi:include File Read

Unescaped XML parses xi:include directives, exfiltrating security/config.xml.

03 · Step 03
3. Cookie Forgery

Attacker computes valid admin session tokens using leaked secret keys and hashes.

04 · Step 04
4. JDBC Reconfiguration

Administrative interface is used to register an external HSQLDB data source.

05 · Step 05
5. Payload Deserialization

Bundled HSQLDB driver deserializes stored Java objects, running arbitrary code.

Once the stored query endpoint is exposed, the attacker triggers an arbitrary file read using XML inclusion. GeoServer’s query parser translates escaped text inside the query payload into active xi:include elements during processing. This mechanism allows the adversary to read arbitrary local configuration files, specifically targeting security/config.xml and directory metadata containing the administrative password hash and the system-wide remember-me secret key.

Possession of these two cryptographic values eliminates the need to conduct offline hash cracking. An attacker can construct a cryptographically valid administrative session cookie and authenticate directly to the GeoServer Web Admin console. Once administrative privileges are established, the attacker registers a new Java Database Connectivity (JDBC) user service directed at a rogue or uploaded HSQLDB database. Upon connection, the bundled HSQLDB driver processes serialized database objects, executing arbitrary commands within the security context of the Java runtime process.

Telemetry from threat intelligence firms indicates that automated scanning scripts are currently issuing error-based probe requests to identify unpatched endpoints. Attackers validate vulnerable infrastructure by attempting to register benign stored queries and inspecting the HTTP response headers for internal parsing exceptions.

Vulnerability Exposure and Patch Cadence Comparison

The current wave of active exploitation follows an earlier critical zero-day disclosure in the GeoServer ecosystem (CVE-2026-76904, CVSS 9.8). Organizations operating geospatial clusters face overlapping exploit windows if maintenance branches are not continuously synchronized.

The primary danger of the current CVE-2026-120705 / CVE-2026-129243 chain lies in the failure of conventional mitigation strategies. GeoServer maintainers specifically noted that rotating administrative passwords or changing cryptographic keys inside security/config.xml does not neutralize an active breach if the file disclosure primitive remains unpatched, as any subsequent request simply extracts the updated credentials.

Metric / DimensionUnpatched GeoServer Clusters (Legacy)Hardened Deployments (Post-Patch)
Authentication RequirementNone (Unauthenticated)Strict RBAC enforced at reverse proxy & servlet
WFS URI HandlingVulnerable to arbitrary prefixing (x/WFS)Strict canonical path normalization
XML Processing SecurityTranslates stored query text into xi:includeFull disabling of external entities and inclusions
Credential ResiliencePassword/Key rotation immediately invalidatedSecrets protected via file system isolation
Secondary Injection SurfaceUnrestricted HSQLDB JDBC driver deserializationDriver connection validation & class restrictions
Mean Time to Exploit (In Wild)Sub-second automated probe verificationExploitation surface neutralized
Attack Resistance: Unpatched vs Upgraded GeoServer

Evaluation of endpoint exposure to stored query chain

Active Exploitation
Unpatched (v2.27.0–v2.27.6)
  • • Path bypass exposes admin query endpoints
  • • xi:include allows arbitrary configuration exfiltration
  • • Administrative session cookies can be forged
Hardened
Patched (v2.27.7 / v2.28.6 / v3.0.2)
  • • Canonical path validation prevents URL routing tricks
  • • XML parsers reject local and external inclusion tags
  • • JDBC data source registration requires local validation
Verdict ·Upgrading the core runtime engine is the only measure that eliminates all five attack links.

Mandatory Patching Path and Perimeter Hardening Protocols

Security engineering teams responsible for public-facing GIS gateways must implement an immediate two-track response: runtime engine upgrades and perimeter ingress filtration. Relying solely on perimeter Web Application Firewalls (WAFs) is insufficient against polymorphic XML payloads, but temporary signature blocking buys necessary operational runway during maintenance windows.

To completely remediate CVE-2026-120705 and CVE-2026-129243, infrastructure leads must deploy the official point releases across their respective release tracks:

  • GeoServer 2.27 Track: Upgrade all instances immediately to 2.27.7 or higher.
  • GeoServer 2.28 Track: Upgrade all instances immediately to 2.28.6 or higher.
  • GeoServer 3.0 Track: Upgrade all instances immediately to 3.0.2 or higher.

If emergency patching cannot be executed within the maintenance cycle, ingress controllers and reverse proxies (e.g., NGINX, HAProxy, Envoy) must be configured to drop non-canonical URI requests. Any incoming HTTP request where the path contains patterns resembling */WFS* with arbitrary prefixes prior to the standard /geoserver/wfs path must return an immediate HTTP 403 Forbidden at the edge layer.

GeoServer Incident Mitigation Architecture

Immediate triage protocol for active enterprise deployments

01 · Ingress Isolation
Filter Malformed WFS Routes

Configure reverse proxies to block non-canonical URI structures containing WFS prefixes.

02 · Core Deployment
Apply Upstream Point Releases

Promote container images to versions 2.27.7, 2.28.6, or 3.0.2 across all environments.

03 · Post-Patch Rotation
Revoke Credentials and Regenerate Keys

Regenerate master encryption keys, admin hashes, and remember-me secrets after patching.

Following engine upgrade verification, organizations must treat existing server credentials as potentially compromised if the service was exposed to the public Internet without proxy-level path normalization. SecOps teams must regenerate all master encryption keys within security/config.xml, reset administrative database and application passwords, and invalidate all existing session cookies to purge potential persistence mechanisms established prior to patch deployment.

Related Benchmark Reports

View All in Category →
Weekly Briefing

Weekly Tech & Business Data Briefing

Verified software analysis, practical gotchas, and essential supply-chain updates delivered weekly.

Unsubscribe with 1 click anytime. Zero spam.

* We may earn an affiliate commission from links in this report, at no extra cost to you and with zero impact on our benchmark data.