GeoServer Unauthenticated RCE Chain (CVE-2026-120705, CVE-2026-129243)

Attackers are exploiting two GeoServer flaws, CVE-2026-120705 and CVE-2026-129243, that need no login, according to watchTowr. Update to 2.27.7, 2.28.6 or 3.0.2, then rotate administrator passwords and stored credentials.

Vulnerability

Attackers are actively exploiting two newly patched vulnerabilities in GeoServer, the open-source geospatial data server, according to watchTowr. Neither needs a login.

  • CVE-2026-120705 is an arbitrary file read. A single unauthenticated Web Feature Service (WFS) request can read local text files that the GeoServer process can access, or fetch HTTP or HTTPS URLs the attacker chooses. The maintainers describe it as unauthenticated WFS GetFeatureById XML injection.
  • CVE-2026-129243 is an incorrect authorization flaw. It lets an unauthenticated attacker invoke OWS operations that service security rules would otherwise protect. The maintainers say those rules can be bypassed with a prefixed service name such as x/WFS.

Eye Security, which discovered and reported CVE-2026-120705, showed these flaws can be combined with two others into an unauthenticated remote code execution chain:

  • Step 1: CVE-2026-120705 reads users.xml (usernames and password hashes) and the static signing key in security/config.xml.
  • Step 2: CVE-2026-129245 is a hard-coded signing key (geoserver) in the “remember me” feature. With that key and the stored password representation, the attacker forges a valid administrator authentication cookie without knowing the password.
  • Step 3: CVE-2026-120704 is an improper control of code generation flaw. It’s used to abuse an administrator-controlled JDBC configuration to execute code from an uploaded native library on Linux or Windows.

The GeoServer maintainers describe a related five-step unauthenticated command execution chain:

  • CVE-2026-129244: a WFS stored query exception that discloses the data directory path
  • CVE-2026-129243: the incorrect authorization flaw
  • CVE-2026-120705: the file read
  • CVE-2026-129245: the hard-coded signing key
  • CVE-2026-129242: deserialization in JDBC user and role services, allowing administrator code execution

The maintainers warn that anyone who obtains an administrator password digest, through any file disclosure or a copy of the data directory, can log in as that administrator. Changing the key in security/config.xml doesn’t help when the same file disclosure also reveals the key.

CVE and severity

The two flaws confirmed as exploited:

  • CVE-2026-120705 (arbitrary file read): scored 8.6 by the maintainers
  • CVE-2026-129243 (incorrect authorization): scored 8.8 by the maintainers

The other flaws in the two chains:

  • CVE-2026-129245 (hard-coded signing key): CVSS 9.2
  • CVE-2026-120704 (improper control of code generation): CVSS 7.2
  • CVE-2026-129242 (deserialization in JDBC user and role services): scored 8.6 by the maintainers
  • CVE-2026-129244 (data directory path disclosure): scored 6.9 by the maintainers

Impact

Eye Security showed that an unauthenticated attacker can chain these flaws to read users.xml and the signing key, forge a valid administrator authentication cookie and execute code on the server.

Exploit status

watchTowr reports active exploitation of CVE-2026-120705 and CVE-2026-129243. Fixes were released on November 24, 2026, and exploitation was reported the next day. watchTowr says attackers sent error-based exploit probes to check whether servers are vulnerable, by creating and invoking stored queries.

Only two of the flaws are confirmed as exploited so far, but the remaining chain steps are patched in the same release.

This comes a little over three months after another critical GeoServer flaw, CVE-2026-76904 (CVSS 9.8), saw exploitation attempts as a zero-day.

Affected component and versions

GeoServer versions before 2.27.7, 2.28.6 and 3.0.2 are affected. The vulnerable components by CVE:

  • CVE-2026-120705: org.geoserver:gs-wfs-core and org.geotools:gt-metadata
  • CVE-2026-129243: org.geoserver:gs-ows
  • CVE-2026-129245: org.geoserver:gs-main
  • CVE-2026-120704: org.geoserver.security:gs-sec-jdbc

Fixed in:

  • org.geoserver components (gs-wfs-core, gs-ows, gs-main, gs-sec-jdbc): 3.0.2, 2.28.6 and 2.27.7
  • org.geotools:gt-metadata: 35.2, 34.6 and 33.7

Updating to GeoServer 2.27.7, 2.28.6 or 3.0.2 covers the chain.

Fix and mitigation

  • Update GeoServer to 2.27.7, 2.28.6 or 3.0.2 as soon as possible, prioritizing internet-facing instances.
  • Treat any internet-facing GeoServer that was unpatched after November 24, 2026 as potentially compromised. The unauthenticated file read means users.xml and security/config.xml may already have been read.
  • After patching, rotate administrator passwords and any credentials stored in the GeoServer data directory. Rotating the signing key alone isn’t enough if the same file disclosure also reveals the key.
  • Look for signs of the chain: unexpected administrator sessions or logins, changes to JDBC user and role service configuration, uploaded native libraries, and unexpected processes spawned by the GeoServer user.
  • Review web logs for WFS requests that create or invoke stored queries, and for requests using prefixed service names such as x/WFS. Also look for unauthenticated requests that read local files or fetch external URLs.
  • Where possible, restrict network access to GeoServer’s administrative interface and OWS endpoints as a defense-in-depth step, not a substitute for patching.
  • Check whether other GeoServer-derived or bundled products are affected, since the vulnerable libraries (gs-wfs-core, gs-ows, gt-metadata) are shared components.

References