{"api_version":"1","generated_at":"2026-09-10T09:14:28+00:00","cve":"CVE-2026-84939","urls":{"html":"https://cve.report/CVE-2026-84939","api":"https://cve.report/api/cve/CVE-2026-84939.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-84939","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-84939"},"summary":{"title":"Apache FreeMarker, Apache FreeMarker: A malformed locale may be exploitable for path traversal attacks","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).\n\nThis issue affects Apache FreeMarker from 2.2.0 through 2.3.34.\n\nUsers are recommended to upgrade to version 2.3.35. Disabling localized lookup in previous versions also mitigates this.\n\nNote 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.","state":"PUBLISHED","assigner":"apache","published_at":"2026-09-10 06:17:06","updated_at":"2026-09-10 06:17:06"},"problem_types":["CWE-23","CWE-23 CWE-23 Relative path traversal"],"metrics":[],"references":[{"url":"https://lists.apache.org/thread/hrd7o2ylwkkswdyhyzllgqt0f80kyd5y","name":"https://lists.apache.org/thread/hrd7o2ylwkkswdyhyzllgqt0f80kyd5y","refsource":"security@apache.org","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2026/09/08/2","name":"http://www.openwall.com/lists/oss-security/2026/09/08/2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-84939","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84939","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache FreeMarker","version":"affected 2.2.0 2.3.34 semver","platforms":[]},{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache FreeMarker","version":"unaffected 2.3.35 semver","platforms":[]},{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache FreeMarker","version":"affected 2.2.0 2.3.34 semver","platforms":[]},{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache FreeMarker","version":"unaffected 2.3.35 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2026-09-10T05:12:21.258Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"url":"http://www.openwall.com/lists/oss-security/2026/09/08/2"}],"title":"CVE Program Container"}],"cna":{"affected":[{"collectionURL":"https://repo.maven.apache.org/maven2","defaultStatus":"unaffected","packageName":"org.freemarker:freemarker","packageURL":"pkg:maven/org.freemarker/freemarker","product":"Apache FreeMarker","vendor":"Apache Software Foundation","versions":[{"lessThanOrEqual":"2.3.34","status":"affected","version":"2.2.0","versionType":"semver"},{"status":"unaffected","version":"2.3.35","versionType":"semver"}]},{"collectionURL":"https://repo.maven.apache.org/maven2","defaultStatus":"unaffected","packageName":"org.freemarker:freemarker-gae","packageURL":"pkg:maven/org.freemarker/freemarker-gae","product":"Apache FreeMarker","vendor":"Apache Software Foundation","versions":[{"lessThanOrEqual":"2.3.34","status":"affected","version":"2.2.0","versionType":"semver"},{"status":"unaffected","version":"2.3.35","versionType":"semver"}]}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"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).<br><br>This issue affects Apache FreeMarker from 2.2.0 through 2.3.34.<br><br>Users are recommended to upgrade to version 2.3.35. Disabling localized lookup in previous versions also mitigates this.<br><br>Note that even in versions affected by this vulnerability, the files that can be loaded remain restricted by the <code>TemplateLoader</code> that FreeMarker is configured to use. In particular, <code>FileTemplateLoader</code> prevents attempts to traverse outside the <code>baseDir</code> specified in its constructor. Other <code>TemplateLoader</code> 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."}],"value":"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).\n\nThis issue affects Apache FreeMarker from 2.2.0 through 2.3.34.\n\nUsers are recommended to upgrade to version 2.3.35. Disabling localized lookup in previous versions also mitigates this.\n\nNote 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."}],"metrics":[{"other":{"content":{"text":"important"},"type":"Textual description of severity"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-23","description":"CWE-23 Relative path traversal","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-09-10T05:07:24.045Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","shortName":"apache"},"references":[{"tags":["vendor-advisory"],"url":"https://lists.apache.org/thread/hrd7o2ylwkkswdyhyzllgqt0f80kyd5y"}],"source":{"discovery":"UNKNOWN"},"title":"Apache FreeMarker, Apache FreeMarker: A malformed locale may be exploitable for path traversal attacks","x_generator":{"engine":"Vulnogram 1.0.3"}}},"cveMetadata":{"assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","assignerShortName":"apache","cveId":"CVE-2026-84939","datePublished":"2026-09-10T05:07:24.045Z","dateReserved":"2026-09-02T16:35:39.404Z","dateUpdated":"2026-09-10T05:12:21.258Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-10 06:17:06","lastModifiedDate":"2026-09-10 06:17:06","problem_types":["CWE-23","CWE-23 CWE-23 Relative path traversal"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"84939","Ordinal":"1","Title":"Apache FreeMarker, Apache FreeMarker: A malformed locale may be ","CVE":"CVE-2026-84939","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"84939","Ordinal":"1","NoteData":"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).\n\nThis issue affects Apache FreeMarker from 2.2.0 through 2.3.34.\n\nUsers are recommended to upgrade to version 2.3.35. Disabling localized lookup in previous versions also mitigates this.\n\nNote 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.","Type":"Description","Title":"Apache FreeMarker, Apache FreeMarker: A malformed locale may be "}]}}}