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 SiteUnauthenticated zero-interaction RCE
Automated stored query creation
Patches available across v2.27, v2.28, v3.0
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.
From URI normalization bypass to operating system command execution
Adversary issues requests to x/WFS to circumvent stored query access control.
Unescaped XML parses xi:include directives, exfiltrating security/config.xml.
Attacker computes valid admin session tokens using leaked secret keys and hashes.
Administrative interface is used to register an external HSQLDB data source.
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 / Dimension | Unpatched GeoServer Clusters (Legacy) | Hardened Deployments (Post-Patch) |
|---|---|---|
| Authentication Requirement | None (Unauthenticated) | Strict RBAC enforced at reverse proxy & servlet |
| WFS URI Handling | Vulnerable to arbitrary prefixing (x/WFS) | Strict canonical path normalization |
| XML Processing Security | Translates stored query text into xi:include | Full disabling of external entities and inclusions |
| Credential Resilience | Password/Key rotation immediately invalidated | Secrets protected via file system isolation |
| Secondary Injection Surface | Unrestricted HSQLDB JDBC driver deserialization | Driver connection validation & class restrictions |
| Mean Time to Exploit (In Wild) | Sub-second automated probe verification | Exploitation surface neutralized |
Evaluation of endpoint exposure to stored query chain
- • Path bypass exposes admin query endpoints
- • xi:include allows arbitrary configuration exfiltration
- • Administrative session cookies can be forged
- • Canonical path validation prevents URL routing tricks
- • XML parsers reject local and external inclusion tags
- • JDBC data source registration requires local validation
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.
Immediate triage protocol for active enterprise deployments
Configure reverse proxies to block non-canonical URI structures containing WFS prefixes.
Promote container images to versions 2.27.7, 2.28.6, or 3.0.2 across all environments.
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.