CVE-2025-30220: GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling

Published Jun 10, 2025
·
Updated

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 ENTITYRESOLUTIONALLOWLIST 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 XML External Entity (XXE) Processing Vulnerability in XSD schema handling External Entities Resolution (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, 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.

Other sources

GeoServer is an open source server that allows users to share and edit geospatial data. GeoTools Schema class use of Eclipse XSD library to represent schema data structure is vulnerable to XML External Entity (XXE) exploit. This impacts whoever exposes XML processing with gt-xsd-core involved in parsing, when the documents carry a reference to an external XML schema. The gt-xsd-core Schemas class is not using the EntityResolver provided by the ParserHandler (if any was configured). This also impacts users of gt-wfs-ng DataStore where the ENTITYRESOLVER connection parameter was not being used as intended. This vulnerability is fixed in GeoTools 33.1, 32.3, 31.7, and 28.6.1, GeoServer 2.27.1, 2.26.3, and 2.25.7, and GeoNetwork 4.4.8 and 4.2.13.

MITRE

Affected Software

15 affected componentsFixes available
maven/org.geoserver:gs-wfs<=2.25.6
2.25.7
maven/org.geoserver.web:gs-web-app<=2.25.6
2.25.7
maven/org.geoserver:gs-wfs>=2.26.0<=2.26.2
2.26.3
maven/org.geoserver.web:gs-web-app>=2.26.0<=2.26.2
2.26.3
maven/org.geoserver:gs-wfs=2.27.0
2.27.1
maven/org.geoserver.web:gs-web-app=2.27.0
2.27.1
GeoTools GeoTools<28.6.1
GeoTools GeoTools>=29.0<31.7
GeoTools GeoTools>=32.0<32.3
GeoTools GeoTools=33.0
OSGeo Geonetwork>=4.2.0<4.2.13
OSGeo Geonetwork>=4.4.0<4.4.8
OSGeo GeoServer<2.25.7
OSGeo GeoServer>=2.26.0<2.26.3
OSGeo GeoServer=2.27.0

Event History

Jun 10, 2025
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyAffected Software
Advisory Published
via GitHub·08:10 PM
Data Sourced
via GitHub·08:10 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-30220?

The severity of CVE-2025-30220 is typically classified as high due to the potential for XML External Entity (XXE) attacks.

2

How do I fix CVE-2025-30220?

To remediate CVE-2025-30220, upgrade affected GeoServer components to version 2.25.7 or 2.26.3 or 2.27.1.

3

Which versions of GeoServer are affected by CVE-2025-30220?

Affected versions of GeoServer include all versions prior to 2.25.7, and versions between 2.26.0 and 2.26.2.

4

What types of attacks can CVE-2025-30220 facilitate?

CVE-2025-30220 can facilitate XML External Entity (XXE) attacks, potentially leading to sensitive data exposure and server-side request forgery.

5

Is CVE-2025-30220 specific to WFS services in GeoServer?

Yes, CVE-2025-30220 specifically impacts the GeoServer Web Feature Service (WFS) functionality.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203