CVE-2026-120704org.geoserver.security:gs-sec-jdbc Code Injection
NVD
Vulnerability Summary
GeoServer's JDBC user/group service, role service and authentication provider accepted an administrator supplied JDBC connection URL and DML/DDL property file paths without validation. Choosing the SQLite driver with the `enable_load_extension=true` connection parameter, together with a DML file containing `SELECT load_extension(...)`, loads a native library of the attacker's choice into the GeoServer process. Impact An administrator, or anyone with access to an administrator session, can execute arbitrary code as the user running GeoServer. On Windows both the DML file and the extension library can be loaded from an SMB share (UNC path), so no files need to be staged on the server. On other platforms the attacker must first place the DML file and library on the server file system. Details `AbstractJDBCService.initializeDSFromConfig()` passed the configured driver class and connection URL directly to the connection pool. `checkORCreateJDBCPropertyFile()` accepted absolute paths for the DML and DDL property files, including UNC paths. The DML statements run when the service is used, for example when listing users. Mitigation Restrict access to the GeoServer administration console and REST API to trusted administrators, and do not install JDBC drivers that are not required (such as SQLite) on the GeoServer classpath. Resolution JDBC security services now accept only known drivers and connection parameters for each driver, and reject absolute DML/DDL file paths. Additional parameters can be allowed with the `GEOSERVER_JDBC_EXTRA_PARAMETERS` property. GeoServer 2.27.7, 2.28.6, 3.0.2 References https://osgeo-org.atlassian.net/browse/GEOS-12234 * https://docs.geoserver.org/3.0.x/en/user/configuration/properties/
CVSS v3.1 Base Metrics — Score 7.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- org.geoserver.security:gs-sec-jdbc <= 2.27.6
- org.geoserver.security:gs-sec-jdbc >= 2.28.0, <= 2.28.5
- org.geoserver.security:gs-sec-jdbc >= 3.0.0, <= 3.0.1
- org.geoserver.security:gs-sec-jdbc 2.27.7
- org.geoserver.security:gs-sec-jdbc 2.28.6
- org.geoserver.security:gs-sec-jdbc 3.0.2
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run org.geoserver.security:gs-sec-jdbc and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 23, 2026Published
- Nov 23, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new org.geoserver.security:gs-sec-jdbc CVEsYou are reading CVE-2026-120704. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 14:01 UTC