{"id":"CVE-2025-52465","aliases":["CVE-2025-52465","GHSA-7qmg-grcp-qf25"],"related":[],"kind":"vulnerability","state":"published","title":"GeoServer has an arbitrary file write vulnerability in its Master Password Dump Page","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nA 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.\n\n### Details\nWhen 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.\n\n### Impact\n#### Remote Code Execution (High severity)\nThis 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.\n\n#### NTLM Hash Disclosure (Moderate severity)\nIf 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.\n\n#### Denial of Service (Low severity)\nThis 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.\n\n### Mitigation\nGeoServer installations where the web interface is either disabled or completely removed are not affected since the vulnerability exists in one of the web pages.\n\n### Resources\nhttps://osgeo-org.atlassian.net/browse/GEOS-11852\nhttps://github.com/geoserver/geoserver/pull/8584","format":"markdown","source":"ghsa"},{"lang":"es","text":"GeoServer es un servidor de código abierto que permite a los usuarios compartir y editar datos geoespaciales. Antes de las versiones 2.26.4 y 2.27.3, existe una vulnerabilidad que permite a un administrador autenticado con acceso al sistema de seguridad de GeoServer pasar nombres de archivo arbitrarios a la página web Master Password Dump y crear archivos que contengan la contraseña maestra en texto plano. El nombre de archivo proporcionado debe ser una ruta absoluta al archivo de destino, el archivo de destino no puede existir previamente y todos los directorios padre deben existir previamente. Las versiones 2.26.4 y 2.27.3 contienen una corrección. Las instalaciones de GeoServer donde la interfaz web está deshabilitada o completamente eliminada no se ven afectadas ya que la vulnerabilidad existe en una de las páginas web.","source":"nvd"}],"published":"2026-06-12T18:23:28.000Z","modified":"2026-10-06T22:10:00.247Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-73"],"affected":[{"ranges":[{"version":"< 2.26.4","status":"affected"},{"version":">= 2.27.0, < 2.27.3","status":"affected"}],"vendor":"geoserver","product":"org.geoserver.web:gs-web-app","source":"cvelist"},{"ranges":[{"version":"< 2.26.4","status":"affected"},{"version":">= 2.27.0, < 2.27.3","status":"affected"}],"vendor":"geoserver","product":"org.geoserver.web:gs-web-sec-core","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.27.0","status":"affected","fixed":"2.27.3"}],"ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.27.0","status":"affected","fixed":"2.27.3"}],"ecosystem":"Maven","package":"org.geoserver.web:gs-web-sec-core","purl":"pkg:maven/org.geoserver.web/gs-web-sec-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.26.4"}],"ecosystem":"Maven","package":"org.geoserver.web:gs-web-sec-core","purl":"pkg:maven/org.geoserver.web/gs-web-sec-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.26.4"}],"ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.26.4"},{"status":"affected","introduced":"2.27.0","fixed":"2.27.3"}],"vendor":"osgeo","product":"geoserver","cpe":"cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-7qmg-grcp-qf25","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/geoserver/geoserver/pull/8584","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOS-11852","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://research.checkpoint.com/2025/cve-2025-24054-ntlm-exploit-in-the-wild","tags":["not-applicable","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52465","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/geoserver/geoserver","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-23T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-52465","url":"https://www.cve.org/CVERecord?id=CVE-2025-52465","licence":"CVE Terms of Use","modified":"2026-06-24T03:56:00.821Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7qmg-grcp-qf25","url":"https://github.com/advisories/GHSA-7qmg-grcp-qf25","licence":"CC-BY-4.0","modified":"2026-07-15T22:00:51.269Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-52465","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52465","licence":"Public domain","modified":"2026-10-06T22:10:00.247Z"}],"updatedAt":"2026-11-25T22:59:12.329Z","epss":{"score":0.00353,"percentile":0.30945,"date":"2026-12-01T12:00:22.000Z"}}