CVE-2023-41877 GeoServer log file path traversal vulnerability

High 7.2 Published Updated

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.

PackageAffectedFixed in
org.geoserver:gs-main MavenAll versions to 2.23.4None
org.geoserver:gs-main MavenAll versions to 2.23.4None

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.

Sources

Also known as GHSA-8g7v-vjrc-x4g5.

Is CVE-2023-41877 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free