Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-84939

CRITICAL 9.1EPSS 56%

Apache FreeMarker, Apache FreeMarker: A malformed locale may be exploitable for path traversal attacks

Also known as GHSA-27j2-h3m2-8237

Mitigation

  • Upgrade org.freemarker:freemarker to 2.3.35 or later.

Who should check

  • Projects that depend on Maven package org.freemarker:freemarker (>= 2.2.0, < 2.3.35)
  • Anyone running Apache Software Foundation Apache FreeMarker >= 2.2.0, <= 2.3.34

Vulnerability facts

Affected
org.freemarker:freemarker >= 2.2.0, < 2.3.35
Fixed in
2.3.35
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
0.85% chance of exploitation in 30 days (percentile 56, 2026-11-26)
CWE
CWE-23
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.freemarker:freemarker>= 2.2.0, < 2.3.352.3.35osv
Apache Software Foundation Apache FreeMarker>= 2.2.0, <= 2.3.34—cvelist
Apache Software Foundation Apache FreeMarker>= 2.2.0, <= 2.3.34—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-84939. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-84939.md
Affected: org.freemarker:freemarker >= 2.2.0, < 2.3.35
Fixed in: 2.3.35

Steps:
1. Search this machine and project for org.freemarker:freemarker (Maven), Apache Software Foundation Apache FreeMarker: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-84939 being exploited?

There is no confirmed exploitation: CVE-2026-84939 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.85% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-84939?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-84939?

org.freemarker:freemarker >= 2.2.0, < 2.3.35.

Is there a fix for CVE-2026-84939?

Yes. Fixed in 2.3.35. Upgrade org.freemarker:freemarker to 2.3.35 or later.

How do I check if I'm affected by CVE-2026-84939?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors