CSIRTS // UNIFIED SECURITY ADVISORY FEEDSYS ● ONLINE · POWERED BY INTELFUSIONS.COM

CVE-2024-45747

highCVSS 7.2covered by 1 sourcefirst seen 2026-08-19
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.

⚡ Watch CVE-2024-45747

Get an email if CVE-2024-45747 is added to CISA KEV, gains public exploit code, or a new advisory cites it — max one per day, one-click unsubscribe.

Advisory coverage (1)

External references

NVD record for CVE-2024-45747

CVE.org record

Embed the live status

CVE-2024-45747 live status badge — this badge updates automatically when the KEV or exploit status changes. How to embed it →

[![CVE-2024-45747 status](https://www.csirts.com/badge/CVE-2024-45747)](https://www.csirts.com/cve/CVE-2024-45747)