CVE-2022-42120: SQL Injection

Published Nov 15, 2022
·
Updated

A SQL injection vulnerability in the Fragment module before 4.0.33 from Liferay Portal (7.3.3 through 7.4.3.16), and Liferay DXP 7.3 before update 4, and 7.4 before update 17 allows attackers to execute arbitrary SQL commands via a PortletPreferences' namespace attribute.

Other sources

A SQL injection vulnerability in the Fragment module in Liferay Portal 7.3.3 through 7.4.3.16, and Liferay DXP 7.3 before update 4, and 7.4 before update 17 allows attackers to execute arbitrary SQL commands via a PortletPreferences' namespace attribute.

MITRE

Affected Software

6 affected componentsFixes available
Liferay DXP=7.3
Liferay DXP=7.4
Liferay Liferay Portal>=7.3.3<=7.4.3.16
maven/com.liferay.portal:release.dxp.bom>=7.4.0<7.4.13.u17
7.4.13.u17
maven/com.liferay.portal:release.dxp.bom>=7.3.0<7.3.10.u4
7.3.10.u4
maven/com.liferay:com.liferay.fragment.service<4.0.33
4.0.33

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 7.4.13.u17
  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:com.liferay.fragment.service to a version that resolves this vulnerability.

    Fixed in 4.0.33
  4. Upgrade

    Upgrade Liferay Portal Fragment module to a version that resolves this vulnerability.

    Fixed in 4.0.33

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 the vulnerability ID for this SQL injection vulnerability?

The vulnerability ID for this SQL injection vulnerability is CVE-2022-42120.

2

What software versions are affected by this vulnerability?

This vulnerability affects Liferay Portal versions 7.3.3 through 7.4.3.16, Liferay DXP versions 7.3 before update 4, and 7.4 before update 17.

3

What is the severity of CVE-2022-42120?

The severity of CVE-2022-42120 is critical with a CVSS score of 9.8.

4

How can an attacker exploit this vulnerability?

An attacker can exploit this vulnerability by executing arbitrary SQL commands via a PortletPreferences' `namespace` attribute.

5

Are there any references related to CVE-2022-42120?

Yes, you can find more information about CVE-2022-42120 at the following references: [1] http://liferay.com, [2] https://issues.liferay.com/browse/LPE-17513, [3] https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120

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