CVE-2025-52465: GeoServer has an arbitrary file write vulnerability in its Master Password Dump Page
Summary A vulnerability exists that allows an authenticated administrator with access to GeoServer's security system to pass arbitrary file names to the Master Password Dump web page and create files containing the master password in plaintext. The provided file name must be an absolute path to the target file, the target file can not already exist and all parent directories must already exist.
Published Jun 12, 2026 · Updated Jul 15, 2026
Affected packages
org.geoserver.web:gs-web-app
- Ecosystem
- Maven
- Affected
- >= 2.27.0, <= 2.27.2
- Fixed in
- 2.27.3
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-web-app
org.geoserver.web:gs-web-sec-core
- Ecosystem
- Maven
- Affected
- >= 2.27.0, <= 2.27.2
- Fixed in
- 2.27.3
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-web-sec-core
org.geoserver.web:gs-web-sec-core
- Ecosystem
- Maven
- Affected
- <= 2.26.3
- Fixed in
- 2.26.4
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-web-sec-core
org.geoserver.web:gs-web-app
- Ecosystem
- Maven
- Affected
- <= 2.26.3
- Fixed in
- 2.26.4
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-web-app
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A vulnerability exists that allows an authenticated administrator with access to GeoServer's security system to pass arbitrary file names to the Master Password Dump web page and create files containing the master password in plaintext. The provided file name must be an absolute path to the target file, the target file can not already exist and all parent directories must already exist.
Details
When dumping the master password, GeoServer will use the provided file name with minimal validation as long as it is a java.io.File path. The only limitation is that the fix for a previous, unrelated vulnerability prevents relative path traversal here but absolute paths can be used to access arbitrary files. GeoServer does not enforce a maximum password length by default which allows an administrator to place malicious code into their password which could then be dumped into a JSP file.
Impact
Remote Code Execution (High severity)
This vulnerability can lead to executing arbitrary code if GeoServer is deployed in an environment where an attacker can dynamically deploy and execute a JSP file. This is possible if the geoserver.war file is simply placed into the webapps directory of a default Tomcat installation.
NTLM Hash Disclosure (Moderate severity)
If GeoServer is deployed in a Windows operating system and the GeoServer administrator does not already have access to the Windows account running the GeoServer process, it may be possible for the administrator to make GeoServer trigger an outbound NTLM request to a remote, attacker-controlled server and gain access to the NTLM hash or user password for use in future attacks.
Denial of Service (Low severity)
This vulnerability allows writing a file to any location where the GeoServer process has write permissions which could still potentially cause some kind of denial of service.
Mitigation
GeoServer installations where the web interface is either disabled or completely removed are not affected since the vulnerability exists in one of the web pages.
Resources
https://osgeo-org.atlassian.net/browse/GEOS-11852 https://github.com/geoserver/geoserver/pull/8584
Credited to YacineF, sikeoka, partywavesec, jodygarnett.
References
- https://github.com/geoserver/geoserver/security/advisories/GHSA-7qmg-grcp-qf25
- https://github.com/geoserver/geoserver/pull/8584
- https://nvd.nist.gov/vuln/detail/CVE-2025-52465
- https://osgeo-org.atlassian.net/browse/GEOS-11852
- https://research.checkpoint.com/2025/cve-2025-24054-ntlm-exploit-in-the-wild
- https://github.com/advisories/GHSA-7qmg-grcp-qf25
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-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-2025-58360
GeoServer is vulnerable to Unauthenticated XML External Entities (XXE) attack via WMS GetMap feature
high8.2ExploitedNov 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
