Vulnerabilities in pkg:maven/com.liferay/com.liferay.portal.template.freemarker

PACKAGE
Advisory Identifier: GHSA-rggc-gf6w-9q73
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.liferay/com.liferay.portal.template.freemarker

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.liferay/com.liferay.portal.template.freemarker. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rggc-gf6w-9q73 CVE-2025-43825 MODERATE Liferay Portal exposes sensitive user data through its Freemarker template

CVE-2025-43825 at a Glance

CVE Identifier CVE-2025-43825
GHSA Identifier GHSA-rggc-gf6w-9q73
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-201: Insertion of Sensitive Information Into Sent Data
Affected Product Com.liferay.portal.template.freemarker
Package Ecosystem Maven
Published Date
Last Updated

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.

com.liferay:com.liferay.portal.template.freemarker fixed: 7.0.60
<dependency>
    <groupId>com.liferay</groupId>
    <artifactId>com.liferay.portal.template.freemarker</artifactId>
    <version>7.0.60</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2025-43825 Affected Com.liferay.portal.template.freemarker Versions

1 component(s)
Fixed Versions:
7.0.60
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?
CVE-2025-43825 is a security vulnerability in Com.liferay.portal.template.freemarker involving Liferay Portal exposes sensitive user data through its Freemarker template under CWE-201: Insertion of Sensitive Information Into Sent Data.
Which Com.liferay.portal.template.freemarker versions are affected?
Affected versions include releases prior to 7.0.60 across affected packages: com.liferay:com.liferay.portal.template.freemarker.
What version fixes CVE-2025-43825?
Upgrading to 7.0.60 (or the latest patched release for your respective branch) resolves the vulnerability.
Is com.liferay.portal.template.freemarker affected?
Yes, com.liferay:com.liferay.portal.template.freemarker is affected in releases prior to 7.0.60. Upgrade your dependency to 7.0.60 or later.
What CWE is associated with CVE-2025-43825?
CVE-2025-43825 is classified under CWE-201: Insertion of Sensitive Information Into Sent Data (The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.).
How can I check Maven dependencies for CVE-2025-43825?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.liferay'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}