cve.bz

CVE-2026-84939 apache freemarker: Relative Path Traversal

9.1 criticalEPSS 0.9%Fix available

Critical (9.1) in apache freemarker. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in org.freemarker:freemarker 2.3.35.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-09-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-23 Relative Path Traversal
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-84939 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-84939?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-84939?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-84939 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache FreeMarkerfrom 2.2.0 through 2.3.34

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-27j2-h3m2-8237Mavenorg.freemarker:freemarker>=2.2.0 <2.3.352.3.35

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libfreemarker-javano fix listedDEBIAN-CVE-2026-84939
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morelibfreemarker-javano fix listedUBUNTU-CVE-2026-84939

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important path traversal vulnerability in Apache FreeMarker, affecting Red Hat JBoss Fuse, Red Hat Build of Keycloak, and Red Hat Single Sign-On. An attacker can exploit this flaw by providing a malformed locale identifier when localized lookup is enabled by default, potentially accessing restricted files. While FileTemplateLoader limits traversal to its base directory, other TemplateLoader implementations may allow broader access, justifying the Important impact.

Red Hat's mitigation

To mitigate this vulnerability, disable the localized lookup configuration setting within your Apache FreeMarker deployment. This setting is enabled by default and its deactivation prevents the processing of malformed locale identifiers that could lead to path traversal. Consult your application's documentation for specific instructions on how to configure FreeMarker to disable localized lookup. A restart of the affected application or service will be required for the changes to take effect. Disabling localized lookup may impact applications that rely on this feature for internationalization.

ProductPackageStateAdvisory
Red Hat build of Quarkus 3.27.6.redhatorg.freemarker/freemarker:2.3.35Fixed 2026-10-15RHSA-2026:83082
Red Hat build of Quarkus 3.33.4.redhatorg.freemarker/freemarker:2.3.35Fixed 2026-10-15RHSA-2026:83520
Exploit Intelligenceexploit-intelligence/agent-client-rhel9Under investigation
Red Hat build of Apache Camel 4 for Quarkus 3freemarkerNot affected
Red Hat build of Apicurio Registry 3freemarkerNot affected
Red Hat Build of KeycloakfreemarkerNot affected
Red Hat Build of Keycloakrhbk/keycloak-rhel9Not affected
Red Hat Fuse 7freemarkerNot affected
Red Hat Fuse 7freemarker-parserNot affected
Red Hat Single Sign-On 7freemarkerWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-84939.

Attack patterns (CAPEC)

  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-139 Relative Path Traversal Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON