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.
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
Other sources
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 2.26.4 and 2.27.3, 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. Versions 2.26.4 and 2.27.3 contain a fix. 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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.geoserver.web:gs-web-appto a version that resolves this vulnerability.Fixed in 2.26.4 - Upgrade
Upgrade
maven/org.geoserver.web:gs-web-sec-coreto a version that resolves this vulnerability.Fixed in 2.26.4 - Upgrade
Upgrade
maven/org.geoserver.web:gs-web-sec-coreto a version that resolves this vulnerability.Fixed in 2.27.3 - Upgrade
Upgrade
maven/org.geoserver.web:gs-web-appto a version that resolves this vulnerability.Fixed in 2.27.3 - Upgrade
Upgrade
GeoServerto a version that resolves this vulnerability.Fixed in 2.26.4 - Upgrade
Upgrade
GeoServerto a version that resolves this vulnerability.Fixed in 2.27.3 - Compensating control
If using a Windows OS, ensure the GeoServer administrator already has access to the Windows account running the GeoServer process to prevent GeoServer from triggering outbound NTLM requests to an attacker-controlled server that could expose NTLM hashes or passwords.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-52465?
CVE-2025-52465 has a high severity rating of 7.2.
What kind of vulnerability is CVE-2025-52465?
CVE-2025-52465 is a path traversal vulnerability that affects GeoServer's security system.
How do I fix CVE-2025-52465?
To fix CVE-2025-52465, ensure that you restrict file name input rigorously and update to the latest version of GeoServer that addresses this issue.
Who is affected by CVE-2025-52465?
CVE-2025-52465 affects authenticated administrators with access to the GeoServer security system.
What can an attacker do with CVE-2025-52465?
An attacker exploiting CVE-2025-52465 can manipulate file names to create files that expose the master password in plaintext.