CVE-2025-4655
Java vulnerability analysis and mitigation

Overview

CVE-2025-4655 is a Server-Side Request Forgery (SSRF) vulnerability in FreeMarker templates within Liferay Portal and Liferay DXP that allows authenticated template editors to bypass access validations via crafted URLs. It affects Liferay Portal 7.4.0 through 7.4.3.132, and Liferay DXP 2025.Q1.0 through 2025.Q1.5, 2024.Q4.0 through 2024.Q4.7, 2024.Q3.1 through 2024.Q3.13, 2024.Q2.0 through 2024.Q2.13, 2024.Q1.1 through 2024.Q1.15, and 7.4 GA through update 92. The vulnerability was published on August 9, 2025. It carries a CVSS v3.1 base score of 5.0 (Medium) and a CVSS v4.0 base score of 5.1 (Medium) (GitHub Advisory, Liferay Advisory).

Technical details

The vulnerability is classified as CWE-918 (Server-Side Request Forgery) and resides in the FreeMarker template engine used by Liferay Portal and DXP. An attacker with template editing privileges can craft malicious URLs within FreeMarker templates that cause the server to make unauthorized outbound requests, bypassing the platform's built-in access validation controls. Exploitation requires low attack complexity and no user interaction beyond the attacker's own template editing access, but does require the attacker to hold template editor privileges on the platform (GitHub Advisory, Liferay Advisory).

Impact

Successful exploitation allows an authenticated template editor to make the Liferay server issue unauthorized server-side HTTP requests to internal or external resources, potentially exposing sensitive information from internal network services, cloud metadata endpoints, or other backend systems not directly accessible to the attacker. The primary impact is a low-level confidentiality breach on subsequent systems, with no direct integrity or availability impact on the vulnerable system itself. The scope change (S:C in CVSS v3.1) indicates that the impact extends beyond the vulnerable component to other systems reachable from the server (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit code available, and no evidence of in-the-wild exploitation has been reported as of the time of publication (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.036% (0.000360), placing it in the 38th percentile for exploitation probability within 30 days, indicating a low near-term exploitation likelihood (GitHub Advisory). Exploitation requires an attacker to already possess template editing privileges within the Liferay platform, which limits the attack surface.

Exploitation steps

  1. Gain Template Editor Access: Obtain an account with template editing privileges on a vulnerable Liferay Portal or DXP instance (e.g., through a compromised account, insider access, or social engineering).
  2. Navigate to Template Editor: Access the FreeMarker template editor within Liferay's CMS or Web Content administration interface.
  3. Craft Malicious SSRF Payload: Insert a FreeMarker template directive that triggers an outbound HTTP request to a target internal URL, such as a cloud metadata endpoint (e.g., http://169.254.169.254/latest/meta-data/) or an internal service, using a crafted URL that bypasses Liferay's access validation logic.
  4. Trigger Template Rendering: Save and render the template, causing the Liferay server to issue the unauthorized request on behalf of the attacker.
  5. Retrieve Response Data: Capture the server's response (e.g., via template output or out-of-band techniques) to extract sensitive information from internal resources (GitHub Advisory, Liferay Advisory).

Indicators of compromise

  • Network: Unexpected outbound HTTP requests from the Liferay server to internal IP ranges (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) or cloud metadata endpoints (e.g., 169.254.169.254); unusual DNS lookups originating from the Liferay application server process.
  • Logs: Liferay access or application logs showing FreeMarker template rendering events that include URL fetch operations to unexpected destinations; HTTP requests in server logs to internal services not normally accessed by the application.
  • Application: Newly created or recently modified FreeMarker templates containing URL-fetching directives (e.g., freemarker.template.utility.Execute, URL-based includes, or similar constructs) that reference internal or metadata service addresses.

Mitigation and workarounds

Liferay has released patched versions addressing this vulnerability: Liferay DXP 2025.Q1.6 and 2024.Q1.16 are confirmed fixed versions (GitHub Advisory). Organizations should upgrade to the latest available patched release for their respective DXP or Portal branch. As interim mitigations, restrict template editing permissions to only highly trusted users, implement network-level egress filtering to prevent the Liferay server from making unauthorized outbound requests to internal resources, and audit existing templates for suspicious URL-fetching directives (Liferay Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-53752HIGH7.5
  • Java logoJava
  • org.docx4j:docx4j-core
NoYesSep 14, 2026
CVE-2026-53659HIGH7.5
  • Java logoJava
  • org.http4k:http4k-core
NoYesSep 14, 2026
CVE-2026-73494HIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.13
NoYesSep 14, 2026
CVE-2026-55846MEDIUM6.2
  • Java logoJava
  • io.qameta.allure:allure-commandline
NoYesSep 14, 2026
CVE-2026-55847MEDIUM6.1
  • Java logoJava
  • io.qameta.allure:allure-generator
NoYesSep 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management