Skip to main content

Improper Neutralization of Special Elements Used in a Template Engine in org.freemarker:freemarker

Cxb3498186-093f

  • org.freemarker:freemarker
Severity High
Score 7.5/10

Summary

Freemarker prior to 2.3.30 is susceptible to Server-side Template Injection (SSTI). By using an unsafe method java.security.ProtectionDomain.getClassLoader templates, an attacker can get access to the classloader and from there can get filesystem access and code execution.

  • HIGH
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • LOW
  • HIGH
  • HIGH

CWE-1336 - Improper Neutralization of Special Elements Used in a Template Engine

The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Advisory Timeline

  • Published