CVEfocus › CVE database › CVE-2026-84939

CVE-2026-84939Apache FreeMarker, Apache FreeMarker: A malformed locale may be exploitable for path…

CVSS 9.1 CriticalEPSS 0.9% (higher than 56% of CVEs)Published 2026-09-10Updated 2026-09-10Assigner: apache

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.

CWE-23

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

1Fixed
7Fix pending
3Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libfreemarker-javaFix pendingUBUNTU-CVE-2026-84939
Ubuntu 26.04libfreemarker-javaUnder investigationUBUNTU-CVE-2026-84939
Ubuntu 24.04libfreemarker-javaUnder investigationUBUNTU-CVE-2026-84939
Ubuntu 22.04libfreemarker-javaUnder investigationUBUNTU-CVE-2026-84939
Ubuntu 20.04libfreemarker-javaFix pendingUBUNTU-CVE-2026-84939
Ubuntu 18.04libfreemarker-javaFix pendingUBUNTU-CVE-2026-84939
Ubuntu 16.04libfreemarker-javaFix pendingUBUNTU-CVE-2026-84939
Debian 14libfreemarker-javaFix pendingDEBIAN-CVE-2026-84939
Debian 13libfreemarker-javaFix pendingDEBIAN-CVE-2026-84939
Debian 12libfreemarker-javaFix pendingDEBIAN-CVE-2026-84939
Maven libraryorg.freemarker:freemarkerFixed2.3.35GHSA-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.

Vendor advisories:

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.