CVE-2025-58360: GeoServer is vulnerable to Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature
Description An XML External Entity (XXE) vulnerability was identified. The application accepts XML input through a specific endpoint /geoserver/wms operation GetMap. However, this input is not sufficiently sanitized or restricted, allowing an attacker to define external entities within the XML request.
Published Nov 25, 2025 · Updated Dec 11, 2025
Affected packages
org.geoserver.web:gs-web-app
- Ecosystem
- Maven
- Affected
- >= 2.26.0, < 2.26.2
- Fixed in
- 2.26.2
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-web-app
org.geoserver:gs-wms
- Ecosystem
- Maven
- Affected
- >= 2.26.0, < 2.26.2
- Fixed in
- 2.26.2
- Check
mvn dependency:tree -Dincludes=org.geoserver:gs-wms
org.geoserver.web:gs-web-app
- Ecosystem
- Maven
- Affected
- < 2.25.6
- Fixed in
- 2.25.6
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-web-app
org.geoserver:gs-wms
- Ecosystem
- Maven
- Affected
- < 2.25.6
- Fixed in
- 2.25.6
- Check
mvn dependency:tree -Dincludes=org.geoserver:gs-wms
Required action
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Description
An XML External Entity (XXE) vulnerability was identified. The application accepts XML input through a specific endpoint `/geoserver/wms operation GetMap`. However, this input is not sufficiently sanitized or restricted, allowing an attacker to define external entities within the XML request.
An XML External Entity attack is a type of attack that occurs when XML input containing a reference to an external entity is processed by a weakly configured XML parser. This attack may lead to the disclosure of confidential data, denial of service, port scanning from the perspective of the machine where the parser is located, and other system impacts.
By exploiting this vulnerability, an attacker can:
- Read arbitrary files from the server's file system.
- Conduct Server-Side Request Forgery (SSRF) to interact with internal systems.
- Execute Denial of Service (DoS) attacks by exhausting resources.
Resolution
Update to GeoServer 2.25.6, GeoServer 2.26.3, or GeoServer 2.27.0.
Impact
The XXE vulnerability can be used to retrieve arbitrary files from the server's file system.
Reference
- https://osgeo-org.atlassian.net/browse/GEOS-11682
- XBOW-024-081
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.
Credited to xbow-security, jodygarnett.
References
- https://github.com/geoserver/geoserver/security/advisories/GHSA-fjf5-xgmq-5525
- https://osgeo-org.atlassian.net/browse/GEOS-11682
- https://nvd.nist.gov/vuln/detail/CVE-2025-58360
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-58360
- https://github.com/advisories/GHSA-fjf5-xgmq-5525
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2024-45747
GeoServer has a Server-Side Template Injection (SSTI) vulnerability in processing FreeMarker templates
high7.2Aug 19, 2026CVE-2025-52465
GeoServer has an arbitrary file write vulnerability in its Master Password Dump Page
high7.2Jun 12, 2026CVE-2025-58175
GeoServer has a Server-Side Request Forgery (SSRF) Vulnerability in its XML Entity Resolution
medium6.5Jun 12, 2026CVE-2025-21621
GeoServer has a Reflected Cross-Site Scripting (XSS) vulnerability in its WMS GetFeatureInfo HTML format
medium6.1Nov 25, 2025CVE-2024-34711
GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)
critical9.3Jun 10, 2025CVE-2024-38524
GWC Home Page communicate version and revision information
medium5.3Jun 10, 2025
