Vulnerabilities in pkg:maven/org.geoserver.extension/gs-db2

PACKAGE
Advisory Identifier: GHSA-g628-r368-6vh7
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.geoserver.extension/gs-db2

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-27511
GHSA Identifier GHSA-g628-r368-6vh7
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Gs db2
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

org.geoserver.extension:gs-db2 fixed: 2.27.0
<dependency>
    <groupId>org.geoserver.extension</groupId>
    <artifactId>gs-db2</artifactId>
    <version>2.27.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

## Summary Administrator can perform JNDI attack through specially crafted DB2 jdbc url leading to Remote Code Execution (RCE). ## Impact If GeoServer has DB2 extension installed, this vulnerability can lead to executing arbitrary code. ## Details Authenticated 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. ### Remediation This issue has been fixed in this release: https://github.com/geoserver/geoserver/releases/tag/2.27.0. ## References * https://osgeo-org.atlassian.net/browse/GEOT-7725 * https://nvd.nist.gov/vuln/detail/cve-2023-27867

CVE-2025-27511 Affected Gs db2 Versions

1 component(s)
Fixed Versions:
2.27.0
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?
CVE-2025-27511 is a security vulnerability in Gs db2 involving GeoServer DB2 DataStore Extension has a JNDI Vulnerability via Store Connection under CWE-502: Deserialization of Untrusted Data.
Which Gs db2 versions are affected?
Affected versions include releases prior to 2.27.0 across affected packages: org.geoserver.extension:gs-db2.
What version fixes CVE-2025-27511?
Upgrading to 2.27.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gs-db2 affected?
Yes, org.geoserver.extension:gs-db2 is affected in releases prior to 2.27.0. Upgrade your dependency to 2.27.0 or later.
What is the CVSS score of CVE-2025-27511?
CVE-2025-27511 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-27511?
CVE-2025-27511 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2025-27511?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.geoserver.extension'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}