CVE-2026-27851
HighCVSS 7.4Exploitation Probability (EPSS)
Low risk33th percentile - higher than 33% of all known CVEs
Summary
A vulnerability in the safe filter causes all subsequent pipelines on the same string to be incorrectly treated as safe after variable expansion, allowing unsafe data to be unescaped. This can enable SQL or LDAP injection attacks, especially in authentication contexts.
Risk Assessment
The organization faces the risk of SQL or LDAP injection in authentication processes, potentially leading to unauthorized access to systems and data.
Recommendation
Avoid using the safe filter until a fixed version is released. Once a patch is available, update the system immediately.
Other vulnerabilities in Apache FreeMarker
Original NVD description (English source)
When safe filter is used with variable expansion, all following pipelines on the same string are incorrectly interpreted as safe too, enabling unsafe data to be unescaped. This can enable SQL / LDAP injection attacks when used in authentication. Avoid using safe filter until on fixed version. No publicly available exploits are known.

