Skip to content
XXE Write-up Intermediate

GeoServer: CVE-2025–58360

GeoServer's WMS GetMap operation accepts XML POST bodies and parses them with an unrestricted XML parser, allowing an attacker to define an external entity that reads local files. The file contents are returned in the error message, enabling disclosure of sensitive files such as /etc/passwd.

medium.com

Published on medium.com

Geoserver (Used in the lab) : http://10.48.179.16:8080/trymapme

Saiaditya, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could read arbitrary local files on the server, potentially exposing sensitive information.

What the attacker needed

Network access to GeoServer; WMS service enabled

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

GeoServer is a map server. It can accept map requests written in XML. If the XML parser is not told to ignore special declarations, an attacker can make the server read a local file and include its contents in an error message. This is called XXE, or XML External Entity injection.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

Similar reports

View all

Same bug class and techniques, clearest first.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.