CVE-2026-84939 — Vulnerability in org.freemarker:freemarker
Apache FreeMarker template loading mechanism vulnerable to path traversal
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.85%). Schedule for your next planned update.
Does your project use an affected org.freemarker:freemarker version?
Paste your pom.xml to check it for CVE-2026-84939 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Path traversal vulnerability in Apache FreeMarker template loading mechanism, if the attacker can specify an arbitrary malformed locale identifier to FreeMarker, and the localized lookup configuration setting is enabled (it's by default enabled).
This issue affects Apache FreeMarker from 2.2.0 through 2.3.34.
Users are recommended to upgrade to version 2.3.35. Disabling localized lookup in previous versions also mitigates this.
Note that even in versions affected by this vulnerability, the files that can be loaded remain restricted by the TemplateLoader that FreeMarker is configured to use. In particular, FileTemplateLoader prevents attempts to traverse outside the baseDir specified in its constructor. Other TemplateLoader implementations may allow access outside their designated base directory, but they are still constrained by the underlying storage mechanism—for example, a loader wrapping a Java class loader can only access resources that the class loader can load, while one wrapping a web application context can only access resources available through that context.
Advisory Timeline
- First published September 10, 2026 (77 days ago).
- Last revised September 24, 2026 — 15 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.3.35 for org.freemarker:freemarker -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.freemarker:freemarker Maven · Affected: 2.3.10, 2.3.11, 2.3.12, 2.3.13 (+22 more) | 2.3.35 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-23
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-84939ADVISORY
- https://github.com/apache/freemarker/commit/83953d9a9fa5a7c1fce3e39ff57182c19a34b5ebWEB
- https://github.com/apache/freemarkerPACKAGE
- https://github.com/apache/freemarker/releases/tag/v2.3.35WEB
- https://lists.apache.org/thread/hrd7o2ylwkkswdyhyzllgqt0f80kyd5yWEB
- https://www.openwall.com/lists/oss-security/2026/09/08/2WEB
Frequently Asked Questions
- What is CVE-2026-84939?
- Apache FreeMarker template loading mechanism vulnerable to path traversal. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-84939?
- CVE-2026-84939 affects org.freemarker:freemarker. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-84939 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 55.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host