logo

JAVA-ORGFREEMARKER-1076795 org.freemarker:freemarker

Package

Manager: maven
Name: org.freemarker:freemarker
Vulnerable Version: >=0 <2.3.30

Severity

Level: Medium

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

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

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.

Metadata

Created:
Modified:
Source: MANUAL
CWE IDs: ["CWE-94"]
Alternative ID: N/A
Finding: F422
Auto approve: 1