CVE-2024-35233org.geoserver:gs-restconfig Path Traversal
NVD
Vulnerability Summary
An administrator could use the REST API to create an ImageMosaic coverage store whose location is any directory the GeoServer process can write to, and then upload a file with an arbitrary name and content to that store. Uploading a JSP file into a web application directory of the servlet container, for example the Tomcat `webapps/ROOT` folder, allowed it to run as code. Impact A user with administrator access to the REST API can execute code with the operating system privileges of the servlet container. Details `POST /rest/workspaces/{workspace}/coveragestores/{store}/file.{format}?filename={name}` writes the request body into the coverage store directory using the requested file name. The file content was not checked, so any file type could be written. GeoServer 2.24.1 limited this for some deployments by the location of the internal data directory, but Tomcat on Windows remained affected. Mitigation Restrict the directories administrators can use with the filesystem sandbox (`GEOSERVER_FILESYSTEM_SANDBOX`), keeping web application folders outside it. Use an external data directory, and run the servlet container so it cannot write to its own web application folders. Resolution Patched for: GeoServer 3.0.0 GeoServer 2.28.5 GeoServer 2.27.6 Uploaded coverage store files are now checked for type before they are written, rejecting scripts and other files that are not supported data formats. No manual steps required. The check can be turned off with `GS_FILETYPES_UNRESTRICTED=true`, which is not recommended. References GEOS-12082 * Filesystem sandbox
CVSS v3.1 Base Metrics — Score 7.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- org.geoserver:gs-restconfig <= 2.27.5
- org.geoserver:gs-restconfig >= 2.28.0, <= 2.28.4
- org.geoserver:gs-restconfig 2.27.6
- org.geoserver:gs-restconfig 2.28.5, 3.0.0
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run org.geoserver:gs-restconfig and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 23, 2026Published
- Nov 23, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new org.geoserver:gs-restconfig CVEsYou are reading CVE-2024-35233. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 14:01 UTC