GeoServer flaws on CISA's exploited list: how a stranger gets to admin, and what to fix this weekend
CISA lists GeoServer CVE-2026-120705 and CVE-2026-129243 as exploited. They're part of a chain from no login to running code. Install 3.0.2, 2.28.6 or 2.27.7 and check for signs of a break-in.
part 63 of 64 · Platform releases, explained from scratchthe ideaSmall mistakes that add up to a takeover. Upgrade first, then go looking for traces.
after reading, you can- See how five separate GeoServer flaws add up to a takeover with no login
- Know which fixed version to install, and the settings to change so logins and IP rules keep working afterwards
- Check logs, stored queries and admin sessions for signs someone got in first
Two GeoServerdefinitionIt's a free Java server for maps. You load your map data into it, and websites or GIS tools ask it for maps and features using open standards. flaws that open the way to a full server takeover with no login are now on CISA's exploited list. If you run GeoServer, move to 3.0.2, 2.28.6 or 2.27.7 this weekend, and check whether anyone got in first. The fixes came out in October. The details, and now the attacks, came later.
A public map server running an older GeoServer can be taken over by a stranger, one small step at a time.
GeoServer is free software that publishes maps and location data on the web, so other websites and GIS tools can draw and query them. Five flaws were reported to the project as one chain. A stranger learns where GeoServer keeps its files, slips past a permission check, reads a settings file, forges an administrator login and then runs their own code on the server. CISA says two of those steps are now being used by attackers. The GeoServer team fixed all five in October, so the job is to upgrade, then look for signs that someone used the gap before you closed it.
Say reception will read you any letter from the filing room if you phrase the request right. One of those letters has the pattern for the manager's badge, and the badge printer sits unlocked in the corner. None of that is a disaster alone. Together, a visitor leaves with the manager's badge.
- GeoServer older than 3.0.2, 2.28.6 or 2.27.7
- Public map portals open without a login
- Teams on GeoServer Cloud or in containers
- Vendors who bundle GeoServer or GeoTools
Why it matters to you
At the end of the chain the attacker runs code with the operating system rights of the GeoServer process. From there they can read whatever GeoServer can read, and we'd assume that includes the connection details for the databases behind your map layers. A map server rarely sits alone, so treat it as a door into the network around it.
CISA's entries say an attacker can use both flaws from the internet without logging in. Canada's Cyber Centre says open source reporting indicates both are being exploited in the wild. Someone is going to try your server, if they haven't already, and an old version will answer them.
GeoServer has been here before. CISA listed CVE-2024-36401 in July 2024 and CVE-2025-58360 in December 2025, both GeoServer flaws reachable without a login. If you patched those and then left the server alone, it's probably behind again.
How the attack works
-
01 Learns where files live
A stored query request with an overlong id makes GeoServer return an error that shows the full path to its data directory (CVE-2026-129244).
-
02 Slips past the role check
Asking for service x/WFS instead of WFS runs the WFS service, but the security rules never match it. Anonymous users can then create stored queries (CVE-2026-129243).
-
03 Reads a file
They send a doctored ID to GetFeatureById, a query that comes built in. GeoServer then reads a local file or fetches a URL for them, and can echo the text back (CVE-2026-120705).
-
04 Forges an admin login
GeoServer signs its remember-me cookie with a key, and out of the box that key is just geoserver. Add an admin's stored password digest and they can build a cookie GeoServer takes as an admin login (CVE-2026-129245).
-
05 Runs code
Now logged in as admin, they upload a database file through the REST API and point a JDBC user service at it. When GeoServer loads the users, their code runs (CVE-2026-129242).
For engineers: CVE-2026-120705 is in StoredQuery.compile(). It dropped the caller's ID into the template <fes:ResourceId rid='${ID}'/> with plain string replacement, then parsed the result without GeoServer's entity resolver, so XInclude and external entities resolved. The advisory says file contents come back in the Illegal property name error when a layer is published to anonymous users. Otherwise the file is still read but not returned. GitHub's advisory rates it 8.6 on CVSS 3.1.
CVE-2026-129243 is a mismatch between two parts of the code. Dispatcher.findService strips everything up to the slash to pick the service, while OperationSecurityCallback checks the raw value. The default rules restrict CreateStoredQuery and DropStoredQuery to administrators, so that's what an anonymous caller gets first. If you also locked WFSdefinitionWeb Feature Service, the open standard GeoServer uses to hand out the actual map features and their attributes, not just pictures of them. Transaction through service rules, that protection was gone too. Layer and data security rules still apply.
What GeoServer fixed, and what it left to you
All five fixes come in 3.0.2, 2.28.6 and 2.27.7. Here's what each one changes
Stored query parsing now uses GeoServer's entity resolver, and GeoTools checks redirects. GeoTools 33.7, 34.6 and 35.2 carry the matching fix.
The dispatcher now records the resolved service, so security checks the service that actually runs. No manual steps.
Rated Critical. The key no longer lives in the data directory. Each node picks a random one, and existing remember-me cookies stop working on upgrade.
User and role property values are now read as text, so a crafted database file can't run code when it loads.
Overlong stored query ids get a short error, and file system errors go to the log instead of the caller.
2.27.7 came out only because of this. GeoServer says to apply it as a stopgap and plan the move to a supported series.
The remember-me change is the one users will notice. Everyone who ticked remember me gets logged out once after the upgrade. If you run more than one GeoServer node behind a load balancer, set GEOSERVER_REMEMBERME_KEY to the same long value on every node, or a cookie from one node will fail on the next.
The other change to plan for is on 3.0.2. GeoServer now only trusts the X-Forwarded-For header from a reverse proxy on the same host. If your proxy runs on another machine or container, set GEOSERVER_TRUSTED_PROXIES to its address, or anything that relies on the client's IP address will see the proxy's address instead. Two of the October CVEs were IP rule bypasses through that header, so treat the new setting as part of the fix.
| You're on | Install | Status | Watch for |
|---|---|---|---|
| 3.0.x | 3.0.2 | Stable, supported | Proxy trust setting on 3.0.2, remember-me logouts |
| 2.28.x | 2.28.6 | Maintenance, supported | Remember-me logouts, cluster key |
| 2.27.x | 2.27.7 | End of life, stopgap only | Plan the move to 2.28 or 3.0, both on Java 17 |
| 2.26.x or older | No fix release | End of life | Upgrade to 2.28.6 or 3.0.2 |
| GeoServer Cloud | 3.0.2 or 2.28.6 | Released with core | Rebuild and redeploy the images |
If you're on 2.27 or older, 2.28.6 is usually the shorter jump. 2.27 is the last series that runs on Java 8, and both 2.28 and 3.0 need Java 17. On top of that, 3.0 moves to Jakarta EE and needs Tomcat 11 if you deploy the WAR file. Patch to the nearest fixed version this weekend, then do the bigger move as a planned project.
From fix to exploited list
- Jul 15, 2024Earlier GeoServer KEV
CISA lists CVE-2024-36401, which let anyone run code on a GeoServer with no login. An older GeoServer flaw, CVE-2022-24816, had gone on the list nearly three weeks before.
- Dec 11, 2025Another one
CISA lists CVE-2025-58360, an XML external entity flaw in WMS GetMap. It's the same server and the same kind of XML mistake, a year apart.
- Oct 19, 2026Fixes released
GeoServer puts out 3.0.2, 2.28.6 and 2.27.7 and calls them important upgrades for production, with details held back.
- Nov 23, 2026Details published
GeoServer publishes the CVE numbers and the advisories, chain and all. From here on, anyone who skipped the October upgrade is working against a public write-up.
- Nov 25, 2026Cyber Centre alert
Canada's Cyber Centre issues AV26-1207. Its version updated Nov 27 says open source reporting points to both CVEs being exploited, so this stops being theory.
- Nov 27, 2026On CISA KEV
CISA adds CVE-2026-120705 and CVE-2026-129243. Federal agencies get three days, and the rest of us should read that as a hint.
- Nov 30, 2026Federal due date
Agencies have until Monday. Treat the weekend as your own deadline.
- GeoServer 2.27.x or 3.0.1, open to the internet
- Anonymous users can call any WFS operation
- Remember-me key still the shipped default
- REST API reachable from anywhere
- Nobody has looked at the stored queries folder
- GeoServer 3.0.2 or 2.28.6, images rebuilt
- WFS limited to the roles that need it
- Random remember-me key, shared only across the cluster
- REST API reachable from admin networks only
- Someone has checked stored queries and admin logins back to October
What to do now
Split the work. One person upgrades. Someone else checks whether the server was used before the upgrade, because an upgrade closes the door but does nothing about anyone already inside.
What to do now, by who you are
- Ask IT or your GIS vendor whether you run GeoServer anywhere, including inside a product you bought.
- Ask for the version number in writing, and a date for 3.0.2 or 2.28.6 if it's older.
- Ask if the map server answers from the internet, and get a list of who can log in as an administrator. Short is good.
- If they find signs of a break-in, call the lawyer and the cyber insurer that day. Their clocks often start early.
- Upgrade to 3.0.2, 2.28.6 or 2.27.7, and rebuild any container image that bundles GeoServer.
- On a cluster, set GEOSERVER_REMEMBERME_KEY to the same long random value on every node.
- On 3.0.2, set GEOSERVER_TRUSTED_PROXIES if your reverse proxy runs on another host.
- If you can't upgrade today, apply the stopgaps in the box below before you log off.
- If your app embeds GeoTools, move to 33.7, 34.6 or 35.2, the versions GitHub's advisory lists as fixed.
- If GeoServer is inside a product you sell, say which of your releases has 3.0.2 or 2.28.6 in it. Customers can't patch a component they don't know is there.
- Check that your deployment doesn't overwrite security/config.xml with a stock copy on every deploy.
- Search proxy and access logs back to October for service values with a slash, plain or encoded as %2F. Normal map clients don't send those.
- Look for GetFeatureById requests with quotes, angle brackets or xi:include in the ID. A real feature ID never has those.
- List the files in wfs/query and workspaces/*/wfs/query. Ask who made each one, and treat any nobody claims as a lead.
- Review admin logins, new JDBC user or role services, and files uploaded through /rest/resource.
# 1. Which version is this? Run it from an admin network, since the REST API shouldn't answer from outside $ curl -s -u admin -H 'Accept: text/xml' https://maps.example.com/geoserver/rest/about/version.xml | grep -A3 GeoServer <Version>2.27.6</Version> # Older than 2.27.7, so it's exposed. Upgrade first, then keep going # 2. Stored queries nobody remembers creating $ ls -l $GEOSERVER_DATA_DIR/wfs/query $GEOSERVER_DATA_DIR/workspaces/*/wfs/query # 3. Prefixed service names in the proxy log # zgrep also reads the rotated .gz files. You need those, because October is a long time ago in log terms $ zgrep -Ei 'service=[^& ]*(/|%2F)' /var/log/nginx/access.log* # Any hit is worth a closer look. Normal clients send WFS, WMS or WCS on their own
Harden so the next one hurts less
Every step of this chain leaned on something that was open by default or never changed. The fixes below take those defaults away, so the next GeoServer bug has less to work with. They come from the advisories' own mitigations and GeoServer's upgrade guide.
Durable fixes, tied to this case
- 01Put the admin side on a separate path
Serve the public OGC endpoints through the proxy, and reach the web admin and REST API only from an admin network or VPN. Step five of this chain needed the REST API.
- 02Write service rules on purpose
Decide which WFS and WMS operations anonymous users really need, and lock the rest in Security > Services. Then test them with a prefixed service name after you upgrade.
- 03Treat the data directory as a secret
It holds the security settings and password digests. Keep it off shared drives, out of public backups and out of images you publish.
- 04Give each environment its own remember-me key
After the upgrade each node picks a random key. For a cluster, set one shared key per environment and keep it in your secrets store.
- 05Run GeoServer as a low-privilege user
The last step runs code with the rights of the GeoServer process. A service account that can't reach the rest of the server limits the damage.
- 06Upgrade at least once a year
GeoServer supports each release for about a year and asks users to upgrade at least that often. Put it in the plan, so the next fix lands on a supported series.
While GeoServer is down for the upgrade, check one more thing. GeoServer's team asked users in November to add -XX:-UseBASE64Intrinsics to the Java options to block Java4Shell, CVE-2026-114938. We cover that Java flaw in our November Oracle patch update explainer. The restart for one fix can carry the other.
Before: one door for maps and admin
Public map clients and the admin tools share the same address. Service rules match the literal service name, and the data directory holds the shipped remember-me key.
After: maps in public, admin behind the wall
The proxy passes only the public services and drops odd service names. Admin tools answer only from the admin network, and each environment has its own remember-me key.
If you think you've been breached
If you think someone got in through the chain
GeoServer hasn't published indicators of compromise, so you're looking for what each step of the chain leaves behind. The advisories describe it well enough to hunt for: slashes in service names, stored queries and JDBC services that nobody on your team made, and admin sessions nobody remembers starting.
- 01Containfirst hour
- Take a copy of the data directory, the logs and, if you can, a snapshot of the server before you change anything.
- Cut the server off from the internet, or block the admin paths and prefixed service names at the proxy, while you look.
- Remove rememberme from the web filter chain so a forged cookie stops working right away.
- 02Investigatefirst day
- Read proxy and access logs back to October for service values with a slash and GetFeatureById requests with odd IDs.
- List the stored queries in wfs/query and workspaces/*/wfs/query, then every user group and role service in the security settings. Anything nobody set up needs explaining.
- Check for files uploaded through /rest/resource and for processes or scheduled jobs running as the GeoServer user that you didn't start.
- 03Removefirst days
- If code ran, rebuild the server from a clean image rather than cleaning it in place.
- Change every GeoServer administrator password. GeoServer's own advisory says to do this if you suspect exposure, so don't wait to be sure.
- Rotate the passwords of the databases and services GeoServer connects to. Code running as GeoServer could use them.
- 04Recoverfirst week
- Bring it back on 3.0.2 or 2.28.6 with the admin paths fenced off and the service rules reviewed.
- Watch the logs closely for a few weeks. Attackers often try a server they've owned before.
- 05Report and learnas required
- If the server or the databases behind it held personal data, ring your lawyer early. You might have to tell people, and those deadlines are short.
- Warn partners whose systems pull data from this server or share its logins. They'll want to check their side too.
- Write down how long it took to find every GeoServer you run, bundled copies included. That's the number to bring down.
What this could look like
Three made-up setups you'll probably recognise
- the setup
- A county runs GeoServer 2.27.6 so residents and contractors can query parcel and zoning layers. Layers are published to anonymous users, and the web admin sits on the same address.
- what happens
- Anonymous layers mean the file read in CVE-2026-120705 echoes contents straight back. With the admin pages on the same address, the rest of the chain is open too.
- what to do
- Install 2.27.7 today as the stopgap, block prefixed service names at the proxy and move the admin pages to an internal address. Then plan the move to 2.28 or 3.0 and review the logs back to October.
- the setup
- Three GeoServer 3.0.1 nodes sit behind a load balancer on another host. Field crews log in to edit network data, and IP rules limit editing to the office range.
- what happens
- The team upgrades to 3.0.2. Crews get logged out on every other request because each node now has its own remember-me key, and the IP rules see only the proxy's address.
- what to do
- Set GEOSERVER_REMEMBERME_KEY to one shared value on all three nodes and GEOSERVER_TRUSTED_PROXIES to the load balancer's address. Then test logins and the IP rules before the crews start work.
- the setup
- A logistics platform ships GeoServer inside its Docker image to draw route maps. The image was built in the summer and customers run it on their own servers.
- what happens
- Every customer install carries the flawed version, and probably the stock remember-me key too unless the vendor changed it. Customers don't know GeoServer is inside, so they won't act on CISA's listing.
- what to do
- Rebuild the image on 3.0.2 or 2.28.6, tell customers in plain words which release fixes it, and give them the proxy stopgap for installs they can't update this week.
How Cohash helps
Your GIS or platform team does the upgrade, and it should happen this weekend. We help with the parts around it: our network security team can put the proxy rules and admin separation in place, our threat detection people can go through the logs for the traces above, and our privileged access work brings GeoServer's admin accounts and service passwords into a vault. If you'd like a second opinion first, start with the assessment.
What to take from this
- 01
CVE-2026-120705 and CVE-2026-129243 are on CISA's exploited list, due Monday for federal agencies. Install 3.0.2, 2.28.6 or 2.27.7.
- 02
They're steps in a five-CVE chain that ends with code running on the server. All five are fixed in the same releases.
- 03
Can't upgrade today? Block service names with a slash at the proxy, limit anonymous WFS and remove rememberme from the web filter chain.
- 04
Check stored queries, admin logins and REST uploads back to October. Upgrading doesn't remove someone already inside.
- 05
On any fixed release, give a cluster one shared remember-me key. On 3.0.2, if the proxy runs on another host or container, put its address in GEOSERVER_TRUSTED_PROXIES.
01Is my GeoServer affected by CVE-2026-120705?
Yes, if it's older than 3.0.2, 2.28.6 or 2.27.7. Check the version on the web admin's about page or through the REST API at /rest/about/version. If GeoServer came inside another product, ask that vendor which of its releases carries the fix.
02We upgraded to 3.0.2 in October. Is there anything else to do?
You have the fixes. It's still worth checking the logs and the stored queries folder, because the details only went public on November 23 and a server can be attacked before or after. Also confirm the trusted proxy and remember-me settings if you run a proxy or a cluster.
03Can we just turn off WFS?
If nobody uses it, yes. GeoServer suggests disabling WFS when it isn't needed, or limiting it for anonymous users. That blocks the file read step, but the upgrade still fixes the other links in the chain, so do both.
04Why are users logged out after the upgrade?
The fix moves the remember-me key out of the data directory, and existing remember-me cookies stop working. Users log in again once. On a cluster, set GEOSERVER_REMEMBERME_KEY to the same value on every node, or they'll keep getting logged out.
05We're on GeoServer 2.26 or older. Is there a patch?
No. The fixes went into 3.0.2, 2.28.6 and 2.27.7 only, and GeoServer calls 2.27.7 a stopgap for a series already at end of life. Apply the proxy and WFS stopgaps today and move to 2.28.6 or 3.0.2.
06Does this affect apps that use GeoTools but not GeoServer?
GitHub's advisory for CVE-2026-120705 lists GeoTools 33.7, 34.6 and 35.2 as fixed versions of the gt-metadata package. If your app embeds GeoTools, move to one of those and check with your own developers whether the affected code path is used.
Three questions, about a minute
Pick an answer and we'll tell you if it's right, and why it is or isn't. The score stays in this browser.
-
Q1Your GeoServer only allows administrators to run CreateStoredQuery. An anonymous request with service=x/WFS creates one anyway. Which flaw is that?
show the answer
B. CVE-2026-129243, the prefixed service name bypass The dispatcher stripped the prefix and ran WFS, but service security checked the literal x/WFS. No rule matched, so the admin-only operation ran without a role check.
-
Q2You upgrade a three-node cluster to 3.0.2 and users keep getting logged out. What's the likely fix?
show the answer
B. Set GEOSERVER_REMEMBERME_KEY to one value on all nodes After the fix each node uses its own random remember-me key. A cookie from one node fails on another unless the cluster shares a key through GEOSERVER_REMEMBERME_KEY.
-
Q3You can't upgrade until Monday. Which proxy rule is GeoServer's stopgap for the role-check bypass?
show the answer
A. Drop any request whose service parameter has a slash in it, like x/WFS GeoServer gives that rule as the mitigation for CVE-2026-129243, where anonymous callers slip past service rules. It only covers that one step, so also limit anonymous WFS and remove rememberme.