CVE-2026-84939Apache Freemarker relative path traversal
CVSS score
9.1
Critical
CVSS 3.1 from 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit probability (EPSS)
0.85%
0.85% chance of exploitation in the next 30 days, higher than 59.2% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security@apache.org
How to fix it, step by step
Check whether you're affected
Find every system running Apache Freemarker and compare its version with the affected versions.
Update to a fixed version
- Update Freemarker to 2.3.35 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
| Affected products | Versions |
|---|---|
| Apache Freemarker | ≥ 2.2, < 2.3.35 |
| Apache Apache FreeMarker | ≥ 2.2.0, ≤ 2.3.34 |
Weakness
- CWE-23 relative path traversal
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-84939 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.9% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-84939?
CVE-2026-84939 has a CVSS 3.1 base score of 9.1 (critical).
Which versions are affected?
Apache Freemarker (≥ 2.2, < 2.3.35), Apache Apache FreeMarker (≥ 2.2.0, ≤ 2.3.34)
Is there a patch for CVE-2026-84939?
The official record links to vendor advisories or patches; see “What to do” above.
References
- lists.apache.org/thread/hrd7o2ylwkkswdyhyzllgqt0f80kyd5y(Mailing List, Vendor Advisory)
- www.openwall.com/lists/oss-security/2026/09/08/2(Mailing List, Third Party Advisory)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.