CVE-2025-3586
Description
In Liferay Portal 7.4.3.27 through 7.4.3.42, and Liferay DXP 2024.Q1.1 through 2024.Q1.20, 2023.Q4.0 through 2023.Q4.10, 2023.Q3.1 through 2023.Q3.10, 7.4 update 27 through update 42 (Liferay PaaS, and Liferay Self-Hosted), the Objects module does not restrict the use of Groovy scripts in Object actions for Admin Users. This allows remote authenticated admin users with the Instance Administrator role to execute arbitrary Groovy scripts (i.e., remote code execution) through Object actions. In contrast, in Liferay DXP (Liferay SaaS), the use of Groovy in Object actions is not allowed due to the high security risks it poses. Starting from Liferay DXP 2024.Q2 and later, a new feature has been introduced in Instance Settings that allows administrators to configure whether Groovy scripts are allowed in their instances.
How to fix
- liferay liferay_portal7.4.3.43 or later
- com.liferay:com.liferay.object.service1.0.96 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| liferay liferay_portal | 7.4.3.27 ≤ v < 7.4.3.43 | 7.4.3.43 |
| liferay digital_experience_platform | 2023.Q3.1 ≤ v ≤ 2023.Q3.10, 2023.q4.0 ≤ v ≤ 2023.q4.10, 2024.Q1.1 ≤ v ≤ 2024.Q1.20, 7.4 | — |
| com.liferay:com.liferay.object.serviceMaven | v < 1.0.96 | 1.0.96 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.