CVE-2025-30220: Gs web app [XBOW-025-068] XML External Entity (XXE) Vulnerability

HIGH
Advisory Identifier: GHSA-jj54-8f66-c5pc
CVSS 8.2
CWE-918 CWE-611
Published
Advisory Summary

CVE-2025-30220 is a HIGH (CVSS 8.2) [xbow-025-068] xml external entity (xxe) vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Gs web app libraries in the Maven ecosystem. The issue involves [xbow-025-068] xml external entity (xxe) processing vulnerability in geoserver wfs service. Remediation is available by upgrading affected packages to version 2.27.1, 2.26.3, 2.25.7.

CVE-2025-30220 at a Glance

CVE Identifier CVE-2025-30220
GHSA Identifier GHSA-jj54-8f66-c5pc
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Gs web app
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2025-30220

To remediate this vulnerability, upgrade all affected Gs web app 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.web:gs-web-app fixed: 2.27.1
<dependency>
    <groupId>org.geoserver.web</groupId>
    <artifactId>gs-web-app</artifactId>
    <version>2.27.1</version>
</dependency>
org.geoserver:gs-wfs fixed: 2.27.1
<dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-wfs</artifactId>
    <version>2.27.1</version>
</dependency>
org.geoserver.web:gs-web-app fixed: 2.26.3
<dependency>
    <groupId>org.geoserver.web</groupId>
    <artifactId>gs-web-app</artifactId>
    <version>2.26.3</version>
</dependency>
org.geoserver:gs-wfs fixed: 2.26.3
<dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-wfs</artifactId>
    <version>2.26.3</version>
</dependency>
org.geoserver.web:gs-web-app fixed: 2.25.7
<dependency>
    <groupId>org.geoserver.web</groupId>
    <artifactId>gs-web-app</artifactId>
    <version>2.25.7</version>
</dependency>
org.geoserver:gs-wfs fixed: 2.25.7
<dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-wfs</artifactId>
    <version>2.25.7</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.web

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-30220, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.geoserver.web

Analyze the terminal output to locate any version of Gs web app in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.27.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.geoserver.web 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Gs web app, 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 GeoServer Web Feature Service (WFS) web service was found to be vulnerable to GeoTools CVE-2025-30220 XML External Entity (XXE) processing attack. It is possible to trigger the parsing of external DTDs and entities, bypassing standard entity resolvers. This allows for Out-of-Band (OOB) data exfiltration of local files accessible by the GeoServer process, and Service Side Request Forgery (SSRF). ## Details While direct entity resolution is managed by application property ENTITY_RESOLUTION_ALLOWLIST for XML Parsing, this restriction was not being used by the GeoTools library when building an in-memory XSD Library Schema representation. This bypasses GeoServer's AllowListEntityResolver enabling XXE attacks. ## PoC No public PoC is provided but this vulnerability has been confirmed to be exploitable through WFS service. ## Impact * Information Disclosure: This vulnerability allows unauthenticated attackers to read arbitrary files from the server's filesystem that are accessible to the GeoServer process. This can lead to exposure of sensitive information including configuration files, credentials, and system files. The attack can be performed remotely without authentication, making it particularly severe. * Server-Side Request Forgery (SSRF) The mechanism inherently allows forcing GeoServer to make HTTP requests to arbitrary URLs, enabling SSRF attacks against internal network resources ## References * [CVE-2025-30220](https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw) XML External Entity (XXE) Processing Vulnerability in XSD schema handling * [External Entities Resolution](https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities) (GeoServer User Manual) ## Acknowledgements This vulnerability was initially reported via an automated tool described below. Subsequently a duplicate report via @YacineF, and their patience working with the GeoServer project, was instrumental finding in escalating this issue and determining a resolution. ### XBOW-025-068 Disclaimer This vulnerability was detected using **[XBOW](https://xbow.com/)**, a system that autonomously finds and exploits potential security vulnerabilities. The finding has been thoroughly reviewed and validated by a security researcher before submission. While XBOW is intended to work autonomously, during its development human experts ensure the accuracy and relevance of its reports.

CVE-2025-30220 Affected Gs web app Versions

6 component(s)
Fixed Versions:
2.27.12.26.32.25.7
Product / Package Ecosystem Affected Versions Fixed Version
org.geoserver.web:gs-web-app
Maven
≥ 2.27.0
< 2.27.1
All 1 versions
2.27.0
2.27.1
org.geoserver:gs-wfs
Maven
≥ 2.27.0
< 2.27.1
All 1 versions
2.27.0
2.27.1
org.geoserver.web:gs-web-app
Maven
≥ 2.26.0
< 2.26.3
2.26.3
org.geoserver:gs-wfs
Maven
≥ 2.26.0
< 2.26.3
2.26.3
org.geoserver.web:gs-web-app
Maven
< 2.25.7
2.25.7
org.geoserver:gs-wfs
Maven
< 2.25.7
2.25.7

References

Frequently Asked Questions

What is CVE-2025-30220?
CVE-2025-30220 is a security vulnerability in Gs web app involving [XBOW-025-068] XML External Entity (XXE) Processing Vulnerability in GeoServer WFS Service under CWE-918: Server-Side Request Forgery (SSRF).
Which Gs web app versions are affected?
Affected versions include releases prior to 2.27.1, 2.26.3, 2.25.7 across affected packages: org.geoserver.web:gs-web-app, org.geoserver:gs-wfs.
What version fixes CVE-2025-30220?
Upgrading to 2.27.1, 2.26.3, 2.25.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gs-web-app affected?
Yes, org.geoserver.web:gs-web-app is affected in releases prior to 2.27.1, 2.26.3, 2.25.7. Upgrade your dependency to 2.27.1, 2.26.3, 2.25.7 or later.
Is gs-wfs affected?
Yes, org.geoserver:gs-wfs is affected in releases prior to 2.27.1, 2.26.3, 2.25.7. Upgrade your dependency to 2.27.1, 2.26.3, 2.25.7 or later.
What is the CVSS score of CVE-2025-30220?
CVE-2025-30220 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L.
What CWE is associated with CVE-2025-30220?
CVE-2025-30220 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Maven dependencies for CVE-2025-30220?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.geoserver.web'. 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-jj54-8f66-c5pc",
  "modified" : "2025-06-10T20:10:07Z",
  "published" : "2025-06-10T20:10:06Z",
  "aliases" : [ "CVE-2025-30220" ],
  "summary" : "[XBOW-025-068] XML External Entity (XXE) Processing Vulnerability in GeoServer WFS Service",
  "details" : "## Summary\n\nGeoServer Web Feature Service (WFS) web service was found to be vulnerable to GeoTools CVE-2025-30220 XML External Entity (XXE) processing attack.\n\nIt is possible to trigger the parsing of external DTDs and entities, bypassing standard entity resolvers.  This allows for Out-of-Band (OOB) data exfiltration of local files accessible by the GeoServer process, and Service Side Request Forgery (SSRF).\n\n## Details\n\nWhile direct entity resolution is managed by application property ENTITY_RESOLUTION_ALLOWLIST for XML Parsing, this restriction was not being used by the GeoTools library when building an in-memory XSD Library Schema representation.\n\nThis bypasses GeoServer's AllowListEntityResolver enabling XXE attacks.\n\n## PoC\n\nNo public PoC is provided but this vulnerability has been confirmed to be exploitable through WFS service.\n\n## Impact\n\n* Information Disclosure: \n\n  This vulnerability allows unauthenticated attackers to read arbitrary files from the server's filesystem that are accessible to the GeoServer process.\n  \n  This can lead to exposure of sensitive information including configuration files, credentials, and system files. The attack can be performed remotely without authentication, making it particularly severe.\n\n* Server-Side Request Forgery (SSRF) \n  \n  The mechanism inherently allows forcing GeoServer to make HTTP requests to arbitrary URLs, enabling SSRF attacks against internal network resources \n\n## References\n\n* [CVE-2025-30220](https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw) XML External Entity (XXE) Processing Vulnerability in XSD schema handling\n* [External Entities Resolution](https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities) (GeoServer User Manual)\n\n## Acknowledgements\n\nThis vulnerability was initially reported via an automated tool described below. Subsequently a duplicate report via @YacineF, and their patience working with the GeoServer project, was instrumental finding in escalating this issue and determining a resolution.\n\n### XBOW-025-068 Disclaimer\n\nThis vulnerability was detected using **[XBOW](https://xbow.com/)**, a system that autonomously finds and exploits potential security vulnerabilities. The finding has been thoroughly reviewed and validated by a security researcher before submission. While XBOW is intended to work autonomously, during its development human experts ensure the accuracy and relevance of its reports.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.geoserver.web:gs-web-app"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.27.0"
      }, {
        "fixed" : "2.27.1"
      } ]
    } ],
    "versions" : [ "2.27.0" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.geoserver:gs-wfs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.27.0"
      }, {
        "fixed" : "2.27.1"
      } ]
    } ],
    "versions" : [ "2.27.0" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.geoserver.web:gs-web-app"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.26.0"
      }, {
        "fixed" : "2.26.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.26.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.geoserver:gs-wfs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.26.0"
      }, {
        "fixed" : "2.26.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.26.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.geoserver.web:gs-web-app"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.25.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.25.6"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.geoserver:gs-wfs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.25.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.25.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30220"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geonetwork/core-geonetwork/pull/8757"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geonetwork/core-geonetwork/pull/8803"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geonetwork/core-geonetwork/pull/8812"
  }, {
    "type" : "WEB",
    "url" : "https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/geoserver/geoserver"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611", "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-10T20:10:06Z",
    "nvd_published_at" : "2025-06-10T16:15:37Z"
  }
}