/

CVE-2025-52465

Severity:

HIGH RISK

(7.2)

Path Manipulation (CWE-73) in GeoServer Security UI

CVE-2025-52465

Analyzed

Vulnerability type

Category:

Path Traversal / File Path Manipulation

CWE:

CWE-73

Impact:

Sensitive Credential Disclosure and Filesystem Manipulation

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

An authenticated path manipulation issue in GeoServer's security web interface allows an administrator to specify arbitrary file paths for the Master Password Dump feature.

Under certain configurations, this can result in plaintext master passwords being written to attacker-chosen locations on the server filesystem, increasing the risk of credential exposure and follow-on compromise.

Affected context

This vulnerability affects GeoServer deployments that:

  • Expose the web-based administration interface
  • Have the security system and Master Password Dump page enabled
  • Allow administrative users to interact with security pages from potentially untrusted workstations or shared accounts

It occurs specifically when an authenticated admin can submit an absolute filesystem path to the Master Password Dump function, where the target file does not yet exist but all parent directories already do.

Exploit preconditions

  • Attack surface: GeoServer administrative web interface (security system pages)
  • Required access: Authenticated administrator privileges within GeoServer
  • Trigger point: Invoking the Master Password Dump page with a user-supplied absolute file path
  • Why exploitation is possible: The server-side logic trusts the administrator-provided path, performing insufficient validation or restriction on where the file may be created, causing sensitive data (the master password) to be written in plaintext to arbitrary locations.

Why this happens

The underlying issue is improper restriction of user-controlled file paths in a sensitive operation, mapped to CWE-73: External Control of File Name or Path.

The Master Password Dump functionality accepts an absolute path from the web UI and uses it to create a new file without adequately constraining the destination to a safe directory, enforcing a strict policy, or neutralizing abuse of the file system namespace.

This design allows administrative users, or anyone who has obtained their session, to direct where secret material is stored, breaking expected isolation between credential storage and general server file locations.

Potential impact

  • Creation of new files containing the GeoServer master password in plaintext at attacker-chosen paths
  • Unauthorized disclosure of master credentials if the written file is accessible to other applications, backups, or operators
  • Use of exposed master password to decrypt or access other protected resources managed by GeoServer
  • Facilitation of lateral movement or privilege escalation if the target path intersects with monitored, shared, or synchronized directories

General mitigation guidance

Risk reduction typically focuses on constraining file operations and minimizing password exposure:

  • Restrict sensitive file creation features to fixed, server-controlled directories rather than accepting arbitrary paths from clients
  • Introduce strict allowlists or policy checks for any filename or path parameters in administrative functions
  • Avoid persisting master or root credentials in plaintext; if a dump mechanism is required, use encryption and controlled access
  • Limit the necessity and frequency of master password export in operational procedures, preferring in-memory operations and secret management systems
  • Ensure administrative interfaces are accessible only from tightly controlled networks and accounts with strong authentication and monitoring

How teams detect issues like this

Organizations can detect and monitor for this pattern through:

  • Static analysis rules or custom checks that flag server-side uses of user-supplied file paths in file creation or write APIs
  • Code review practices that pay special attention to administrative endpoints handling filesystem operations or credential material
  • Application-level logging that records use of security-related pages and the file paths they manipulate, with alerts for unusual locations
  • Configuration and policy scans that identify web features capable of exporting or dumping secrets, validating they are constrained and audited

Sources

SourceLink
github.comgithub.com/geoserver/geoserver/pull/8584
github.comgithub.com/geoserver/geoserver/security/advisories/GHSA-7qmg-grcp-qf25
osgeo-org.atlassian.netosgeo-org.atlassian.net/browse/GEOS-11852
research.checkpoint.comresearch.checkpoint.com/2025/cve-2025-24054-ntlm-exploit-in-the-wild

Frequently asked

questions

Exploitation requires authenticated GeoServer administrator access. However, if an attacker compromises an admin account or session, they can abuse this functionality to expose the master password.

Not directly. The primary effect is unauthorized creation of files containing the master password in plaintext. Any further compromise would depend on how the exposed password or written files are used in the broader environment.

The most robust approach is to remove the ability to specify arbitrary file paths for sensitive dumps and instead restrict output to tightly controlled locations, or eliminate plaintext export of master credentials altogether.

Treat any file or path parameter as untrusted, even on administrative pages; enforce strict directory constraints or allowlists, avoid writing secrets to arbitrary locations, and include filesystem and credential-handling reviews as a standard part of security design and code review.

Find out what's already
exploitable in your codebase.