# Liferay Portal and Liferay DXP Vulnerable to SQL Injection via Friendly URL Module

Advisory record · `GHSA-hw56-7xj4-7gx6`

- **Identifiers:** `GHSA-hw56-7xj4-7gx6` · `CVE-2022-42122`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-89](https://cwe.mitre.org/data/definitions/89.html)
- **Tags:** [SQL injection](https://agentprime.io/advisories/tag/sql-injection.md)
- **Published:** 15 Nov 2022
- **Updated:** 5 Sept 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 15 Nov 2022, 12:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.8: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `com.liferay.portal:release.portal.bom` (Maven): affected `>=7.3.7, <7.4.0-ga1`; fixed in `7.4.0-ga1`
- `com.liferay.portal:release.dxp.bom` (Maven): affected `>=7.3.10.fp2, <7.3.10.u4`; fixed in `7.3.10.u4`
- `com.liferay:com.liferay.friendly.url.service` (Maven): affected `<4.0.3`; fixed in `4.0.3`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Liferay Portal 7.3.7 and Liferay DXP 7.3 fix pack 2 through update 4 are affected by a SQL injection flaw in the Friendly URL module, and the Maven package com.liferay:com.liferay.friendly.url.service is affected before 4.0.3. An attacker who can inject a crafted value into the title field of a friendly URL can run arbitrary SQL commands. Upgrade Liferay Portal to 7.4.0-ga1 or Liferay DXP to 7.3.10.u4, or the friendly URL service to 4.0.3.

Written 7 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.8 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.0087, the 59th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:10 UTC: First seen by agentprime
- 31 Oct 2026, 15:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-hw56-7xj4-7gx6)

## Sources

- [GitHub Advisory Database: GHSA-hw56-7xj4-7gx6](https://github.com/advisories/GHSA-hw56-7xj4-7gx6)
- [OSV: GHSA-hw56-7xj4-7gx6](https://osv.dev/vulnerability/GHSA-hw56-7xj4-7gx6)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-42122>
- <https://github.com/liferay/liferay-portal>
- <https://issues.liferay.com/browse/LPE-17520>
- <https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2022-42122?p_r_p_assetEntryId=121613466&_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_redirect=https%3A%2F%2Fliferay.dev%3A443%2Fportal%2Fsecurity%2Fknown-vulnerabilities%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_r_p_assetEntryId%3D121613466%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_cur%3D0%26p_r_p_resetCur%3Dfalse>
- <https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42122>
- <https://web.archive.org/web/20221115051621/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42122>
- <http://liferay.com/>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-hw56-7xj4-7gx6>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hw56-7xj4-7gx6/>. Everything for agents: <https://agentprime.io/llms.txt>.
