Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.2

CVE-2023-41877: GeoServer log file can be redirected to any location

CVE-2023-41877 · published 2 years ago
Summary

GeoServer versions up to 2.23.4 let an administrator change the log file path to any folder on the server. This could let a trusted user place logs where they shouldn’t be, potentially exposing sensitive information. To protect against it, set the GEOSERVER_LOG_FILE or GEOSERVER_LOG_LOCATION settings at the system level, overriding the console configuration.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
maven geoserver org.geoserver:gs-main <= 2.23.4
– geoserver geoserver <= 2.23.4
cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*
Original advisory text
GeoServer log file path traversal vulnerability
GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. A path traversal vulnerability in versions 2.23.4 and prior requires GeoServer Administrator with access to the admin console to misconfigure the Global Settings for log file location to an arbitrary location. The admin console GeoServer Logs page provides a preview of these contents. As this issue requires GeoServer administrators access, often representing a trusted party, the vulnerability has not received a patch as of time of publication. As a workaround, a system administrator responsible for running GeoServer can use the `GEOSERVER_LOG_FILE` setting to override any configuration option provided by the Global Settings page. The `GEOSERVER_LOG_LOCATION` parameter can be set as system property, environment variables, or servlet context parameters.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
7.2 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-22Path Traversal
Timeline
Published20 Mar 2024
Updated4 Nov 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta