Skip to main content
No exploitation reportedFix available

CVE-2026-84939

No exploitation reported by the sources we read.

  • Published2026-09-10
  • Fixed in2.3.35
  • WeaknessCWE-23

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-09-1006:17CVE publishedNVD

Versions per branch

NVD · OSV
Apache freemarker
BranchAffectedFixed in
2.x≥ 2.2, < 2.3.352.3.35
2.x≥ 2.2.0, < 2.3.352.3.35

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache FreeMarkerother versions: not affected

    package org.freemarker:freemarkerhttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 2.2.0, ≤ 2.3.34no fix statedsemver

    Not affected = 2.3.35

  • Apache Software Foundation Apache FreeMarkerother versions: not affected

    package org.freemarker:freemarker-gaehttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 2.2.0, ≤ 2.3.34no fix statedsemver

    Not affected = 2.3.35

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-09-10

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • io.root.org.freemarker:freemarkerRoot:Mavenall versions · fixed in 2.3.32-root.io.1
  • io.root.org.freemarker:freemarkerRoot:Mavenall versions · fixed in 2.3.34-root.io.1
  • keycloak-26.6Wolfiall versions · fixed in 26.6.7-r3and 1 other package
  • keycloak-26.6Chainguardall versions · fixed in 26.6.7-r3and 1 other package
  • keycloak-26.7Chainguardall versions · fixed in 26.7.4-r4and 1 other package
  • keycloak-fips-26.6Chainguardall versions · fixed in 26.6.7-r5and 1 other package
  • keycloak-fips-26.7Chainguardall versions · fixed in 26.7.4-r3and 1 other package
  • libfreemarker-javaUbuntu:26.10all versions · no fixed version listed

19 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-84939 Red Hat Product Security2 products fixed · 1 known affected

    org.apache.freemarker/freemarker: Apache FreeMarker: Path traversal via malformed locale identifier

    freemarker as a component of Red Hat Single Sign-On 7

  • RHSA-2026:83520 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat build of Quarkus 3.33.4 release and security update

  • RHSA-2026:83082 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat build of Quarkus 3.27.6 release and security update

Full record on NVD

Fix

  1. Update Apache freemarker to 2.3.35
  2. Vendor fix Red Hat Product Security RHSA-2026:83520 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2026:83082 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For information about how to apply this update, see https://access.redhat.com/articles/11258.
  4. Workaround from the vendor Red Hat Product Security RHSA-2026:83520 · 1,040 productsTo 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 …
  5. No fix planned, says the vendor Red Hat Product Security CVE-2026-84939 · 1 productWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
2026-09-10
Last Modified
2026-09-11
NVD status
Analyzed
GitHub Advisory
GHSA-27j2-h3m2-8237

Frequently asked questions

What is CVE-2026-84939?

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.

Is CVE-2026-84939 actively exploited?

Active exploitation of CVE-2026-84939 has not been confirmed. Its EPSS score was 0.9% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-84939?

CVE-2026-84939 has a CVSS v3 base score of 9.1 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

Running freemarker? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record