Server-side Template Injection (SSTI) Affecting freemarker:freemarker package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Template Injection (SSTI) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-FREEMARKER-13865285
  • published10 Nov 2025
  • disclosed9 Apr 2020
  • creditAckcent

Introduced: 9 Apr 2020

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for freemarker:freemarker.

Overview

freemarker:freemarker is a FreeMarker is a "template engine"; a generic tool to generate text output based on templates.

Affected versions of this package are vulnerable to Server-side Template Injection (SSTI). By allowing user input into java.security.ProtectionDomain.getClassLoader, templates will get access to the java classloader. This can be further leveraged for file system access and code execution. A low-privileged user is sufficient for exploitation of this vulnerability.

CVSS Base Scores

version 3.1