CVE
CVE-2026-129245, CVE-2026-120705, CVE-2026-129243, CVE-2026-129244, CVE-2026-129242, CVE-2026-120704, CVE-2026-120706, CVE-2026-120701, CVE-2026-120707, CVE-2026-120708, CVE-2026-120703, CVE-2026-129294, CVE-2026-129293, CVE-2026-120709, CVE-2026-120702, CVE-2026-129240
CWE
CWE-863, CWE-91, CWE-611, CWE-321, CWE-502, CWE-209, CWE-94
Affected Surface
- GeoServer 3.0.0 to 3.0.1, 2.28.0 to 2.28.5, and 2.27.6 and earlier (fixed in 3.0.2, 2.28.6 and 2.27.7, announced 19 October 2026)
- Maven artifacts `org.geoserver:gs-ows`, `org.geoserver:gs-wfs-core` / `gs-wfs`, `org.geoserver:gs-main` and `org.geoserver.security:gs-sec-jdbc` in the same ranges, plus `org.geotools:gt-metadata` 33.6 and earlier, 34.0 to 34.5 and 35.0 to 35.1 (fixed in 33.7, 34.6 and 35.2)
- Official GeoServer container images built from the affected releases; the researcher's PoC ran as root in the official 3.0.0 image
TL;DR
GeoServer, the open source Java server that publishes map data over WFS, WMS and WCS, fixed a batch of security bugs in releases 3.0.2, 2.28.6 and 2.27.7, announced on 19 October 2026. The advisories didn’t go public until 23 November, after GitHub assigned CVEs. Five of them chain into unauthenticated command execution on a default install:
- CVE-2026-129244. An overlong stored query ID makes the WFS error message print the absolute data directory path.
- CVE-2026-129243. Sending
service=x/WFSreaches the WFS service, but the security check compares rules against the stringx/WFS, finds none, and lets anonymous users create and delete stored queries. - CVE-2026-120705. Stored query text gets parsed back into XML with XInclude enabled, so a saved query can pull in
security/config.xmlandusers.xml. The built-inGetFeatureByIdquery has a second injection in the same code that reads files in a single request. - CVE-2026-129245. GeoServer signs remember-me cookies with the stored password digest and a key that ships as
geoserver. With the digest and the key from step 3, an attacker can forge an admin cookie without cracking anything. - CVE-2026-129242. As admin, upload an HSQLDB database and register it as a JDBC user service. The driver deserializes a stored Java object when GeoServer reads user properties.
Rapid7 researcher Jonah Burgess (CryptoCat) reported the chain on 2 August and published a write-up and proof-of-concept on 23 November. Eye Security found an overlapping chain through GetFeatureById and SQLite extension loading (CVE-2026-120704). On 25 November watchTowr said its honeypots had seen attackers creating stored queries, checking them and deleting them again. None of the CVEs were in CISA KEV as of the 25 November catalog, but GeoServer has been there before (CVE-2024-36401 and CVE-2025-58360).
What to do now:
- Upgrade to GeoServer 3.0.2, 2.28.6 or 2.27.7. Anything older than 2.27 has no fix.
- If you can’t upgrade today, block requests whose
serviceparameter contains/at your proxy, removeremembermefrom thewebfilter chain, and keep/restoff the internet. - Check
wfs/queryandworkspaces/*/wfs/queryin the data directory for stored queries nobody on your team created. If you find one, assume the admin password digest and remember-me key are known and follow the remediation steps below.
Affected packages and projects
| Ecosystem | Package | Affected versions | Fixed or safe version |
|---|---|---|---|
| GeoServer (WAR, binary, Docker) | GeoServer 3.0.x | 3.0.0 to 3.0.1 | 3.0.2 |
| GeoServer (WAR, binary, Docker) | GeoServer 2.28.x | 2.28.0 to 2.28.5 | 2.28.6 |
| GeoServer (WAR, binary, Docker) | GeoServer 2.27.x and earlier | 2.27.6 and earlier | 2.27.7 (out-of-cycle release for an end-of-life series; nothing older is patched) |
| Maven | org.geoserver:gs-ows (CVE-2026-129243) | <= 2.27.6, 2.28.0 to 2.28.5, 3.0.0 to 3.0.1 | 2.27.7, 2.28.6, 3.0.2 |
| Maven | org.geoserver:gs-wfs-core (CVE-2026-120705, CVE-2026-129244) | same ranges | 2.27.7, 2.28.6, 3.0.2 |
| Maven | org.geotools:gt-metadata (CVE-2026-120705) | <= 33.6, 34.0 to 34.5, 35.0 to 35.1 | 33.7, 34.6, 35.2 |
| Maven | org.geoserver:gs-main (CVE-2026-129245) | same ranges as GeoServer | 2.27.7, 2.28.6, 3.0.2 |
| Maven | org.geoserver.security:gs-sec-jdbc (CVE-2026-129242, CVE-2026-120704) | same ranges as GeoServer | 2.27.7, 2.28.6, 3.0.2 |
The same releases fix 13 more advisories published on 23 November. The ones worth knowing about: unauthenticated SSRF and file read through inline VRT passed to GDAL in the WPS extension (CVE-2026-120706, rated 8.2) and through WPS gs:DownloadMap (CVE-2026-120701), X-Forwarded-For bypasses of source-IP rules in GeoFence and the ACL plugin (CVE-2026-120707, CVE-2026-120708), unauthenticated style management in the OGC API Styles community module (CVE-2026-129294), a JWT Headers community module that trusts the roles header (CVE-2026-120703), and stored XSS in the style editor (CVE-2026-129293).
Technical analysis
The code below comes from the advisories, CryptoCat’s write-up and the fix commits on GitHub.
Step 1: the data directory path leaks through an error (CVE-2026-129244)
StoredQueryProvider.toFilename() turns a stored query ID into a file name by stripping non-word characters and adding .xml. Nothing limits the length:
String toFilename(String name) {
// remove any special characters... like ':'
return name.replaceAll("\\W", "") + ".xml";
}
An ID of about 4,000 characters makes the path longer than Linux allows. Files.readAttributes() throws File name too long, the resource store rethrows it as the cause of an IllegalStateException, and the OWS exception builder walks every nested cause into the public error, path included. The fix (GEOS-12240) rejects overlong IDs early and logs the filesystem error instead of returning it.
Step 2: x/WFS is WFS to the dispatcher but not to the security check (CVE-2026-129243)
GeoServer’s default security/services.properties limits stored query creation and deletion to admins:
wfs.DropStoredQuery=ADMIN,GROUP_ADMIN
wfs.CreateStoredQuery=ADMIN,GROUP_ADMIN
Dispatcher.findService() treats anything before a / as workspace or path context and drops it, so x/WFS resolves to the WFS service. The request object kept the original string, though, and OperationSecurityCallback matched rules against that:
public Operation operationDispatched(Request request, Operation operation) {
String service = request.getService(); // still "x/WFS"
String method = request.getRequest();
...
for (ServiceAccessRule rule : rules) {
if (rule.getService().equals(ServiceAccessRule.ANY)
|| rule.getService().equalsIgnoreCase(service)) { // never matches "wfs"
...
if (bestMatch != null) { // no match means no role check
No rule matched, so the role check never ran. The fix (e5a79f6, merged 14 September) writes the resolved service ID back onto the request before the security callbacks fire:
req.setServiceDescriptor(serviceDescriptor);
+ // don't set it if it was never provided in the first place
+ if (req.getService() != null) {
+ req.setService(serviceDescriptor.getId());
+ }
return fireServiceDispatchedCallback(req, serviceDescriptor);
The advisory notes that any other operation you protected only through service security, WFS Transaction for example, was open the same way. Layer and data security rules still applied.
Step 3: escaped text becomes live XInclude (CVE-2026-120705)
With stored query creation open, CryptoCat creates a query whose body carries XInclude elements as escaped text:
<wfs:Query typeNames="">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns="" href="file:///absolute/data/security/config.xml" parse="text"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns="" href="file:///absolute/data/security/usergroup/default/users.xml" parse="xml"/>
</wfs:Query>
The request parser decodes < to < and GeoTools’ CopyingHandler appends it to the query text unescaped. When GeoServer saves the query, QueryExpressionTextTypeBinding.encode() parses that text again, and now the xi:include elements are real markup in the file on disk. DescribeStoredQueries, which anyone can call, reloads the file with new Parser(new WFSConfiguration()). GeoTools turns XInclude on whenever DTD support is off, and the process-wide entity resolver installed at startup (NullEntityResolver) lets file: URLs through. The response carries the remember-me key from config.xml and the admin’s password digest from users.xml. This is where the step 1 path comes in: the href needs an absolute path.
Eye Security’s Niels Teusink found a second route into the same parser. The built-in GetFeatureById stored query fills ${ID} into <fes:ResourceId rid='${ID}'/> by plain string replacement, so a quote in the ID closes the attribute and the attacker can add elements, xi:include among them. That needs no stored query and no x/WFS trick, just one anonymous GetFeature request. File contents come back in the Illegal property name error when a layer is published to anonymous users. The same request can also fetch an HTTP or HTTPS URL of the attacker’s choosing.
The fix (9bf9831 and follow-ups, merged 12 October) gives both parsers the catalog’s entity resolver instead of the global default:
// parse
Parser p = new Parser(new WFSConfiguration());
+ EntityResolver entityResolver = getEntityResolver();
+ if (entityResolver != null) {
+ p.setEntityResolver(entityResolver);
+ }
GeoTools 33.7, 34.6 and 35.2 also make PreventLocalEntityResolver check every redirect hop against its allow-list (GEOT-7938).
Step 4: a cookie from a digest and a known key (CVE-2026-129245)
GeoServer’s remember-me service uses Spring Security’s token format. The signature covers the user name, expiry, the stored password value and the key:
String data = username + ":" + tokenExpiryTime + ":" + password + ":" + getKey();
password here is the digest exactly as it sits in users.xml, not the plaintext. The key came from security/config.xml, and the release data directory ships it as geoserver. Eye Security points out that GeoServer hashes passwords with 100,000 rounds of SHA-256, which is fine against cracking. It doesn’t matter here: anyone holding the digest and the key can compute a valid cookie for admin@default and trade it for a JSESSIONID. Changing the key doesn’t help if the same file read reveals the new one.
PR #10008 takes the key out of the data directory entirely:
- public static final String DEFAULT_KEY = "geoserver";
+ /** System or environment property that sets the remember-me cookie key across a cluster. */
+ public static final String KEY_PROPERTY = "GEOSERVER_REMEMBERME_KEY";
+
+ private static final int RANDOM_KEY_BYTES = 32;
+
+ private static final SecureRandom SR = new SecureRandom();
+ private static final String resolvedKey = resolveKey();
- String key = DEFAULT_KEY;
+ static String resolveKey() {
+ String configured = GeoServerExtensions.getProperty(KEY_PROPERTY);
+ if (configured != null && !configured.isBlank()) {
+ return configured;
+ }
+ byte[] bytes = new byte[RANDOM_KEY_BYTES];
+ SR.nextBytes(bytes);
+ return HexFormat.of().formatHex(bytes);
+ }
Each node now generates a random key at startup, so remember-me cookies stop working after a restart unless you set GEOSERVER_REMEMBERME_KEY.
Step 5: a database value becomes a Java object (CVE-2026-129242)
With an admin session, the REST API lets you write files under the data directory (/rest/resource) and register a JDBC user group service (/rest/security). HSQLDB ships with GeoServer and the JDBC config validator accepts a local HSQLDB URL. JDBCUserGroupService read user properties like this:
while (rs2.next()) {
String propName = rs2.getString(1);
Object propValue = rs2.getObject(2);
u.getProperties().put(propName, propValue == null ? "" : propValue);
}
For a column of HSQLDB type OTHER, getObject() hands the stored bytes to InOutUtil.deserialize(), which is a bare ObjectInputStream.readObject() with no filter. CryptoCat’s PoC stores a PriorityQueue with a BeanComparator that ends in TemplatesImpl loading a compiled translet, which runs /bin/sh -c <command>. Against the official 3.0.0 container it returned uid=0(root). The fix (64d16ce, 15 October) reads every property as text, in both JDBCUserGroupService and JDBCRoleService:
String propName = rs2.getString(1);
- Object propValue = rs2.getObject(2);
+ String propValue = rs2.getString(2);
Eye Security’s chain ends differently. As admin, it points a JDBC security service at SQLite with enable_load_extension=true and a DML file that runs SELECT load_extension(...), which loads a native library into the GeoServer process (CVE-2026-120704). On Windows the DML file and the library can sit on an SMB share. The fix limits JDBC security services to known drivers and per-driver connection parameters, rejects absolute DML/DDL paths, and adds a GEOSERVER_JDBC_EXTRA_PARAMETERS property for anything else.
What’s being exploited
watchTowr’s FAQ, published at 12:45 UTC on 25 November, lists the chain as exploited in the wild. Yordan Ganchev, a principal threat intelligence specialist at watchTowr, told The Hacker News that the honeypot traffic that morning came from several IP addresses, each creating a stored query, checking it existed and deleting it right away. The quote names CVE-2026-120705 and CVE-2026-129244, while CryptoCat’s timeline names CVE-2026-120705 and CVE-2026-129243. Either way, an anonymous user can only create a stored query on a default install through the x/WFS bypass, so these probes test exactly the first half of the chain. watchTowr hasn’t published source IPs or payloads, and nobody has attributed the activity.
IOCs
No network indicators have been published for the 25 November activity. Look for the chain’s footprints instead:
- WFS requests where the
serviceparameter (query string or theserviceattribute of an XML body) contains a/, such asservice=x/WFS CreateStoredQuery,DescribeStoredQueriesandDropStoredQuerycalls from unauthenticated clients, especially in quick successionGetFeaturerequests forurn:ogc:def:query:OGC-WFS::GetFeatureByIdwhoseIDcontains',<orxi:include- Stored query IDs thousands of characters long, or WFS error responses containing
File name too long - Files in
wfs/query/orworkspaces/*/wfs/query/containingxi:include,file:///or references tousers.xml/config.xml - Admin sessions that start from a remember-me cookie without a login, followed by
PUT /geoserver/rest/resource/...uploads andPOSTrequests to/geoserver/rest/security/usergroup/...or role service endpoints - JDBC user group or role services you didn’t configure, especially ones pointing at an HSQLDB file under the data directory or a SQLite URL with
enable_load_extension
Detection and remediation
Find the running version. The jar names in the webapp give it away:
# Tomcat / Jetty / binary installs
find / -path '*geoserver*/WEB-INF/lib/gs-main-*.jar' 2>/dev/null
# Containers
docker ps --format '{{.ID}} {{.Image}}' | grep -i geoserver
docker exec <container> sh -c 'find / -name "gs-main-*.jar" 2>/dev/null'
If you embed GeoServer or GeoTools modules in your own Maven build, check the tree:
mvn -q dependency:tree -Dincludes=org.geoserver,org.geoserver.security,org.geotools:gt-metadata
grep -rE 'gs-(main|ows|wfs-core|sec-jdbc)|gt-metadata' --include=pom.xml --include=*.gradle* .
Look for planted stored queries and odd JDBC security services in the data directory:
GEOSERVER_DATA_DIR=${GEOSERVER_DATA_DIR:-/opt/geoserver_data}
find "$GEOSERVER_DATA_DIR" -path '*wfs/query/*.xml' -newermt 2026-10-01 -ls
grep -rlE 'xi:include|file:///|users\.xml|config\.xml' "$GEOSERVER_DATA_DIR"/wfs/query "$GEOSERVER_DATA_DIR"/workspaces/*/wfs/query 2>/dev/null
grep -rlE 'hsqldb|sqlite|enable_load_extension' "$GEOSERVER_DATA_DIR"/security/usergroup "$GEOSERVER_DATA_DIR"/security/role 2>/dev/null
grep -n 'rememberMeService' -A5 "$GEOSERVER_DATA_DIR"/security/config.xml
Search proxy or servlet container access logs:
zgrep -hiE 'service=[^&]*(/|%2f)[^&]*wfs' /var/log/nginx/access.log* | tail -50
zgrep -hiE 'request=(CreateStoredQuery|DescribeStoredQueries|DropStoredQuery)' /var/log/nginx/access.log* | tail -50
zgrep -hiE 'GetFeatureById.*(%27|%3C|xi:include)' /var/log/nginx/access.log* | tail -50
zgrep -hE '"(PUT|POST) /geoserver/rest/(resource|security)' /var/log/nginx/access.log* | tail -50
Then fix it:
- Upgrade to 3.0.2, 2.28.6 or 2.27.7. In a cluster, set the same
GEOSERVER_REMEMBERME_KEYon every node, or remember-me logins will only work on the node that issued them. - If upgrading has to wait, add a proxy rule that rejects any request where
servicecontains/(in the query string or the XML body), removeremembermefrom thewebfilter chain under Security > Authentication, and limit/geoserver/restto an admin network. - If you found a planted stored query or an unexpected JDBC service, treat the host as compromised. Change every GeoServer admin password, delete unknown stored queries and security services, and rotate whatever the GeoServer process could read: database credentials in data stores, cloud keys in the environment, and the keystore and master password under
security/. Rebuild the container or host if commands may have run.
Timeline
- 2026-08-02: CryptoCat reports the five-step chain to GeoServer through a private GitHub advisory.
- 2026-08-14: GeoServer 3.0.1, 2.28.5 and 2.27.6 ship. The chain still works on them.
- 2026-09-14: The dispatcher fix for
x/WFS(PR #9922) merges. - 2026-09-24: The remember-me key change (PR #10008) merges.
- 2026-09-29: Eye Security reports its
GetFeatureByIdand SQLite chain. - 2026-10-12: The stored query entity resolver fix (PR #9928) merges.
- 2026-10-15: The JDBC property and path disclosure fixes land on the 3.0.x branch.
- 2026-10-19: GeoServer announces 3.0.2, 2.28.6 and 2.27.7.
- 2026-11-16: GitHub assigns a CVE to each step of the chain.
- 2026-11-23: GeoServer publishes 18 advisories between 22:08 and 22:14 UTC and its November security update post. CryptoCat’s PoC repository goes up at 22:43 UTC.
- 2026-11-24: Eye Security publishes its write-up.
- 2026-11-25: watchTowr reports exploitation attempts against its honeypots. None of the CVEs are in that day’s KEV catalog.
References
- GeoServer: Security Update - November 2026
- GHSA-hgm3-wq4h-8vvq (CVE-2026-129245)
- GHSA-rv5g-g2r9-58rj (CVE-2026-129243)
- GHSA-39mw-5chv-jh47 (CVE-2026-120705)
- GHSA-4v26-c537-jvxc (CVE-2026-129244)
- GHSA-9wf2-fcgq-vxhq (CVE-2026-129242)
- GHSA-wc3v-48j7-xf57 (CVE-2026-120704)
- CryptoCat: GeoServer Pre-Authentication RCE via WFS and HSQLDB
- Crypto-Cat/geoserver-unauth-rce-poc
- Eye Security: Unauthenticated remote code execution vulnerability in GeoServer
- watchTowr: GeoServer CVE-2026-129245 FAQ
- Commit e5a79f6 (GEOS-12195), commit 9bf9831 (GEOS-12199), commit 64d16ce (GEOS-12239), PR #10008
- The Hacker News: Hackers Exploit Two GeoServer Flaws
From research to remediation
Check whether this pattern exists in your codebase
Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.
References
- GeoServer: Security Update - November 2026
- GHSA-hgm3-wq4h-8vvq: Predictable remember-me key allows administrator session forgery (CVE-2026-129245)
- GHSA-rv5g-g2r9-58rj: Service security rules bypassed with a prefixed service name (CVE-2026-129243)
- GHSA-39mw-5chv-jh47: Unauthenticated WFS GetFeatureById XML injection (CVE-2026-120705)
- GHSA-9wf2-fcgq-vxhq: Deserialization in JDBC user and role services (CVE-2026-129242)
- GHSA-wc3v-48j7-xf57: RCE via SQLite JDBC extension loading (CVE-2026-120704)
- CryptoCat: GeoServer Pre-Authentication RCE via WFS and HSQLDB
- Eye Security: Unauthenticated remote code execution vulnerability in GeoServer
- watchTowr: Frequently Asked Questions About the GeoServer Multiple Vulnerabilities
- geoserver/geoserver commit e5a79f6: [GEOS-12195] Refactored Dispatcher's service resolution
- geoserver/geoserver commit 9bf9831: [GEOS-12199] Applied entity resolver to stored query parsing
- geoserver/geoserver commit 64d16ce: [GEOS-12239] Read JDBC user and role property values as text
- geoserver/geoserver PR #10008: Support a configurable remember-me key for clusters
- The Hacker News: Hackers Exploit Two GeoServer Flaws as Researchers Warn of Unauthenticated RCE Chains