Medium

GeoServer's Server Status shows sensitive environmental variables and Java properties

  • Disclosed: 01.07.2024
  • Updated: 11.10.2026 13:20

GeoServer's Server Status page and REST API (at /geoserver/rest/about/status) lists all environment variables and Java properties to any GeoServer user with administrative rights as part of those modules' status message.

These variables/properties can also contain sensitive information, such as database passwords or API keys/tokens, for example:

Additionally, many community-developed GeoServer container images export other credentials from their start-up scripts as environment variables to the GeoServer (java) process, such as:

  • GeoServer admin and master (root) passwords

  • Tomcat management application password

  • HTTPS/TLS certificate key store password

  • AWS S3 bucket access keys

The precise scope of the issue depends on which container image is used and how it is configured.

[!NOTE] Some container images allow passing secrets as files (eg: POSTGRES_PASSWORD_FILE), or randomly generating passwords on start-up. While this is promoted as best-practice[^secret-files], if its start-up script exports these as environment variables to GeoServer, they are also impacted by this issue.

Impact

The “about status” API endpoint (at /geoserver/rest/about/status) which powers the Server Status page is only available to administrators.

Depending on the operating environment, administrators might have legitimate access to credentials in other ways, but this issue defeats more sophisticated controls (like break-glass access to secrets or role accounts).

By default, GeoServer only allows same-origin authenticated API access. This limits the scope for a third-party attacker to use an administrator’s credentials to gain access to credentials (ie: requires XSS).

We were unable to determine any other conditions under which the GeoServer REST API may be available more broadly.

Fixes / remediation

GeoServer 2.24.4 and 2.25.1 hide all environment variables and Java system properties by default, with no further action required by GeoServer administrators.

There are new settings to allow an administrator to display these again – effectively reverting this security fix. We strongly recommend administrators leave these settings as-is, and use alternative mechanisms to access environment variables (instructions below).

If you're using GeoServer in a container runtime (such as Docker or Kubernetes) or from some other distributor's packages, you'll need to wait for the maintainer to update the version of GeoServer used in their image.

[!WARNING] If you run GeoServer with parameterized catalog settings (-DALLOW_ENV_PARAMETRIZATION=true), a GeoServer administrator could use this to access any environment variable or Java property by including it in some field which is rendered by the UI (such as the description field), even with this fix.

Advice for container / Docker image maintainers

Update container images to use GeoServer 2.24.4 or 2.25.1 to get the bug fix.

Please leave environment variables and Java system properties hidden by default. If you provide the option to re-enable it, communicate the impact and risks so that users can make an informed choice.

Container images should practice "defence in depth", to limit the impact when it is configured to show environment variables and/or properties:

  • Pass secrets to the container as either:

    • files which are only readable by the GeoServer process/UID, or,
    • references (identifiers) to a secret stored in a cloud provider's metadata or secret management service
  • Pass secrets to GeoServer by generating configuration files as part of your start-up scripts, rather than passing variables/properties or relying on parameterized catalog settings.

  • Ensure any configuration files with secrets are not readable by other users.

  • Clear all environment variables which contain secrets before starting GeoServer.

    Alternatively: start up GeoServer with only the environment variables it needs, and no secrets.

  • Don't pass secrets as command-line flags – these are shown in ps to all users!

Alternatives for displaying GeoServer's environment variables

  • On Linux, you can get all environment variables set at start-up time for a running process with:

    bash
    tr '\0' '\n' < /proc/${GEOSERVER_PID}/environ
  • On Windows, SysInternals' Process Explorer can show running processes' environment variables.

  • Current versions of macOS do not allow arbitrary access to other running processes' environment variables. Disabling these restrictions (on a macOS level) would significantly reduce the overall security of the system.

[^secret-files]: Docker Compose: How to use secrets in Docker Compose, Docker Swarm: Build support for Docker Secrets into your images

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.geoserver:gs-main >= 2.10.0, < 2.24.4, >= 2.25.0, < 2.25.1 2.24.4, 2.25.1
Java / Kotlin (Maven) org.geoserver.web:gs-web-app >= 2.10.0, < 2.24.4, >= 2.25.0, < 2.25.1 2.24.4, 2.25.1

References

CVSS score 4.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-200
Platform
Java / Kotlin (Maven)
Package
org.geoserver:gs-main, org.geoserver.web:gs-web-app
Disclosed
01.07.2024
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-j59v-vgcr-hxvf - CC BY 4.0

Vulnerability history: org.geoserver.web:gs-web-app

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (16) in the archive
Total entries
16
First → latest
10.2023 08.2026
Without a fix
0
Exploited in attacks
2

Severity breakdown

  • Critical 2
  • High 6
  • Medium 8

Disclosures per year

  1. 2023: 1
  2. 2024: 4
  3. 2025: 8
  4. 2026: 3
Severity:
  1. High · 7.2 CVE-2025-52465 >= 2.27.0, < 2.27.3, < 2.26.4 2.27.3, 2.26.4
  2. High · 8.2 Exploited in attacks CVE-2025-58360 >= 2.26.0, < 2.26.2, < 2.25.6 2.26.2, 2.25.6
  3. High · 8.2 CVE-2025-30220 >= 2.27.0, < 2.27.1, >= 2.26.0, < 2.26.3, < 2.25.7 2.27.1, 2.26.3, 2.25.7
  4. High · 7.5 CVE-2025-30145 >= 2.26.0, < 2.26.3, < 2.25.7 2.26.3, 2.25.7
  5. Critical · 9.8 Exploited in attacks CVE-2024-36401 >= 2.24.0, < 2.24.4, >= 2.25.0, < 2.25.2, >= 2.23.0, < 2.23.6, < 2.22.6 2.24.4, 2.25.2, 2.23.6, 2.22.6
  6. High · 7.5 CVE-2024-24749 < 2.23.5, >= 2.24.0, < 2.24.3 2.23.5, 2.24.3
  7. GeoServer's Server Status shows sensitive environmental variables and Java properties this entry
    Medium · 4.5 CVE-2024-34696 >= 2.10.0, < 2.24.4, >= 2.25.0, < 2.25.1 2.24.4, 2.25.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.