I found unauthenticated remote command execution in GeoServer that works on a default installation.
Prefixing the Web Feature Service (WFS) name, as in x/WFS , slips past the admin-only rule for stored queries. GeoServer turns escaped text in a saved query into live xi:include elements, which leaks the files holding the remember-me key and the admin password digest.
Those two values forge an administrator cookie without cracking the password. As admin, the attacker points a JDBC user service at an uploaded HSQLDB database, and the bundled driver deserialises a stored value that runs commands.
GeoServer 2.27.6 and earlier, 2.28.0 to 2.28.5, and 3.0.0 to 3.0.1 are affected. The fixes are in 2.27.7, 2.28.6 and 3.0.2, and GeoServer lists all five CVEs in the remember-me key advisory .
Vulnerability: Pre-Authentication Remote Command Execution via WFS and HSQLDB
Affected Versions: >= 3.0.0, = 2.28.0, .xml suffix off that path leaves the data directory.
Two Names for the Same WFS Service (CVE-2026-129243)
The release services.properties protects stored-query creation and deletion.
Both rules only match a service named wfs .
GeoServer's dispatcher also accepts service identifiers containing a slash. Dispatcher.findService() treats the prefix as path or workspace context.
For service="x/WFS" , the dispatcher strips x/ at [8] and finds the real WFS service. The surrounding service() method attaches that WFS service to the request, but leaves the request's service name as x/WFS .
The security callback in OperationSecurityCallback.java reads that name.
The callback still has x/WFS at [9] , which never equals wfs at [10] . With no matching rule, [11] skips the role check, so an anonymous user can create and delete stored queries.
XML Text Becomes XML Again (CVE-2026-120705)
XInclude lets an XML document include another resource. The stored-query request carries escaped XInclude elements inside the WFS query text.
The request parser decodes string. When GeoServer persists the accepted query, QueryExpressionTextTypeBinding.encode() parses that string again.
At [13] the literal from security/config.xml and the default user service's users.xml , including the administrator's password digest from its password attribute.
The Cookie Needs No Password Cracking (CVE-2026-129245)
GeoServer's remember-me usernames carry the user service name , so the stock administrator is admin@default . RememberMeUserDetailsService.java splits that name, loads the service and returns its user.
default at [16] is the file user service, and the XInclude read already returned its users.xml . XMLUserGroupService passes each password attribute through createUserObject() unchanged, so the user loaded at [17] carries the same digest the attacker already has.
Spring Security 7.0.5 builds the cookie signature in its four-argument implementation .
[18] hashes the username, expiry, password digest and key. WFS has already returned the digest and the key, so an attacker can compute a valid SHA-256 signature for admin@default and exchange the cookie for an administrator session.
A Database Value Becomes a Java Object (CVE-2026-129242)
With that session, an attacker can write files beneath the data directory through ResourceController.resourcePut() and register a JDBC user service through UserGroupServiceController.post() . HSQLDB ships with GeoServer 3.0.0, and JdbcSecurityConfigValidator.java allows a local HSQLDB URL, so the service can point at an uploaded database.
A user lookup through the resulting JDBC service reaches this loop in JDBCUserGroupService.java .
getObject() at [19] returns whatever Java object the driver says the column holds. For HSQLDB's OTHER type, JDBCResultSet.getObject() in version 2.7.2 takes this branch.
[20] hands the stored bytes to JavaObjectData.getObject() .
InOutUtil.deserialize() at [21] builds a plain ObjectInputStream .
The stream at [22] has no object filter, so readObject() at [23] rebuilds whatever object graph the attacker stored, from any serialisable class on GeoServer's classpath.
Successful exploitation runs arbitrary commands with the operating-system permissions of the GeoServer process. The chain works on a default Linux install with no extensions or configuration changes. It ran on OpenJDK 17 under Jetty 12 and on the Java 21 runtime in the official Docker image.
Network access to GeoServer's WFS endpoint and REST API.
The stock admin account enabled in the default user service.
A Linux host, because the payload runs /bin/sh -c .
The PoC accompanying this writeup runs the whole chain and prints the command's output. Its HSQLDB database stores a PriorityQueue with a BeanComparator . When the queue rebuilds itself, the comparator calls getOutputProperties() on a JDK TemplatesImpl . That loads a compiled XSLT translet, and the translet's constructor runs the command.
This run is against the official 3.0.0 container, where GeoServer runs as root.
The Overlong ID No Longer Leaks the Path
GEOS-12240 changes StoredQueryProvider.getStoredQuery() in two places.
The early return keeps an overlong ID away from Files.readAttributes() , and the new throw drops the e cause, so the filesystem error only reaches the log. An attacker who already knows the data-directory path doesn't need this step.
The Service Name Is Canonicalised Before the Access Check
Dispatcher.service() now replaces the request's service name with the resolved service ID before the security callback runs, as long as the request had one ( GEOS-12195 , PR #9922 ).
OperationSecurityCallback is unchanged, but it now reads WFS instead of x/WFS . The wfs.CreateStoredQuery and wfs.DropStoredQuery rules match, so the anonymous request is rejected before it can store anything.
Stored-Query Parsing Uses the Configured Entity Resolver
StoredQueryProvider.parseStoredQuery() installs GeoServer's configured entity resolver on the reload parser ( GEOS-12199 , PR #9928 ).
The resolver now comes from the catalog's ResourcePool instead of the process-wide NullEntityResolver . The file is still reparsed, but its xi:include elements can no longer open file: references, so DescribeStoredQueries has nothing to return from config.xml or users.xml .
GEOS-12199 also sets the resolver in StoredQuery.compile() , which parses the built-in GetFeatureById query. That query has its own XML injection, which GHSA-39mw-5chv-jh47 describes. GeoServer filed the stored-query XInclude read under the same advisory. The advisory also lists GEOT-7938 from GeoTools 35.2, where PreventLocalEntityResolver now follows allowed HTTP redirects itself and checks each destination against its allow-list.
JDBC Property Values Are Read as Text
GEOS-12239 changes JDBCUserGroupService to read each property value with getString() instead of getObject() .
An OTHER value now comes back as its string form, so HSQLDB never hands the stored bytes to ObjectInputStream . The same change covers the bulk user-property load and every property read in JDBCRoleService .
The Remember-Me Key Is No Longer Read From the Data Directory
PR #10008 removes the stored key and its setter from RememberMeServicesConfig . The key now comes from GEOSERVER_REMEMBERME_KEY , or from a random value generated once per run.
The chain read the live key, so it never depended on the shipped geoserver value. With the key out of the data directory, a file read no longer reveals it.
Upgrade to GeoServer 3.0.2, 2.28.6 or 2.27.7.
The fixed releases generate a new remember-me key each time they start, so remember-me cookies stop working after a restart. If you run a cluster and need cookies to work across nodes, set the same GEOSERVER_REMEMBERME_KEY on each one.
If you can't upgrade straight away, GeoServer's advisories suggest blocking service values that contain / at a proxy and removing rememberme from the web filter chain. They also suggest checking wfs/query and workspaces/*/wfs/query in the data directory for stored queries you didn't create.
August 2, 2026: I reported the full chain to the GeoServer team through a private GitHub security advisory, and sent a revised PoC the same day.
August 10, 2026: Security team acknowledged the report.
August 15, 2026: I retested the chain on the official 3.0.0 release and on 3.0.1, released the day before, and it worked on both.
September 14, 2026: The service-rule bypass fix ( #9922 ) merged.
September 24, 2026: The remember-me configuration fix ( #10008 ) merged.
October 12, 2026: The stored-query entity-resolver fix ( #9928 ) merged.
October 13, 2026: The entity-resolver change was backported to 3.0.x ( #10080 ), and GeoTools merged the accompanying GEOT-7938 redirect hardening.
October 15, 2026: The JDBC property fix and WFS path-disclosure fix landed on 3.0.x.
October 17, 2026: GeoServer 3.0.2 released with fixes for the chain.
October 18, 2026: GeoServer 2.27.7 released with the same fixes.
October 29, 2026: GeoServer identified the five fixes in 3.0.2, scheduled disclosure under GEOS-12273 and asked GitHub for CVEs.
November 2, 2026: GeoServer 2.28.6 released with the same fixes.
November 7, 2026: At the GitHub CVE team's request, GeoServer split the report into five advisories and retitled the original one to cover the remember-me key.
November 16, 2026: GitHub assigned a CVE to each of the five advisories.
November 23, 2026: GeoServer published all five advisories. Quikko and nteusink are also credited on the x/WFS bypass and XML injection advisories, and McCaulay was added as a reporter on the remember-me key advisory.
Five separate vulns took an anonymous WFS request in GeoServer to command execution as the GeoServer process. I guess you could call this GeoServer2Shell 😁
Proof-of-concept exploit ( Crypto-Cat/geoserver-unauth-rce-poc )
GHSA-4v26-c537-jvxc: WFS stored query exception discloses data directory path
GHSA-rv5g-g2r9-58rj: Service security rules bypassed with a prefixed service name such as x/WFS
GHSA-39mw-5chv-jh47: Unauthenticated WFS GetFeatureById XML injection
GHSA-hgm3-wq4h-8vvq: Predictable remember-me key allows administrator session forgery
GHSA-9wf2-fcgq-vxhq: Deserialization in JDBC user and role services allows administrator code execution
GeoServer 3.0.2 release
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
