#1147516 libfreemarker-java: CVE-2026-84939

Package:
src:libfreemarker-java
Source:
src:libfreemarker-java
Submitter:
Salvatore Bonaccorso
Date:
2026-11-23 12:51:04 UTC
Severity:
normal
Tags:
#1147516#5
Date:
2026-09-12 15:10:21 UTC
From:
To:
Hi,

The following vulnerability was published for libfreemarker-java.

CVE-2026-84939[0]:
| 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.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-84939
https://www.cve.org/CVERecord?id=CVE-2026-84939
[1] https://lists.apache.org/thread/hrd7o2ylwkkswdyhyzllgqt0f80kyd5y

Regards,
Salvatore

#1147516#10
Date:
2026-11-23 12:49:51 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libfreemarker-java, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1147516@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg <ebourg@apache.org> (supplier of updated libfreemarker-java package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 23 Nov 2026 13:07:24 +0100
Source: libfreemarker-java
Architecture: source
Version: 2.3.35-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1139035 1145231 1147516
Changes:
 libfreemarker-java (2.3.35-1) unstable; urgency=medium
 .
   * New upstream release
     - Fixes CVE-2026-84939: Path traversal with malformed locale identifiers
       (Closes: #1147516)
     - Refreshed the patches
     - FreeMarker is now licensed under the Apache License 2.0
     - Updated debian/pom.xml
     - Build with gradle-debian-helper
   * Converted debian/watch to the version 5 format
   * Removed Varun Hiremath from the Uploaders (Closes: #1145231)
   * Removed Torsten Werner from the Uploaders (Closes: #1139035)
   * Standards-Version updated to 4.7.4
   * Removed the Priority field
   * Removed the Rules-Requires-Root field
Checksums-Sha1:
 f38e0684f1b13699dd8b17be167929c88312e279 2380 libfreemarker-java_2.3.35-1.dsc
 9f4ca23427ea09228392b2153eb28737108477a4 1281872 libfreemarker-java_2.3.35.orig.tar.xz
 b63e6d07ab7671cef50101aadb6fbb575f1bfbd0 11288 libfreemarker-java_2.3.35-1.debian.tar.xz
 61db60ed0c871642ba4ef1e73690e8de0745bca3 20894 libfreemarker-java_2.3.35-1_source.buildinfo
Checksums-Sha256:
 b312d8cfbf7a58fc2c7e046a395c4c4cc501e34dd6249fe7e2b7ad199f0547d5 2380 libfreemarker-java_2.3.35-1.dsc
 12cd689476aabde5c13aa9e85a4eb2037e5ceb1fcd3337dc71e69b6297b38e25 1281872 libfreemarker-java_2.3.35.orig.tar.xz
 1903cb38fe97720c4b505cdcbf26668159f5a602a4f9aed28208919c332b5e44 11288 libfreemarker-java_2.3.35-1.debian.tar.xz
 65642fc8eee664d94a8cf50a53b5fbaecf6ae94966139291c9eddc9ffaa8ee76 20894 libfreemarker-java_2.3.35-1_source.buildinfo
Files:
 ad25e49b555857df8b853299362ef4ac 2380 java optional libfreemarker-java_2.3.35-1.dsc
 eb4512933f999f512911fc5177c05b06 1281872 java optional libfreemarker-java_2.3.35.orig.tar.xz
 8266a567fceee73ecd3be4ff858198b3 11288 java optional libfreemarker-java_2.3.35-1.debian.tar.xz
 2314fea1ed6e6452c423efe7945edec9 20894 java optional libfreemarker-java_2.3.35-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmsEMm4SHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCsmdQQAIYZxK7gE3HZrlJX21kTnKTm1xpQlGd2
AhN1PVuti7RgmnHSlAbo2pDKUKXJP3JiInFq6UrnwYYI0OF1/6AIJ6jEPdpZfI2/
UBHJNSLzKCB6OZPantx1/h1EdSbRq3latzRKNJRj8p7aRnUohno7MriZ5a37bwiI
Bu99k9MiAl8aXrQxcpPuTfnHmARfKjmt5+FQm+FwQo/ROmvC7sH4sagbX/NzSLE6
WvIUtKPyhLRlzfcpLjbrbMVGdONpAwhKEAgY+HIXiz6drw9yFElW+5SKIDfVp4Fp
POIKP286J/6EDYCj/Qjb0MENSBPXDftRsWiYWvFJkPQr0r7azytHm7kW/oQ82EEy
KzYqF4+IhfLWQj4v2vDk6sgsvtCoUluz9G/qf4u8GtBsOgndcWBmN1DTerpwNIqI
CTDCej7n9VhaAVriagkb+BcXJxXxnD0pbUF7N6GN3aGT5zT6puTFU0n6Peau8C1m
YmRnM4nRmUbVeqcALf7CcG5wCSW3SQSv2rNsLKAIxQf1b7JlIMAVe7E14DcKBBG1
q1fpI7PrIJZjnoHIH6L8ChqXGbExE5uoFBDyp7MLGVcb3EvXJCaQF6YSUkKPrMN3
K8HWGFMrm7Xz3EY/5/Uiosk4cLpOBALmB4mhN+lNJZqz/xb71FkZms0l32GrLWLm
oj+Q3owKr5/j
=OFOT
-----END PGP SIGNATURE-----