Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.geoserver/gs-main
  4. ›
  5. CVE-2024-34696

CVE-2024-34696: GeoServer's Server Status shows sensitive environmental variables and Java properties

July 1, 2024

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:

  • Data stores defined with parameterized catalog settings (-DALLOW_ENV_PARAMETRIZATION=true) which need a password or access key.

  • GeoServer’s official Docker image uses environment variables to configure PostgreSQL JNDI resources, including credentials (POSTGRES_HOST, POSTGRES_USERNAME, POSTGRES_PASSWORD)

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.

References

  • github.com/advisories/GHSA-j59v-vgcr-hxvf
  • github.com/geoserver/geoserver
  • github.com/geoserver/geoserver/security/advisories/GHSA-j59v-vgcr-hxvf
  • nvd.nist.gov/vuln/detail/CVE-2024-34696

Code Behaviors & Features

Detect and mitigate CVE-2024-34696 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.10.0 before 2.24.4, all versions starting from 2.25.0 before 2.25.1

Fixed versions

  • 2.24.4
  • 2.25.1

Solution

Upgrade to versions 2.24.4, 2.25.1 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

maven/org.geoserver/gs-main/CVE-2024-34696.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:08 +0000.