Apache FreeMarker, Apache FreeMarker: A malformed locale may be exploitable for path traversal attacks
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 2 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache FreeMarker | 2.2.0 – 2.3.34 | 2.3.35 | Patch available | CNA |
| Apache | Apache FreeMarker | 2.2.0 – 2.3.34 | 2.3.35 | Patch available | CNA |
| — | org.freemarker:freemarker (Maven) | 2.2.0 to before 2.3.35 | 2.3.35 | Patch available | GHSA-27j2-h3m2-8237 |
- Apache FreeMarker VendorApache Affected 2.2.0 – 2.3.34 Fixed in 2.3.35 Patch available CNA
- Apache FreeMarker VendorApache Affected 2.2.0 – 2.3.34 Fixed in 2.3.35 Patch available CNA
- org.freemarker:freemarker (Maven) Vendor— Affected 2.2.0 to before 2.3.35 Fixed in 2.3.35 Patch available GHSA-27j2-h3m2-8237
Remediation
- Fix · CNA Apache FreeMarker (Apache Software Foundation) Fixed in 2.3.35
- Fix · CNA Apache FreeMarker (Apache Software Foundation) Fixed in 2.3.35
- Fix · GHSA-27j2-h3m2-8237 org.freemarker:freemarker (Maven) Fixed in 2.3.35 Advisory →
Red Hat 2 advisories
- RHSA-2026:83520 Released 2026-10-15 · Red Hat rating ImportantRed Hat build of Quarkus 3.33.4 release and security update
- Red Hat build of Quarkus 3.33.4.redhat at.yawk.lz4.lz4-java-1.11.1.rhel8-redhat-00001.jar, com.fasterxml.jackson.core.jackson-core-2.21.7.redhat-00001.jar, com.fasterxml.jackson.core.jackson-databind-2.21.7.redhat-00001.jar +10
- RHSA-2026:83082 Released 2026-10-15 · Red Hat rating ImportantRed Hat build of Quarkus 3.27.6 release and security update
- Red Hat build of Quarkus 3.27.6.redhat at.yawk.lz4.lz4-java-1.11.1.rhel8-redhat-00001.jar, com.fasterxml.jackson.core.jackson-core-2.21.7.redhat-00001.jar, com.fasterxml.jackson.core.jackson-databind-2.21.7.redhat-00001.jar +11
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Exploit Intelligence | Affected | — |
| Red Hat Single Sign-On 7 | Affected | No fix planned: Will not fix |
| Red Hat build of Quarkus 3.27.6.redhat | Fixed | RHSA-2026:83082 |
| Red Hat build of Quarkus 3.33.4.redhat | Fixed | RHSA-2026:83520 |
Not affected: 6 products
- Red Hat Build of Keycloak
- Red Hat Fuse 7
- Red Hat build of Apache Camel 4 for Quarkus 3
- Red Hat build of Apicurio Registry 3
- Red Hat build of Quarkus 3.27.6.redhat
- Red Hat build of Quarkus 3.33.4.redhat
Timeline
- 2026-10-02 Threatist record created from CVE-2026-84939
- 2026-10-03 Alias added: GHSA-27j2-h3m2-8237
- 2026-10-16 Fix available: RHSA-2026:83520 · Red Hat
- 2026-10-16 Fix available: RHSA-2026:83082 · Red Hat
- 2026-10-16 Fix available: Red Hat build of Quarkus 3.27.6.redhat, Red Hat build of Quarkus 3.33.4.redhat · Red Hat
References
Advisory 3
Sources
- CVE-2026-84939 · CVE Program
- CVE-2026-84939 · NVD
- FIRST EPSS
- GHSA-27j2-h3m2-8237 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-84939 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences