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 | Vendor | Product | Affected 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.
References
- https://github.com/advisories/GHSA-8g7v-vjrc-x4g5
- https://docs.geoserver.org/latest/en/user/configuration/globalsettings.html#log-... URL
- https://nvd.nist.gov/vuln/detail/CVE-2023-41877 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/41xxx/CVE-2023-41877... Vendor Advisory
- https://github.com/geoserver/geoserver/security/advisories/GHSA-8g7v-vjrc-x4g5 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Type
CWE-22Path Traversal
Timeline
Published20 Mar 2024
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta