CVE-2025-4604

6.1 MEDIUM

📋 TL;DR

This vulnerability allows attackers to bypass CAPTCHA verification in Liferay Portal/DXP, enabling them to execute arbitrary scripts in the Gogo shell. Affected systems include Liferay Portal 7.4.3.80-7.4.3.132 and multiple Liferay DXP versions from 2024.Q1.1 through 2025.Q1.15.

💻 Affected Systems

Products:
  • Liferay Portal
  • Liferay DXP
Versions: Liferay Portal 7.4.3.80 through 7.4.3.132; Liferay DXP 2024.Q1.1 through 2024.Q1.19, 2024.Q2.0 through 2024.Q2.13, 2024.Q3.0 through 2024.Q3.13, 2024.Q4.0 through 2024.Q4.7, 2025.Q1.0 through 2025.Q1.15 and 7.4 update 80 through update 92
Operating Systems: All platforms running affected Liferay versions
Default Config Vulnerable: ⚠️ Yes
Notes: Systems with CAPTCHA enabled and Gogo shell accessible are vulnerable by default.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers gain remote code execution capabilities, potentially compromising the entire Liferay instance and underlying server.

🟠

Likely Case

Unauthorized script execution leading to data theft, privilege escalation, or system manipulation.

🟢

If Mitigated

Limited impact if Gogo shell access is restricted or monitored, though CAPTCHA bypass remains possible.

🌐 Internet-Facing: HIGH - Internet-facing Liferay instances are directly exposed to exploitation attempts.
🏢 Internal Only: MEDIUM - Internal systems are still vulnerable but require internal network access.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires CAPTCHA bypass followed by Gogo shell access; no public exploit available yet.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Liferay Portal 7.4.3.133+, Liferay DXP 2024.Q1.20+, 2024.Q2.14+, 2024.Q3.14+, 2024.Q4.8+, 2025.Q1.16+, 7.4 update 93+

Vendor Advisory: https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/CVE-2025-4604

Restart Required: No

Instructions:

1. Download the appropriate fix pack from Liferay's customer portal. 2. Apply the fix pack following Liferay's deployment guide. 3. Verify the patch is applied correctly.

🔧 Temporary Workarounds

Disable Gogo Shell

all

Prevent script execution by disabling the Gogo shell component.

Set 'gogo.shell.enabled=false' in portal-ext.properties

Restrict CAPTCHA Access

all

Implement network-level restrictions to CAPTCHA endpoints.

Configure firewall/WAF rules to limit access to CAPTCHA-related URLs

🧯 If You Can't Patch

  • Implement strict network segmentation to isolate Liferay instances
  • Enable detailed logging and monitoring for CAPTCHA bypass attempts and Gogo shell usage

🔍 How to Verify

Check if Vulnerable:

Check Liferay version via Control Panel → Configuration → Server Administration → System Information

Check Version:

Check portal.properties or use Liferay's System Information page

Verify Fix Applied:

Verify version is updated to patched version and test CAPTCHA functionality

📡 Detection & Monitoring

Log Indicators:

  • Unusual CAPTCHA validation failures
  • Gogo shell command execution logs
  • Authentication bypass attempts

Network Indicators:

  • Unexpected requests to CAPTCHA endpoints
  • Suspicious script execution patterns

SIEM Query:

source="liferay" AND (event="CAPTCHA_FAILURE" OR event="GOGO_SHELL_EXECUTION")

🔗 References

📤 Share & Export