GeoServer Flaws Under Attack: Inside the Exploit Chain to Remote Code Execution
Six vulnerabilities in GeoServer’s November 2026 security update can expose sensitive files, bypass service authorization, and enable administrator impersonation. Several of these flaws can be chained for unauthenticated remote code execution with the permissions of the GeoServer process. CVE-2026-120705 and CVE-2026-129243 have been reported as exploited. Fixed releases include GeoServer 3.0.2, 2.28.6, and 2.27.7. This article covers the flaws, the public five-CVE chain, impact, affected versions, and remediation guidance.
Summary
Six vulnerabilities addressed in GeoServer's November security update can expose sensitive files, bypass service authorization, and enable administrator impersonation. When chained together, several of these flaws allow an unauthenticated attacker to execute code with the permissions of the GeoServer process.
On 25 November 2026, the Canadian Centre for Cyber Security reported exploitation of CVE-2026-120705 and CVE-2026-129243, citing open-source reporting. The public proof of concept demonstrates a complete five-vulnerability chain. These reported attempts do not establish that attackers completed the full remote code execution chain against production systems. Affected deployments should be updated to GeoServer 3.0.2, 2.28.6, or an appropriate later supported release. Version 2.27.7 also contains the fixes.
Vulnerability Details
| CVE ID | CVSS Score | Type |
|---|---|---|
| CVE-2026-120705 | 8.6 (CVSS 3.1) | CWE-91: XML Injection CWE-611: Improper Restriction of XML External Entity Reference CWE-918: Server-Side Request Forgery (SSRF) |
| CVE-2026-129243 | 8.8 (CVSS 4.0) | CWE-863: Incorrect Authorization |
| CVE-2026-129244 | 6.9 (CVSS 4.0) | CWE-209: Generation of Error Message Containing Sensitive Information |
| CVE-2026-129245 | 9.2 (CVSS 4.0) | CWE-321: Use of Hard-coded Cryptographic Key CWE-798: Use of Hard-coded Credentials |
| CVE-2026-129242 | 8.6 (CVSS 4.0) | CWE-502: Deserialization of Untrusted Data |
| CVE-2026-120704 | 7.2 (CVSS 3.1) | CWE-94: Improper Control of Generation of Code |
Technical Information
CVE-2026-120705: WFS XML Injection and File Disclosure
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
The built-in Web Feature Service (WFS) 2.0 GetFeatureById stored query substitutes the caller's identifier into XML without escaping it, then parses the result without the intended entity resolver. This permits local text-file reads and requests to HTTP or HTTPS destinations.
The direct path requires neither authentication nor a custom stored query. File contents are returned when a layer is published to anonymous users. Otherwise, the file can still be read internally without its contents being returned.
The fix applies GeoServer's entity resolver during parsing and adds redirect checks in GeoTools.
CVE-2026-129243: Service Authorization Bypass
CVSS vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
The dispatcher resolves a prefixed service name to WFS, but the security check matches the unresolved name against service rules. This mismatch allows operations to run without the expected role check.
Default rules protect stored-query creation and deletion, so the flaw exposes those operations to anonymous users. The affected rules are configured under Security > Services and stored in security/services.properties. Other service-restricted operations can also be affected, while layer and data security remain effective.
The patch makes the authorization check use the resolved service name, aligning the security decision with the service that executes.
CVE-2026-129244: Data Directory Path Disclosure
CVSS vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
A stored-query identifier exceeding the file system's name limit can trigger an exception containing the absolute data directory path. An anonymous requester learns where configuration files are located, but the path alone provides no access to them.
Patched versions reject overlong identifiers and keep file-system error details in server logs rather than returning them to the client.
CVE-2026-129245: Administrator Session Forgery
CVSS vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remember-me authentication uses a signing key and the user's stored password digest. The vulnerable release data directory includes the default key geoserver in security/config.xml.
Possession of the key and an administrator's digest allows forged administrator authentication without recovering the password. Replacing only the key is insufficient when file disclosure exposes the replacement.
The fix removes the key from the data directory and generates a random key unless a shared application property is configured.
CVE-2026-129242: JDBC Deserialization
CVSS vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Java Database Connectivity (JDBC) user and role services load property values through ResultSet.getObject(). For an HSQLDB OTHER column, the driver can deserialize stored Java objects through an unrestricted object stream when property values are loaded.
The standard distribution includes the JDBC security module and HSQLDB driver. An administrator can configure the malicious database through the REST API.
The patch reads property values as text. This individual vulnerability requires administrator privileges, which the preceding chain can supply through session forgery.
CVE-2026-120704: SQLite JDBC Extension Loading
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
JDBC user/group services, role services, and authentication providers accept administrator-supplied connection settings and SQL property-file paths without sufficient validation. SQLite extension loading can then load an attacker-selected native library when the configured service is used, such as when listing users.
On Windows, the required files can be accessed through an SMB share. Other platforms require the files to be placed on the server first.
The fix restricts accepted drivers and connection parameters and rejects absolute SQL property-file paths. This is an alternative administrator-level code execution route, separate from the HSQLDB PoC.
Proof of Concept Analysis
A public proof-of-concept repository documents a five-CVE chain ending in HSQLDB deserialization. Its stated prerequisites include access to WFS and the REST API, an enabled stock administrator account in the default user service, and a Linux target.
1. Data Directory Discovery
A WFS exception exposes the data directory path, allowing the next stage to locate authentication configuration.
2. Service Authorization Bypass
The service-name mismatch allows an anonymous request to create a stored query despite the default administrator-only restriction.
3. Authentication Data Disclosure
The stored-query path exposes the remember-me signing key and administrator password digest.
4. Administrator Session Forgery
The disclosed values enable forged remember-me authentication and access to administrator functions.
5. JDBC Deserialization
The administrator session reaches the JDBC security configuration, completing the chain through a malicious database value.
Exploitation Flow (High-Level)
- 1Path DisclosureCVE-2026-129244
- 2Authorization BypassCVE-2026-129243
- 3File DisclosureCVE-2026-120705
- 4Administrator ImpersonationCVE-2026-129245
- 5Code ExecutionCVE-2026-129242
Impact
CVE-2026-120705: File disclosure and server-side request forgery, subject to the access conditions described above.
CVE-2026-129243: Unauthorized service operations, including stored-query creation and deletion.
CVE-2026-129244: Disclosure of the data directory path.
CVE-2026-129245: Administrator impersonation using exposed authentication material.
CVE-2026-129242 and CVE-2026-120704: Code execution after administrator access is obtained.
Together, these weaknesses can turn unauthenticated file disclosure into administrator access and remote code execution. The resulting access is limited by the operating system permissions of the GeoServer process.
Affected Products
| Product | Affected Versions | Scope |
|---|---|---|
| GeoServer | 2.27.6 and earlier 2.28.0 through 2.28.5 3.0.0 through 3.0.1 | All six vulnerabilities listed above. |
| GeoTools (gt-metadata module) | 33.6 and earlier 34.0 through 34.5 35.0 through 35.1 | CVE-2026-120705 affects the gt-metadata module, including its use in applications other than GeoServer. |
MITRE ATT&CK Mapping
| Technique ID | Technique Name | Tactic ID | Tactic |
|---|---|---|---|
| T1190 | Exploit Public-Facing Application | TA0001 | Initial Access |
| T1552.001 | Unsecured Credentials: Credentials In Files | TA0006 | Credential Access |
| T1606.001 | Forge Web Credentials: Web Cookies | TA0006 | Credential Access |
| T1059.004 | Command and Scripting Interpreter: Unix Shell | TA0002 | Execution |
Mitigation and Recommendations
Fixed Versions
| Product | Fixed Versions |
|---|---|
| GeoServer | 3.0.2, 2.28.6, and 2.27.7 |
| GeoTools (gt-metadata module) | 35.2, 34.6, and 33.7 |
Temporary Mitigations
- CVE-2026-120705: Disable WFS if it is not required, or restrict anonymous access. Service-rule restrictions must be paired with protection against the authorization bypass described below.
- CVE-2026-129243: At the proxy, block a slash in the service parameter in both query-string requests and XML request attributes.
- CVE-2026-129245: In Security > Authentication, remove
remembermefrom thewebfilter chain until the update is deployed. - CVE-2026-129242 and CVE-2026-120704: Restrict the administration console and REST API to trusted networks, including
/rest/resourceand/rest/security. For the SQLite flaw, avoid unnecessary JDBC drivers.
Recommended Actions
- Identify the installed version under Build Information on the About GeoServer page. Update every instance and validate application and extension compatibility.
- Review
wfs/queryandworkspaces/*/wfs/queryfor stored queries that administrators did not create. - Change administrator passwords if file disclosure is suspected.
- Expect existing remember-me cookies to be invalidated by the update. If a cluster requires cookies to work across nodes, configure the shared
GEOSERVER_REMEMBERME_KEYapplication property securely.
Instantly Fix Risks in Endpoints & Cloud with Saner
Saner is a continuous and integrated vulnerability & exposure management platform that instantly fixes risks in endpoints and cloud.




