Vulnerabilities in pkg:maven/org.geoserver.extension/gs-db2
PACKAGECVE-2025-27511 is a HIGH (CVSS 7.2) geoserver db2 datastore extension has vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Gs db2 libraries in the Maven ecosystem. The issue involves geoserver db2 datastore extension has a jndi vulnerability via store connection. Remediation is available by upgrading affected packages to version 2.27.0.
pkg:maven/org.geoserver.extension/gs-db2
Vulnerability advisories affecting package pkg:maven/org.geoserver.extension/gs-db2. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-g628-r368-6vh7 | CVE-2025-27511 | HIGH | GeoServer DB2 DataStore Extension has a JNDI Vulnerability via Store Connection |
CVE-2025-27511 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-27511
To remediate this vulnerability, upgrade all affected Gs db2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.geoserver.extension</groupId>
<artifactId>gs-db2</artifactId>
<version>2.27.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.geoserver.extension
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-27511, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.geoserver.extension
Analyze the terminal output to locate any version of Gs db2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.27.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.geoserver.extension command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Gs db2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-27511 Affected Gs db2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.geoserver.extension:gs-db2
|
Maven |
< 2.27.0
|
2.27.0
|
References
Frequently Asked Questions
What is CVE-2025-27511?
Which Gs db2 versions are affected?
What version fixes CVE-2025-27511?
Is gs-db2 affected?
What is the CVSS score of CVE-2025-27511?
What CWE is associated with CVE-2025-27511?
How can I check Maven dependencies for CVE-2025-27511?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g628-r368-6vh7",
"modified" : "2026-07-15T21:49:53Z",
"published" : "2026-06-11T20:34:00Z",
"aliases" : [ "CVE-2025-27511" ],
"summary" : "GeoServer DB2 DataStore Extension has a JNDI Vulnerability via Store Connection",
"details" : "## Summary\n\nAdministrator can perform JNDI attack through specially crafted DB2 jdbc url leading to Remote Code Execution (RCE).\n\n## Impact\n\nIf GeoServer has DB2 extension installed, this vulnerability can lead to executing arbitrary code.\n\n## Details\n\nAuthenticated users can access Vector Data Sources page to creating a new data store through db2 jdbc connection, performing JNDI attack due to unrestricted connection parameters, and then achieve RCE with deserialization of untrusted data.\n\n### Remediation\n\nThis issue has been fixed in this release: https://github.com/geoserver/geoserver/releases/tag/2.27.0.\n\n## References\n\n* https://osgeo-org.atlassian.net/browse/GEOT-7725\n* https://nvd.nist.gov/vuln/detail/cve-2023-27867",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver.extension:gs-db2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.27.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/security/advisories/GHSA-g628-r368-6vh7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27511"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/geoserver/geoserver"
}, {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/releases/tag/2.27.0"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/cve-2023-27867"
}, {
"type" : "WEB",
"url" : "https://osgeo-org.atlassian.net/browse/GEOT-7725"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502", "CWE-74" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-11T20:34:00Z",
"nvd_published_at" : "2026-06-18T16:16:50Z"
}
}