Skip to main content

Apache FreeMarker CVE-2026-84939

| EUVDEUVD-2026-75251 CRITICAL
Relative Path Traversal (CWE-23)
9.1
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app that feeds user input into FreeMarker locale
  2. Delivery
    Send request with malformed locale traversal string
  3. Exploit
    Localized lookup resolves out-of-path template
  4. Execution
    Permissive TemplateLoader loads target resource
  5. Impact
    Disclose file contents via rendered/loaded template

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
Exploitation Conditions

Two concrete prerequisites, both stated in the advisory: (1) the attacker must be able to supply an arbitrary, malformed locale identifier to FreeMarker (e.g. via a user-influenced Accept-Language header, request parameter, or locale setting), and (2) the 'localized lookup' configuration setting must be enabled - it is enabled by default. Exploitation is further LIMITED by the configured TemplateLoader: FileTemplateLoader entirely prevents traversal outside its baseDir, so deployments using it are not exploitable; classloader- or web-context-backed loaders are constrained to resources reachable through those mechanisms. Impact is therefore bounded to files the active loader can already address, not the entire filesystem.

Impact

The NVD CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:N, 9.1) rates this critical, but the signals are mixed: EPSS is only 0.21% (11th percentile), there is no known POC and no KEV listing, and the vendor advisory explicitly notes that TemplateLoader constraints substantially limit what can be reached - FileTemplateLoader, the common file-based default, is not exploitable for out-of-baseDir traversal at all. The I:H component is questionable: reading templates via traversal is fundamentally a confidentiality/disclosure issue, and no clear write/integrity primitive is described, so I:H appears overstated. Real-world priority is moderate and highly configuration-dependent - it matters most where an application both feeds untrusted input into the FreeMarker locale AND uses a permissive TemplateLoader. Where FileTemplateLoader is used, practical risk is low despite the 9.1 score.

Exploit ScenarioDerived

An application derives the FreeMarker locale from an untrusted source such as an HTTP Accept-Language header or a request parameter, and uses a permissive TemplateLoader (e.g. classloader- or servlet-context-backed). An attacker submits a malformed locale identifier containing traversal sequences, causing FreeMarker's localized lookup to resolve and load a template outside the intended template directory, disclosing file contents reachable through that loader. No public exploit code is identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Sep 10, 2026

Path traversal in Apache FreeMarker's template loading (versions 2.2.0 through 2.3.34) lets remote attackers who can influence the locale identifier passed to FreeMarker read templates outside the intended path when the default-enabled localized lookup feature is active. The actual reach is bounded by the configured TemplateLoader - FileTemplateLoader still blocks escape from its baseDir, while classloader- or servlet-context-backed loaders are limited to resources those mechanisms can reach. EPSS is low (0.21%, 11th percentile), no public exploit is identified at time of analysis, and it is not in CISA KEV.

Earlier versions of this analysis (1)
v1 Sep 08, 2026 - 16:21

Path traversal in Apache FreeMarker's template loading mechanism exposes applications to unauthorized file access when an attacker can supply an arbitrary malformed locale identifier to the engine. Versions 2.2.0 through 2.3.34 of both the standard and Google App Engine variants are affected when localized lookup is enabled - the default configuration. Actual file exposure is bounded by the configured TemplateLoader: FileTemplateLoader prevents traversal outside its baseDir by design, but other TemplateLoader implementations may permit access to resources beyond the intended base directory within their respective storage scope. No public exploit or KEV listing has been identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to Apache FreeMarker 2.3.35, which resolves the traversal in the localized lookup path. If you cannot upgrade immediately, the vendor-supported workaround is to disable localized lookup (Configuration.setLocalizedLookup(false)); the trade-off is that locale-specific template variants (e.g. index_en_US.ftl) will no longer be resolved, so applications relying on that convention must supply localization by other means. As a defense-in-depth measure, ensure a restrictive TemplateLoader is in use - FileTemplateLoader confines resolution to its baseDir and blocks out-of-directory traversal - and avoid passing untrusted, unvalidated user input directly as the FreeMarker locale. See the Apache advisory thread https://lists.apache.org/thread/hrd7o2ylwkkswdyhyzllgqt0f80kyd5y and https://freemarker.apache.org/ for details.

Affected VersionsENISA

Apache FreeMarker 2.2.0 ≤2.3.34

Affected Packages

maven org.freemarker:freemarker fix: 2.3.35
euvd apache_freemarker no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FreeMarker is a widely embedded Java template engine used by web frameworks, CMS platforms, and code generators to render templates loaded through a pluggable TemplateLoader abstraction. When 'localized lookup' is enabled (the default), FreeMarker derives candidate template filenames from a locale identifier (e.g. 'index_en_US.ftl'), and a malformed/attacker-controlled locale string can inject relative path traversal sequences into that lookup - the CWE-23 (relative path traversal) root cause. Because the traversal happens during template name resolution rather than at the storage layer, the effective boundary is whatever the active TemplateLoader enforces: FileTemplateLoader sanitizes against its baseDir, but other loaders may resolve names more permissively within their underlying storage.

Know when Freemarker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.5 HIGH

Remotely supplied malformed locale needs no auth or interaction (AV:N/AC:L/PR:N/UI:N); it discloses template/file contents (C:H) but describes no write/modify primitive, so I:N and A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

3
Analysis Updated
Sep 10, 2026 - 16:31 vuln.today
v2 - CVSS changed
CVSS changed
Sep 10, 2026 - 16:22 NVD
9.1 (CRITICAL)
CVE Published
Sep 08, 2026 - 15:27 oss-security
CRITICAL

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

Apache FreeMarker versions 2.2.0 through 2.3.34 contain a path traversal vulnerability that allows remote attackers to read template files outside their intended directory when localized lookup is enabled. This exposes any sensitive configuration, business logic, or credentials embedded in template files, putting organizations at risk of information disclosure without requiring authentication.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: configure FileTemplateLoader with the most restrictive baseDir possible to limit escape potential; disable FreeMarker's default-enabled localized lookup feature if business requirements permit; implement network controls restricting which clients can influence locale identifier parameters; enforce strict file-system permissions on template directories; conduct an audit of template file contents to identify and remove sensitive data.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
High
widely embedded Java template engine across many web frameworks and CMS platforms
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy