CVE-2023-41877
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGeoServer 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGeoServer versions 2.23.4 and prior contain a path traversal vulnerability where an authenticated administrator can misconfigure the Global Settings for log file location to access arbitrary files on the server filesystem, which are then viewable through the admin console's GeoServer Logs page preview feature.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 2.23.4CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine your GeoServer versionAccess the GeoServer admin interface and navigate to 'About > GeoServer' or use the REST API endpoint /geoserver/rest/about/version.xml to retrieve the installed version numberAffected if The installed version is 2.23.4 or any version prior to 2.23.4 (2.23.x series, 2.22.x series, or earlier)
-
Verify admin interface accessibilityCheck if the GeoServer admin console is accessible from untrusted networks by attempting to reach /geoserver/web/ or by reviewing network firewall rules and reverse proxy configurationsAffected if The admin interface is accessible to users who are not trusted administrators, increasing the attack surface
-
Review Global Settings log configurationLog in as an administrator and navigate to 'Settings > Global' to inspect the 'Log file location' setting, or examine the $GEOSERVER_DATA_DIR/global.xml configuration file for the <logFileLocation> elementAffected if The log file location is set to a path outside the expected logs directory (e.g., contains ../ sequences or points to sensitive system directories like /etc, /var, or /home)
-
Check for suspicious log file paths in configurationSearch the GeoServer configuration files (particularly global.xml) and the database for any logFileLocation entries that contain path traversal patterns such as '../', '..\', or reference system directories outside the GeoServer data directoryAffected if Any logFileLocation value contains path traversal characters or references files outside the intended logs directory
You are affected if running GeoServer version 2.23.4 or earlier AND the admin interface is accessible to an authenticated administrator who can modify Global Settings, particularly if the log file location contains unexpected paths.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedImplement the GEOSERVER_LOG_FILE or GEOSERVER_LOG_LOCATION parameter as a system property, environment variable, or servlet context parameter to override any malicious configuration set through the Global Settings page.
- Identify the method used to start/configure your GeoServer instance (systemd service, startup script, Docker, or servlet container)
- Set the GEOSERVER_LOG_FILE or GEOSERVER_LOG_LOCATION environment variable, system property, or servlet context parameter to a secure directory path that is within the GeoServer data directory or a restricted location
- For system property: Add -DGEOSERVER_LOG_FILE=/path/to/secure/logs/geoserver.log to the Java startup options
- For environment variable: Add GEOSERVER_LOG_LOCATION=/path/to/secure/logs to the process environment
- For servlet context: Configure in web.xml or context.xml with a <context-param> for GEOSERVER_LOG_LOCATION
- Restart GeoServer to apply the configuration changes
- Verify that the log file is being written to the configured secure location and that the GeoServer admin console logs page reflects the new path
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation1.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,696.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-41877 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-41877 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data