CVE-2024-45747: Server-Side Template Injection in GeoServer FreeMarker Processing
CVE-2024-45747 is a server-side template injection vulnerability in GeoServer's processing of FreeMarker templates. An authenticated administrator can exploit template processing to execute operating system commands and read or write arbitrary files on the server.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises server confidentiality and integrity through arbitrary command execution and arbitrary file read/write. The scope of access is governed by the permissions of the GeoServer process.
Mitigation
If you can’t patch tonight, do this now.
No separate workaround is identified. The FreeMarker security controls introduced in the fixed release provide default restrictions on template-accessible objects and methods.
Remediation
Patch, then assume compromise.
Upgrade GeoServer to version 2.27.0 or later. The fixed release introduces the GEOSERVER_FREEMARKER_BLOCK_LIST, GEOSERVER_FREEMARKER_ALLOW_LIST, and GEOSERVER_FREEMARKER_API_EXPOSED security controls to restrict accessible template objects and limit access to getter methods.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2024-45747 exploited in the wild?
- As of Nov 25, 2026, Mallory has no reports of CVE-2024-45747 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-45747?
- As of Nov 25, 2026, Mallory has found no public exploit for CVE-2024-45747.
- Is there a patch for CVE-2024-45747?
- Upgrade GeoServer to version 2.27.0 or later. The fixed release introduces the GEOSERVER_FREEMARKER_BLOCK_LIST, GEOSERVER_FREEMARKER_ALLOW_LIST, and GEOSERVER_FREEMARKER_API_EXPOSED security controls to restrict accessible template objects and limit access to getter methods.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.