Loading...
Skip to main content

CVE-2026-84939 — Vulnerability in org.freemarker:freemarker — CVE...

CRITICAL

Apache FreeMarker template loading mechanism vulnerable to path traversal

Published September 10, 2026Updated September 24, 2026Source: osv

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 (32 days ago).
  • Last revised September 24, 2026 — 15 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.freemarker:freemarker to 2.3.35 or later
<!-- Update pom.xml dependency version to 2.3.35 for org.freemarker:freemarker -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.freemarker:freemarker
maven
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.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

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

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

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-84939 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-27j2-h3m2-8237

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies