{"id":"CVE-2023-41339","aliases":["CVE-2023-41339","GHSA-cqpc-x2c6-2gmf"],"related":[],"kind":"vulnerability","state":"published","title":"Unsecured WMS dynamic styling sld=<url> parameter affords blind unauthenticated SSRF in GeoServer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe 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.\n \nIt is possible to use this for \"Blind SSRF\" on the WMS endpoint to steal NetNTLMv2 hashes via file requests to malicious servers.\n\n### Details\n\nThis vulnerability requires:\n\n* WMS Settings dynamic styling being enabled\n* Security URL checks to be disabled, or to be enabled and allowing ``file:\\\\*`` access\n\n### Impact\n\nThis vulnerability can be used to steal user NetNTLMv2 hashes which could be relayed or cracked externally to gain further access.\n\n### Mitigation\n\nThe ability to reference an external URL location is defined by the WMS standard GetMap, GetFeatureInfo and GetLegendGraphic operations. These operations are defined by an Industry and International standard and cannot be redefined by the GeoServer application in isolation.\n\nTo disable dynamic styling on GeoServer 2.10.3 and GeoServer 2.11.1:\n\n1. Navigate to **Services > WMS Settings** page\n2. Locate **Dynamic styling** heading\n3. Select the **Disable usage of SLD and SLD_BODY parameters in GET requests and user styles in POST** checkbox.\n\n### Resolution\n\nTo allow dynamic styling safely on GeoServer 2.22.5 and GeoServer 2.23.2:\n\n1. Navigate to **Security > URL Checks**\n2. Enable **URL Checks are enabled** setting\n3. Check the user manual for [examples](https://docs.geoserver.org/latest/en/user/security/urlchecks.html#example-regex-patterns) of how to trust specific locations:\n   ``^https://styles\\.server\\.net/cartography/.*$``\n4. Enable dynamic styling on the **Services > WMS Settings** page, deselect the **Disable usage of SLD and SLD_BODY parameters in GET requests and user styles in POST** checkbox.\n\nUse of dynamic styling safely is on by default in GeoServer 2.24.0.\n\n### References\n\n* [Disabling usage of dynamic styling in GetMap, GetFeatureInfo and GetLegendGraphic requests](https://docs.geoserver.org/latest/en/user/services/wms/webadmin.html#disabling-usage-of-dynamic-styling-in-getmap-getfeatureinfo-and-getlegendgraphic-requests)\n* [URL Checks](https://docs.geoserver.org/latest/en/user/security/urlchecks.html)","format":"markdown","source":"ghsa"},{"lang":"es","text":"GeoServer es un servidor de software de código abierto escrito en Java que permite a los usuarios compartir y editar datos geoespaciales. La especificación WMS define un parámetro ``sld=`` para las operaciones GetMap, GetLegendGraphic y GetFeatureInfo para el \"estilo dinámico\" proporcionado por el usuario. Habilitar el uso de estilos dinámicos, sin configurar también comprobaciones de URL, brinda la oportunidad de Server-Side Request Forgery (SSRF). Esta vulnerabilidad se puede utilizar para robar hashes NetNTLMv2 del usuario que podrían transmitirse o descifrarse externamente para obtener más acceso. Esta vulnerabilidad ha sido parcheada en las versiones 2.22.5 y 2.23.2.","source":"nvd"}],"published":"2023-10-24T19:20:34.000Z","modified":"2026-06-17T06:21:52.097Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 2.22.5","status":"affected"},{"version":">= 2.23.0, < 2.23.2","status":"affected"}],"vendor":"geoserver","product":"geoserver","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.22.5","status":"affected"},{"type":"custom","introduced":"0","fixed":"2.23.2","status":"affected"}],"vendor":"geoserver","product":"geoserver","cpe":"cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.22.5"}],"ecosystem":"Maven","package":"org.geoserver:gs-wms","purl":"pkg:maven/org.geoserver/gs-wms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.23.0","status":"affected","fixed":"2.23.2"}],"ecosystem":"Maven","package":"org.geoserver:gs-wms","purl":"pkg:maven/org.geoserver/gs-wms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.22.5"}],"ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.23.0","status":"affected","fixed":"2.23.2"}],"ecosystem":"Maven","package":"org.geoserver.web:gs-web-app","purl":"pkg:maven/org.geoserver.web/gs-web-app","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.22.5"},{"status":"affected","introduced":"2.23.0","fixed":"2.23.2"}],"vendor":"osgeo","product":"geoserver","cpe":"cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/geoserver/geoserver/security/advisories/GHSA-cqpc-x2c6-2gmf","tags":["mitigation","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/geoserver/geoserver/releases/tag/2.22.5","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/geoserver/geoserver/releases/tag/2.23.2","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41339","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/geoserver/geoserver","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-09-11T17:56:27.424Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-41339","url":"https://www.cve.org/CVERecord?id=CVE-2023-41339","licence":"CVE Terms of Use","modified":"2024-09-11T18:00:37.015Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cqpc-x2c6-2gmf","url":"https://github.com/advisories/GHSA-cqpc-x2c6-2gmf","licence":"CC-BY-4.0","modified":"2024-03-06T23:57:16.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-41339","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41339","licence":"Public domain","modified":"2026-06-17T06:21:52.097Z"}],"updatedAt":"2026-11-25T22:58:29.054Z","epss":{"score":0.00632,"percentile":0.51675,"date":"2026-12-02T12:00:21.000Z"}}