CVE-2023-41877 GeoServer log file path traversal vulnerability
GeoServer administrators can exploit path traversal in log settings to read arbitrary files, requiring admin access and specific configuration.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-41877?
CVE-2023-41877 is a high-severity path traversal vulnerability in geoserver, published on 20 Mar 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
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.
Weakness: CWE-22
Which versions are affected by CVE-2023-41877?
2 open source packages ship an affected version, including org.geoserver:gs-main. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.geoserver:gs-main Maven | All versions to 2.23.4 | None |
org.geoserver:gs-main Maven | All versions to 2.23.4 | None |
Products include Geoserver Geoserver.
How do I fix CVE-2023-41877?
No fix has been published for CVE-2023-41877 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-41877 being exploited?
There is no known exploitation of CVE-2023-41877 in the wild and no public exploit code.
Other vulnerabilities in geoserver
- CVE-2024-36401 OSGeo GeoServer GeoTools Eval Injection
- CVE-2025-58360 OSGeo GeoServer Improper Restriction of XML External Entity Reference
- CVE-2023-35042 GeoServer RCE due to improper control of generation of code in jai-ext`Jiffle` map algebra language
- CVE-2024-24749 Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat
- CVE-2023-51444 GeoServer arbitrary file upload vulnerability in REST Coverage Store API
Sources
Also known as GHSA-8g7v-vjrc-x4g5.