GHSA-27j2-h3m2-8237

Suggest an improvement
Source
https://github.com/advisories/GHSA-27j2-h3m2-8237
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-27j2-h3m2-8237/GHSA-27j2-h3m2-8237.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-27j2-h3m2-8237
Aliases
  • CVE-2026-84939
Published
2026-09-10T06:31:45Z
Modified
2026-09-24T19:15:05Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Apache FreeMarker template loading mechanism vulnerable to path traversal
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-23"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-09-24T19:08:23Z",
    "nvd_published_at":  "2026-09-10T06:17:06Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Maven / org.freemarker:freemarker

Package

Name
org.freemarker:freemarker
View open source insights on deps.dev
Purl
pkg:maven/org.freemarker/freemarker

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.2.0
Fixed
2.3.35

Affected versions

2.*
2.3.9
2.3.10
2.3.11
2.3.12
2.3.13
2.3.14
2.3.15
2.3.16
2.3.17
2.3.18
2.3.19
2.3.20
2.3.21
2.3.22
2.3.23
2.3.24-incubating
2.3.25-incubating
2.3.26-incubating
2.3.27-incubating
2.3.28
2.3.29
2.3.30
2.3.31
2.3.32
2.3.33
2.3.34

Database specific

last_known_affected_version_range
"<= 2.3.34"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-27j2-h3m2-8237/GHSA-27j2-h3m2-8237.json"