CVE-2025-43825: Com.liferay.portal.template.freemarker Liferay Portal Exposes Sensitive User Vulnerability
MODERATECVE-2025-43825 is a MODERATE liferay portal exposes sensitive user vulnerability (CWE-201: Insertion of Sensitive Information Into Sent Data) affecting Com.liferay.portal.template.freemarker libraries in the Maven ecosystem. The issue involves liferay portal exposes sensitive user data through its freemarker template. Remediation is available by upgrading affected packages to version 7.0.60.
CVE-2025-43825 at a Glance
How to Fix CVE-2025-43825
To remediate this vulnerability, upgrade all affected Com.liferay.portal.template.freemarker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.liferay</groupId>
<artifactId>com.liferay.portal.template.freemarker</artifactId>
<version>7.0.60</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.liferay
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-43825, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.liferay
Analyze the terminal output to locate any version of Com.liferay.portal.template.freemarker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.60), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.liferay command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-201: Insertion of Sensitive Information Into Sent Data, where the code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor. In Com.liferay.portal.template.freemarker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-43825 Affected Com.liferay.portal.template.freemarker Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.liferay:com.liferay.portal.template.freemarker
|
Maven |
≥ 7.0.3
< 7.0.60
|
7.0.60
|
References
Frequently Asked Questions
What is CVE-2025-43825?
Which Com.liferay.portal.template.freemarker versions are affected?
What version fixes CVE-2025-43825?
Is com.liferay.portal.template.freemarker affected?
What CWE is associated with CVE-2025-43825?
How can I check Maven dependencies for CVE-2025-43825?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rggc-gf6w-9q73",
"modified" : "2025-12-17T00:11:09Z",
"published" : "2025-10-04T00:32:21Z",
"aliases" : [ "CVE-2025-43825" ],
"summary" : "Liferay Portal exposes sensitive user data through its Freemarker template",
"details" : "A vulnerability in Liferay Portal 7.4.0 through 7.4.3.132, and Liferay DXP 2025.Q1.0 through 2025.Q1.4, 2024.Q4.0 through 2024.Q4.5, 2024.Q3.0 through 2024.Q3.13, 2024.Q2.1 through 2024.Q2.13, 2024.Q1.1 through 2024.Q1.12, 2023.Q4.0 through 2023.Q4.10, 2023.Q3.1 through 2023.Q3.10, and 7.4 GA through update 92 allows sensitive user data to be included in the Freemarker template. This weakness permits an unauthorized actor to gain access to, and potentially expose, confidential information that should remain restricted.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.liferay:com.liferay.portal.template.freemarker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.3"
}, {
"fixed" : "7.0.60"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-43825"
}, {
"type" : "WEB",
"url" : "https://github.com/liferay/liferay-portal/commit/ff6c9fb24587a0c7bf3c48356a38b3f492670ea0"
}, {
"type" : "WEB",
"url" : "https://github.com/liferay/liferay-portal"
}, {
"type" : "WEB",
"url" : "https://liferay.atlassian.net/browse/LPE-18166"
}, {
"type" : "WEB",
"url" : "https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/CVE-2025-43825"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-201" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-07T12:59:19Z",
"nvd_published_at" : "2025-10-03T22:15:30Z"
}
}