CVE-2022-42122: SQL Injection

Published Nov 15, 2022
·
Updated

A SQL injection vulnerability in the Friendly Url module in Liferay Portal 7.3.7, and Liferay DXP 7.3 fix pack 2 through update 4 allows attackers to execute arbitrary SQL commands via a crafted payload injected into the title field of a friendly URL.

Affected Software

5 affected componentsFixes available
Liferay DXP=7.3-fix_pack_2
Liferay Liferay Portal=7.3.7
maven/com.liferay:com.liferay.friendly.url.service<4.0.3
4.0.3
maven/com.liferay.portal:release.dxp.bom>=7.3.10.fp2<7.3.10.u4
7.3.10.u4
maven/com.liferay.portal:release.portal.bom>=7.3.7<7.4.0-ga1
7.4.0-ga1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/com.liferay:com.liferay.friendly.url.service to a version that resolves this vulnerability.

    Fixed in 4.0.3
  2. Upgrade

    Upgrade maven/com.liferay.portal:release.dxp.bom to a version that resolves this vulnerability.

    Fixed in 7.3.10.u4
  3. Upgrade

    Upgrade maven/com.liferay.portal:release.portal.bom to a version that resolves this vulnerability.

    Fixed in 7.4.0-ga1
  4. Upgrade

    Upgrade Liferay Portal 7.3.7 / Liferay DXP 7.3 to a version that resolves this vulnerability.

    Fixed in 7.3.7Patch Liferay DXP 7.3 fix pack 2 through update 4
  5. Compensating control

    Restrict or sanitize the friendly URL `title` field input to prevent SQL injection (e.g., ensure the `title` field is not used to construct SQL queries without proper parameterization) until the Liferay fix pack/update is applied.

Event History

Nov 15, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·12:00 PM
Data Sourced
via GitHub·12:00 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2022-42122?

CVE-2022-42122 is a SQL injection vulnerability in the Friendly Url module in Liferay Portal 7.3.7 and Liferay DXP 7.3.

2

How severe is CVE-2022-42122?

CVE-2022-42122 has a severity rating of 9.8 (Critical).

3

What is the affected software?

The affected software includes Liferay Portal 7.3.7 and Liferay DXP 7.3 fix pack 2 through update 4.

4

How can attackers exploit CVE-2022-42122?

Attackers can exploit CVE-2022-42122 by executing arbitrary SQL commands via a crafted payload injected into the `title` field of a friendly URL.

5

Are there any known fixes for CVE-2022-42122?

Yes, you can find more information about fixes for CVE-2022-42122 on the official Liferay website and the Liferay security page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203