VDB
Sign up
HIGH8.2

GHSA-fjf5-xgmq-5525

GeoServer is vulnerable to Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature

Quick fix

GHSA-fjf5-xgmq-5525 — org.geoserver.web:gs-web-app: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.26.2</version> for org.geoserver.web:gs-web-app

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.geoserver.web:gs-web-app
Introduced in: 2.26.0Fixed in: 2.26.2
Fix# pom.xml: bump <version>2.26.2</version> for org.geoserver.web:gs-web-app
Maven/org.geoserver:gs-wms
Introduced in: 2.26.0Fixed in: 2.26.2
Fix# pom.xml: bump <version>2.26.2</version> for org.geoserver:gs-wms
Maven/org.geoserver.web:gs-web-app
Introduced in: 0Fixed in: 2.25.6
Fix# pom.xml: bump <version>2.25.6</version> for org.geoserver.web:gs-web-app
Maven/org.geoserver:gs-wms
Introduced in: 0Fixed in: 2.25.6
Fix# pom.xml: bump <version>2.25.6</version> for org.geoserver:gs-wms

References