llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Maven · org.geoserver:gs-main

GHSA-WF6J-GR27-G7CH

GeoServer has a Server-Side Template Injection (SSTI) vulnerability in processing FreeMarker templates

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión2.27.0
Exposición92 dDesde la divulgación, 19 ago 2026, 2:31 p. m.
Detección89 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Monitoreo
Detectada
19 ago 26
17 nov 26
20 nov 26
19 ago 26
11 sept 26
5 oct 26
28 oct 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-WF6J-GR27-G7CH divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Summary
A server-side template injection (SSTI) vulnerability exist that allows an authenticated administrator to upload FreeMarker templates containing malicious content that can execute OS commands and read from or write to arbitrary files on the server. These FreeMarker templates are used in a plain GeoServer instance (no extension or community modules) for WMS GetFeatureInfo HTML and JSON and WMS GetMap KML and GeoRSS output formats.

### Details
The org.geoserver.template.TemplateUtils.getSafeConfiguration() method attempts to block access to the class freemarker.template.utility.Execute but it is still possible to gain access to it and other sensitive functionality by chaining a specific sequence of method calls.

### Impact
This vulnerability can lead to executing arbitrary code and reading and writing arbitrary files.

### Resolution
GeoServer 2.27.0 addresses this vulnerability with several new application properties:

  • ``GEOSERVER_FREEMARKER_BLOCK_LIST``
  • ``GEOSERVER_FREEMARKER_ALLOW_LIST``
  • ``GEOSERVER_FREEMARKER_API_EXPOSED``

These application properties default to restricting the objects template authors can access, and limit access to "getter" methods used to access object properties.

Versiones

Rangos afectados

Afectada Corregida
org.geoserver:gs-main · org.geoserver:gs-wms · org.geoserver.web:gs-web-app< 2.27.0
2.27.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Mavenorg.geoserver:gs-main
Corregida 2.27.0 — —
Mavenorg.geoserver:gs-wms
Corregida 2.27.0 — —
Mavenorg.geoserver.web:gs-web-app
Corregida 2.27.0 — —
Versiones corregidas2.27.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/geoserver/geoserver/security/advisories/GHSA-wf6j-gr27-g7ch
Otrahttps://github.com/geoserver/geoserver/pull/8164
Otrahttps://docs.geoserver.org/latest/en/user/tutorials/GetFeatureInfo/html/#accessing-instance-methods
Otrahttps://github.com/geoserver/geoserver
Otrahttps://osgeo-org.atlassian.net/browse/GEOS-11645
Otrahttps://osgeo-org.atlassian.net/browse/GEOS-11777

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.