
CVE catalog
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
- Severity
- Critical · CVSS 9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.85% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libfreemarker-java | sid | 2.3.32-2.1 | vulnerable |
| Debian | libfreemarker-java | forky | 2.3.32-2.1 | vulnerable |
| Debian | libfreemarker-java | trixie | 2.3.32-2.1 | vulnerable |
| Debian | libfreemarker-java | bookworm | 2.3.31-2 | vulnerable |
| Cpe | freemarker | Not reported | 2.3.35 | fixed |
| Maven | org.freemarker:freemarker | Not reported | 2.3.35 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libfreemarker-java | source | sid | (unfixed) | not yet assigned | Not reported | [1147516] |
| Debian | libfreemarker-java | source | forky | (unfixed) | not yet assigned | Not reported | [1147516] |
| Debian | libfreemarker-java | source | trixie | (unfixed) | not yet assigned | Not reported | [1147516] |
| Debian | libfreemarker-java | source | bookworm | (unfixed) | not yet assigned | Not reported | [1147516] |
| Cpe | freemarker | cpe | Not reported | 2.3.35 | Not reported | NVD-CVE-2026-84939 | Not reported |
| Maven | org.freemarker:freemarker | maven | Not reported | 2.3.35 | Not reported | GHSA-27J2-H3M2-8237 | Not reported |
Notes
[trixie] libfreemarker-java: Minor issue [bookworm] libfreemarker-java: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libfreemarker-java]Affected
Details (2)
2.3.31-2· all · bookwormAffected
nvd · libfreemarker-java · debian · bookworm; nvd · libfreemarker-java · debian · 12
2.3.31-2· all · bookwormAffected
nvd · libfreemarker-java · debian · bookworm; nvd · libfreemarker-java · debian · 12
[Debian 13 (Trixie)]
- [libfreemarker-java]Affected
Details (2)
2.3.32-2.1· all · trixieAffected
nvd · libfreemarker-java · debian · 13
2.3.32-2.1· all · trixieAffected
nvd · libfreemarker-java · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2026:83082]
- [https://github.com/advisories/GHSA-27j2-h3m2-8237]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-84939]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-84939]
- [https://security-tracker.debian.org/tracker/CVE-2026-84939]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]