Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.geoserver/gs-wms
  4. ›
  5. CVE-2024-45747

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

August 19, 2026

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.

References

  • docs.geoserver.org/latest/en/user/tutorials/GetFeatureInfo/html/
  • github.com/advisories/GHSA-wf6j-gr27-g7ch
  • github.com/geoserver/geoserver/pull/8164
  • github.com/geoserver/geoserver/security/advisories/GHSA-wf6j-gr27-g7ch
  • nvd.nist.gov/vuln/detail/CVE-2024-45747
  • osgeo-org.atlassian.net/browse/GEOS-11645
  • osgeo-org.atlassian.net/browse/GEOS-11777

Code Behaviors & Features

Detect and mitigate CVE-2024-45747 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.27.0

Fixed versions

  • 2.27.0

Solution

Upgrade to version 2.27.0 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-749: Exposed Dangerous Method or Function

Source file

maven/org.geoserver/gs-wms/CVE-2024-45747.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 10 Sep 2026 00:18:43 +0000.