CVE-2026-84939Apache FreeMarker, Apache FreeMarker: A malformed locale may be exploitable for path…
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libfreemarker-java | Fix pending | UBUNTU-CVE-2026-84939 | |
| Ubuntu 26.04 | libfreemarker-java | Under investigation | UBUNTU-CVE-2026-84939 | |
| Ubuntu 24.04 | libfreemarker-java | Under investigation | UBUNTU-CVE-2026-84939 | |
| Ubuntu 22.04 | libfreemarker-java | Under investigation | UBUNTU-CVE-2026-84939 | |
| Ubuntu 20.04 | libfreemarker-java | Fix pending | UBUNTU-CVE-2026-84939 | |
| Ubuntu 18.04 | libfreemarker-java | Fix pending | UBUNTU-CVE-2026-84939 | |
| Ubuntu 16.04 | libfreemarker-java | Fix pending | UBUNTU-CVE-2026-84939 | |
| Debian 14 | libfreemarker-java | Fix pending | DEBIAN-CVE-2026-84939 | |
| Debian 13 | libfreemarker-java | Fix pending | DEBIAN-CVE-2026-84939 | |
| Debian 12 | libfreemarker-java | Fix pending | DEBIAN-CVE-2026-84939 | |
| Maven library | org.freemarker:freemarker | Fixed | 2.3.35 | GHSA-27j2-h3m2-8237 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache FreeMarker: affected: 2.2.0 to 2.3.34, 2.3.35 not affected
Vendor advisories:
- https://lists.apache.org/thread/hrd7o2ylwkkswdyhyzllgqt0f80kyd5y (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.