CVE-2023-41339 Unsecured WMS dynamic styling sld=<url> parameter affords blind unauthenticated SSRF in GeoServer
Unauthenticated attackers can exploit unsecured dynamic styling parameters to perform Server-Side Request Forgery, potentially stealing credentials.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-41339?
CVE-2023-41339 is a high-severity server-side request forgery vulnerability in geoserver, published on 24 Oct 2023. An attacker can exploit it over the internet without logging in, 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. The WMS specification defines an ``sld=<url>`` parameter for GetMap, GetLegendGraphic and GetFeatureInfo operations for user supplied "dynamic styling". Enabling the use of dynamic styles, without also configuring URL checks, provides the opportunity for Service Side Request Forgery. This vulnerability can be used to steal user NetNTLMv2 hashes which could be relayed or cracked externally to gain further access. This vulnerability has been patched in versions 2.22.5 and 2.23.2.
Weakness: CWE-918
Which versions are affected by CVE-2023-41339?
8 open source packages ship an affected version, including org.geoserver.web:gs-web-app and org.geoserver:gs-wms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.geoserver.web:gs-web-app Maven | All versions | 2.22.5 |
org.geoserver.web:gs-web-app Maven | All versions | 2.22.5 |
org.geoserver.web:gs-web-app Maven | From 2.23.0 | 2.23.2 |
org.geoserver.web:gs-web-app Maven | From 2.23.0 | 2.23.2 |
org.geoserver:gs-wms Maven | All versions | 2.22.5 |
org.geoserver:gs-wms Maven | All versions | 2.22.5 |
2 more packages
org.geoserver:gs-wms Maven | From 2.23.0 | 2.23.2 |
org.geoserver:gs-wms Maven | From 2.23.0 | 2.23.2 |
Products include Osgeo Geoserver.
How do I fix CVE-2023-41339?
Upgrade org.geoserver.web:gs-web-app to a fixed version for your release line: 2.22.5 or 2.23.2.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2023-41339 being exploited?
There is no known exploitation of CVE-2023-41339 in the wild and no public exploit code.
Other vulnerabilities in geoserver
- CVE-2023-25157 Unfiltered SQL Injection Vulnerabilities in Geoserver
- CVE-2024-34711 GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)
- CVE-2023-43795 WPS Server Side Request Forgery in GeoServer
- CVE-2024-29198 GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost
- CVE-2025-30145 GeoServer has an Infinite Loop Vulnerability in Jiffle process
Sources
Also known as GHSA-cqpc-x2c6-2gmf.